:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #0b1020; color: #e8ecf7; }
a { color: #8fb5ff; text-decoration: none; }
a:hover { text-decoration: underline; }
nav { position: sticky; top: 0; z-index: 10; display: flex; gap: 18px; align-items: center; padding: 14px 24px; background: #121a31; border-bottom: 1px solid #26304c; }
nav .brand { font-weight: 800; margin-right: auto; color: white; }
nav form { margin: 0; }
.container { max-width: 1220px; margin: 0 auto; padding: 24px; }
h1, h2, h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: #121a31; border: 1px solid #26304c; border-radius: 14px; padding: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.metric { font-size: 28px; font-weight: 800; margin-top: 6px; }
label { display: block; font-size: 13px; color: #aab5d2; margin: 10px 0 6px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #34405e; border-radius: 9px; background: #0c1428; color: #fff; }
textarea { min-height: 130px; resize: vertical; }
button, .button { display: inline-block; border: 0; border-radius: 9px; padding: 10px 14px; background: #4d7dff; color: white; cursor: pointer; font-weight: 700; }
button.secondary, .button.secondary { background: #283654; }
button.danger { background: #b63c52; }
.inline { display: inline-block; width: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; background: #121a31; border-radius: 12px; overflow: hidden; }
th, td { padding: 11px; border-bottom: 1px solid #26304c; text-align: left; vertical-align: top; font-size: 14px; }
th { background: #18213a; color: #b9c4df; }
.table-wrap { overflow-x: auto; border: 1px solid #26304c; border-radius: 12px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #283654; font-size: 12px; }
.badge.good { background: #15583f; }
.badge.warn { background: #70531a; }
.badge.bad { background: #713142; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; }
.flash.success { background: #164d39; }
.flash.error { background: #6c2939; }
.login { max-width: 440px; margin: 10vh auto; }
.muted { color: #9ca8c4; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
code { background: #0c1428; padding: 2px 6px; border-radius: 5px; }
@media (max-width: 760px) { nav { flex-wrap: wrap; } .two-col { grid-template-columns: 1fr; } .container { padding: 16px; } }
