* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif; margin: 0;
       background: #f7f7f9; color: #222; line-height: 1.4; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header { background: #1a1d24; color: #fff; padding: 12px 0; margin-bottom: 24px; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { color:#fff; text-decoration:none; font-weight:700; font-size:1.1rem; }
nav a { color: #cbd5e1; text-decoration: none; margin-left: 16px; }
nav a:hover { color: #fff; }
.me { color: #9ca3af; margin-left: 24px; font-size: 0.85rem; }
main { padding-bottom: 60px; }

h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin: 16px 0 8px; }

.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
        padding: 16px 20px; margin-bottom: 16px; }
.center { text-align: center; padding: 48px; max-width: 480px; margin: 60px auto; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }

.btn { background:#2563eb; color:#fff; border:none; padding:8px 16px; border-radius:6px;
       text-decoration:none; display:inline-block; cursor:pointer; font-size:0.9rem; }
.btn:hover { background:#1d4ed8; }
.btn-primary { background:#2563eb; }
.btn-sm { background:#e5e7eb; color:#222; border:none; padding:4px 10px; border-radius:4px;
          cursor:pointer; font-size:0.8rem; }
.btn-sm.btn-primary { background:#2563eb; color:#fff; }

table { width:100%; border-collapse:collapse; background:#fff; border:1px solid #e5e7eb;
        border-radius: 6px; overflow: hidden; }
th, td { padding:8px 10px; text-align:left; border-bottom:1px solid #f1f5f9; font-size:0.88rem; }
th { background:#f8fafc; font-weight:600; }
code { background:#eef2f7; padding:2px 6px; border-radius:3px; font-size:0.85em; }

.muted { color:#6b7280; }
.error { color:#b91c1c; }
.flash { padding:10px 14px; border-radius:6px; margin-bottom:16px; }
.flash-info { background:#dbeafe; color:#1e40af; }
.flash-error { background:#fee2e2; color:#991b1b; }

.sev { padding:2px 8px; border-radius:4px; font-size:0.75rem; font-weight:600; text-transform:uppercase; }
.sev-warning { background:#fef3c7; color:#92400e; }
.sev-critical { background:#fee2e2; color:#991b1b; }
tr.sev-critical td { background:#fef7f7; }

label { display:block; margin: 10px 0; }
label input, label select { display:block; width:100%; max-width:400px;
       padding:6px 8px; border:1px solid #d1d5db; border-radius:4px; margin-top:4px; }
.row { display:flex; gap:8px; align-items:center; }
.row input, .row select { padding:6px 8px; border:1px solid #d1d5db; border-radius:4px; }

ul.plain { list-style:none; padding:0; margin:0; }
ul.plain li { padding:4px 0; }
a.active { font-weight:bold; }
