:root {
  --navy: #0b1f33;
  --blue: #1677c8;
  --cyan: #2bb7da;
  --paper: #f3f6f9;
  --line: #dce4eb;
  --text: #182633;
  --muted: #637586;
  --danger: #c43d4b;
  --success: #17845b;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, sans-serif; color: var(--text); background: var(--paper); }
a { color: var(--blue); text-decoration: none; }
header { background: var(--navy); color: white; padding: 0 28px; display: flex; align-items: center; min-height: 64px; }
header strong { font-size: 19px; margin-right: 34px; }
nav { display: flex; gap: 20px; flex: 1; }
nav a { color: #dceaf6; }
header form { margin: 0; }
main { max-width: 1280px; margin: 28px auto; padding: 0 22px; }
h1 { margin: 0 0 20px; font-size: 28px; }
h2 { font-size: 18px; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px #1232; }
.metric b { display: block; font-size: 30px; color: var(--navy); }
.metric span { color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
form.panel { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; }
label { color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #b9c7d3; border-radius: 5px; background: white; }
input[type="checkbox"] { width: auto; margin: 0 6px 0 0; padding: 0; vertical-align: middle; }
textarea { min-height: 78px; }
button, .button { border: 0; border-radius: 5px; padding: 10px 15px; background: var(--blue); color: white; cursor: pointer; display: inline-block; }
.secondary { background: #51697e; }
.danger { background: var(--danger); }
.compact { padding: 7px 11px; font-size: 13px; }
.inline { display: inline; }
.inline button { padding: 7px 11px; }
.wide { grid-column: 1 / -1; }
.status { display: inline-block; padding: 3px 8px; border-radius: 20px; background: #e9eef3; font-size: 12px; }
.online { color: var(--success); background: #dcf5ea; }
.failed { color: var(--danger); background: #fae2e5; }
.notice { padding: 12px 15px; background: #fff4cc; border-left: 4px solid #d19b00; margin-bottom: 20px; }
.login { max-width: 420px; margin: 10vh auto; }
pre { white-space: pre-wrap; word-break: break-word; background: #101b25; color: #d8e9f5; padding: 15px; border-radius: 6px; max-height: 360px; overflow: auto; }
.actions-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 8px 0; }
.pool-actions { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr); gap: 8px 10px; min-width: 360px; max-width: 620px; align-items: end; }
.pool-actions label { margin: 0; }
.pool-actions input { padding: 8px; }
.check-row { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.check-row label { display: inline-flex; align-items: center; white-space: nowrap; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 14px; margin-top: 8px; }
.check-grid label { display: inline-flex; align-items: center; color: var(--text); }
.pool-actions button { justify-self: start; }
@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; padding: 16px; }
  nav { flex-wrap: wrap; margin: 10px 0; }
  form.panel { grid-template-columns: 1fr; }
  .pool-actions { min-width: 0; grid-template-columns: 1fr; }
  .check-row { grid-column: auto; }
}
