:root {
  color-scheme: dark;
  color: #f6f7ff;
  background: #010511;
  font: 15px/1.5 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, calc((100% - 1080px) / 2)); gap: 16px;
  background: #090e20; border-bottom: 1px solid #243050;
}
header > a { font-weight: 750; color: #f6f7ff; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 12px; color: #a9b4d1; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 46px; }
h1 { font-size: clamp(27px, 5vw, 38px); margin: 0 0 20px; line-height: 1.2; }
h2 { font-size: 19px; margin: 0 0 16px; }
section {
  background: #0b1225; border: 1px solid #263459; border-radius: 14px;
  padding: 18px; margin-bottom: 16px;
}
.login { max-width: 430px; border-top: 4px solid #fc7397; }
label { display: flex; flex-direction: column; gap: 5px; color: #dbe2fa; }
form:not(.inline) { display: grid; gap: 12px; max-width: 485px; }
form.fields {
  display: flex; flex-wrap: wrap; max-width: none; align-items: end; gap: 12px; margin-bottom: 16px;
}
input {
  min-width: 0; width: 100%; min-height: 40px; border-radius: 8px;
  border: 1px solid #33436f; padding: 8px 10px; color: #fff; background: #080f22;
  font: inherit;
}
input[type=number] { width: 105px; }
button, a.button {
  min-height: 38px; border: 1px solid #6680ff; border-radius: 8px; padding: 7px 13px;
  color: #fff; background: #2d45de; font: inherit; font-weight: 650; cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff25; width: fit-content; text-decoration: none;
}
button:hover, a.button:hover { background: #4058e9; }
:focus-visible { outline: 2px solid #fc7397; outline-offset: 2px; }
.inline { display: inline-block; margin-right: 6px; }
.inline button { background: #152345; border-color: #344979; min-height: 30px; padding: 3px 9px; font-size: 13px; }
.inline button:hover { background: #233761; }
a { color: #a8b7ff; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { border-bottom: 1px solid #232e4c; padding: 8px; }
th { color: #b4c0df; font-size: 13px; }
.muted, .pages { color: #aeb9d7; }
.pages { display: flex; gap: 14px; padding-top: 12px; align-items: center; }
.state { color: #aebdff; font-weight: 700; }
.message { color: #ff9bb5; }
pre { background: #080f22; border: 1px solid #33436f; padding: 12px; border-radius: 8px; overflow: auto; }
@media (max-width: 550px) {
  main { padding: 20px 12px; }
  section { padding: 13px; }
  header { padding: 12px; }
}
