:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #e9effb;
  background: #0a1120;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 0, #123a43, transparent 55%); }
main { max-width: 1150px; margin: auto; padding: 40px 26px; }
header, .row, .section-top, .actions, .badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
header, .section-top { justify-content: space-between; }
h1 { font-size: 30px; margin: 10px 0 0; letter-spacing: -.6px; }
h2 { font-size: 17px; margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: 3px; color: #75e7cc; }
.badges { gap: 8px; }
.badge { border: 1px solid #35616b; border-radius: 30px; padding: 9px 14px; color: #8de7d5; font-size: 12px; }
.badge.muted { border-color: #43516a; color: #a8b8d0; }
.box, .metric { background: #141f32e8; border: 1px solid #2c3c54; border-radius: 20px; padding: 24px; margin-top: 22px; }
.grow { flex: 1; min-width: 230px; }
label { display: flex; flex-direction: column; gap: 9px; color: #b9c7dc; font-size: 12px; }
input, button { font: inherit; border-radius: 9px; padding: 12px 14px; border: 1px solid #3b4f69; }
input { background: #0a1526; color: #edf4ff; min-width: 0; }
input[type=checkbox] { accent-color: #6ce1c3; width: 18px; height: 18px; }
button { background: #78e7cc; border-color: #78e7cc; color: #0d3031; cursor: pointer; font-weight: 600; font-size: 13px; }
button:disabled { opacity: .4; cursor: default; }
button.secondary { background: transparent; color: #c7d6eb; border-color: #435773; }
button.danger { background: #442231; color: #ffbac6; border-color: #734254; }
button.compact { padding: 8px 10px; font-size: 11px; }
.row { align-items: end; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric span { color: #a7b8d0; font-size: 12px; }
.metric strong { display: block; margin-top: 16px; font-size: 23px; color: #8ce7d2; }
.scroll { overflow: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 18px 10px; border-bottom: 1px solid #293c54; font-size: 12px; }
th { color: #a4b7d0; font-weight: 500; }
.online { color: #86e6c8; }
.offline { color: #b7a5ae; }
.sub { display: block; color: #8f9fb6; font-size: 11px; margin-top: 7px; }
.actions { margin-top: 24px; }
.actions span { color: #b2bfd2; font-size: 12px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 16px; }
.details pre { direction: ltr; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; color: #9fd9cd; margin: 18px 0 0; }
#message { font-size: 12px; color: #a8b8d0; }
#message:not(:empty) { margin-top: 15px; }
#message.error { color: #ffb6c3; }
form[hidden] { display: none; }
@media (max-width: 680px) {
  main { padding: 26px 14px; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .grid-form { grid-template-columns: 1fr; }
  .box, .metric { padding: 18px; }
  h1 { font-size: 25px; }
}
