:root {
  color-scheme: dark;
  --bg: #050a12;
  --panel: #0b1524;
  --panel-2: #0e1c2f;
  --line: #20354d;
  --text: #f3f7fb;
  --muted: #8fa3b8;
  --cyan: #32c7e8;
  --green: #21d17b;
  --blue: #2378ed;
  --red: #ff6574;
  --yellow: #e7c84d;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(50,199,232,.05), transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.018) 80px),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
.shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 56px; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #2d8eae;
  border-radius: 6px;
  color: #07131d;
  background: var(--cyan);
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); }
.messages { display: grid; gap: 8px; margin: 18px 0; }
.message { padding: 12px 14px; border: 1px solid; border-radius: 6px; }
.message-success { color: #b6f4d4; border-color: #236e4d; background: #09291e; }
.message-error { color: #ffc1c7; border-color: #7b3540; background: #2c1017; }
.status-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 0 28px;
}
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 36px; line-height: 1.1; }
h2 { margin-bottom: 6px; font-size: 21px; }
.status-band p, .section-heading p, .login-copy p { color: var(--muted); margin-bottom: 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.metrics > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.metrics > div:first-child { padding-left: 0; }
.metrics > div:last-child { border-right: 0; }
.metrics span, .metrics strong { display: block; }
.metrics span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.metrics strong { margin-top: 7px; overflow-wrap: anywhere; font-size: 18px; }
.text-good { color: var(--green); }
.text-bad { color: var(--red); }
.workspace { padding-top: 30px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.create-form { display: flex; gap: 8px; width: min(500px, 100%); }
input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: var(--text);
  background: #07111e;
  border: 1px solid #29415c;
  border-radius: 5px;
  outline: none;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(50,199,232,.12); }
.button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.button-primary { background: var(--blue); border-color: #398cf3; }
.button-danger { background: #a73140; border-color: #d64c5c; }
.button-download { background: #0f6a54; border-color: #1c9878; }
.button-quiet { background: #112239; border-color: #2a4564; }
.button-delete { color: #ffabb4; background: transparent; border-color: #69303a; }
.button:hover { filter: brightness(1.12); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; min-width: 980px; border-collapse: collapse; background: rgba(9,20,34,.88); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #182c42; vertical-align: middle; }
th { color: var(--muted); background: #0c1929; font-size: 11px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
code { color: #a9dcff; font-family: Consolas, monospace; }
.state { display: inline-flex; padding: 5px 8px; border: 1px solid; border-radius: 4px; font-size: 12px; font-weight: 800; }
.state-on { color: #aef2cf; border-color: #286d50; background: #0b2b20; }
.state-off { color: #ffc0c6; border-color: #713641; background: #2a1117; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.actions-title { text-align: right; }
.actions form { margin: 0; }
.empty { padding: 40px; color: var(--muted); text-align: center; }
.login-layout {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 460px);
  align-items: center;
  gap: 70px;
}
.login-copy h1 { max-width: 720px; font-size: 52px; }
.login-copy p:last-child { max-width: 680px; font-size: 17px; line-height: 1.6; }
.login-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.login-form label { display: block; margin-bottom: 9px; color: #c5d2df; font-size: 13px; }
.login-form .button { width: 100%; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 900px) {
  .shell { width: min(100% - 24px, 720px); }
  .status-band, .section-heading { align-items: stretch; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics > div { border-bottom: 1px solid var(--line); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
  .metrics > div:first-child { padding-left: 20px; }
  .create-form { width: 100%; }
  .login-layout { grid-template-columns: 1fr; gap: 30px; align-content: center; }
  .login-copy h1 { font-size: 38px; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 20px); }
  h1 { font-size: 30px; }
  .topbar { min-height: 64px; }
  .status-band { padding-top: 28px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div { padding: 14px 10px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .metrics > div:last-child { border-bottom: 0 !important; }
  .create-form { flex-direction: column; }
  .button { min-height: 42px; }
  .login-copy h1 { font-size: 34px; }
}