* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #f4f6f8; color: #1a1a1a; }
.topbar { background: #0d47a1; color: #fff; padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.topbar a { color: #e3f2fd; text-decoration: none; margin-right: 1rem; }
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
.card { background: #fff; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h1 { margin-top: 0; font-size: 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #eee; }
th { background: #fafafa; }
.btn { display: inline-block; padding: 0.4rem 0.9rem; background: #1565c0; color: #fff; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 0.9rem; }
.btn-danger { background: #c62828; }
.btn-small { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
form label { display: block; margin: 0.5rem 0 0.2rem; font-size: 0.85rem; }
form input, form select, form textarea { width: 100%; max-width: 400px; padding: 0.4rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat { background: #e3f2fd; padding: 1rem; border-radius: 8px; }
.stat strong { font-size: 1.75rem; display: block; }
.login-wrap { max-width: 360px; margin: 4rem auto; }
.error { color: #c62828; font-size: 0.9rem; }
code { background: #eee; padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.85rem; }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; }
.badge-active { background: #c8e6c9; }
.badge-revoked { background: #ffcdd2; }
