:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #10161f;
  color: #e6edf5;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1300px; margin: auto; padding: 28px 20px 64px; }
header { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid #2b394a; padding-bottom: 22px; }
h1, h2 { margin: 0; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1rem; }
.subtle { color: #96a9bd; margin: 5px 0 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 18px; }
.card { background: #18212d; border: 1px solid #2b394a; border-radius: 10px; padding: 16px; }
.wide { grid-column: span 8; }
.side { grid-column: span 4; }
.full { grid-column: 1 / -1; }
.fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 14px; }
label { display: grid; gap: 5px; color: #b6c6d8; font-size: .82rem; }
input, select, button { min-height: 36px; border-radius: 6px; border: 1px solid #3b4d61; font: inherit; }
input, select { background: #0e151e; color: #e6edf5; padding: 7px 9px; }
button { cursor: pointer; color: #eff7ff; background: #2666a8; padding: 7px 11px; }
button:hover { background: #3378bc; }
button.danger { background: #992e3b; }
button.muted { background: #334354; }
.status { padding: 8px 10px; background: #243244; border-radius: 6px; min-width: 120px; text-align: center; }
.status.down { background: #802a38; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { border-bottom: 1px solid #293747; padding: 9px 7px; text-align: left; white-space: nowrap; }
th { color: #99adc2; font-weight: 600; }
.actions { display: flex; gap: 6px; }
.actions button { min-height: 29px; font-size: .78rem; padding: 3px 7px; }
.notice { min-height: 18px; color: #f0c36a; font-size: .85rem; margin: 10px 0 0; }
.empty { color: #8295a9; padding: 18px 0; }
@media (max-width: 800px) { .wide, .side { grid-column: 1 / -1; } header { align-items: start; flex-direction: column; } }
