*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a;background:#f8fafc}
a{color:#0ea5e9;text-decoration:none}
a:hover{text-decoration:underline}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#0f172a;color:#fff;position:sticky;top:0;z-index:10}
.topbar .brand{font-weight:700}
.topbar nav a{color:#cbd5e1;margin-left:14px;padding:6px 8px;border-radius:6px}
.topbar nav a.active{color:#fff;background:rgba(255,255,255,.08);font-weight:600}
.container{max-width:1200px;margin:24px auto;padding:0 16px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stat{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:18px;box-shadow:0 4px 14px rgba(2,6,23,.04)}
.stat span{color:#64748b;font-size:12px;display:block}
.stat strong{font-size:28px}
.progress{margin-top:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;height:10px}
.progress>div{height:100%;background:#10b981;width:0}
.table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.table th,.table td{padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left}
.table th{background:#f1f5f9;font-weight:600;position:sticky;top:48px;z-index:5}
.table tr:hover{background:#f8fafc}
.badge{padding:2px 8px;border-radius:999px;background:#e2e8f0;font-size:12px}
.badge.ok{background:#dcfce7;color:#166534}
.badge.warn{background:#fef9c3;color:#92400e}
.badge.danger{background:#fee2e2;color:#b91c1c}
.center{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#eef2ff,#f8fafc)}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px;min-width:320px;box-shadow:0 10px 30px rgba(2,6,23,.06)}
form{display:grid;gap:10px}
label{font-size:12px;color:#64748b}
input[type="text"],input[type="search"],input[type="number"],input[type="datetime"],input[type="date"]{padding:10px 12px;border:1px solid #94a3b8;border-radius:8px;outline:none;background:#fff}
button{padding:10px 12px;border:none;border-radius:8px;background:#0ea5e9;color:#fff;font-weight:600;cursor:pointer}
button:hover{background:#0284c7}
.button{display:inline-block;padding:8px 12px;border-radius:8px;background:#e2e8f0;color:#0f172a;font-weight:600}
.button:hover{background:#cbd5e1;text-decoration:none}
.button.danger{background:#fee2e2;color:#b91c1c}
.button.primary{background:#0ea5e9;color:#fff}
.alert{background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe;padding:10px 12px;border-radius:8px;margin-bottom:10px}
.list{list-style:none;padding:0}
.list li{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;margin:8px 0}
.code{background:#0f172a;color:#e2e8f0;padding:14px;border-radius:10px;overflow:auto}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.muted{color:#64748b}
