:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #20262e;
  --muted: #69727f;
  --line: #d9dee5;
  --accent: #126b5d;
  --warn: #a65f00;
  --bad: #9b2f2f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 0 24px;
  background: #15191f;
  color: white;
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: .04em; }
.topbar nav { display: flex; gap: 16px; }
.topbar nav a { color: #d7dde5; text-decoration: none; font-size: 14px; }
.user { margin-left: auto; color: #aeb8c4; font-size: 13px; }
.user a { margin-left: 12px; color: white; }
.page { max-width: 1280px; margin: 0 auto; padding: 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.1; }
h2 { margin: 0 0 14px; font-size: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 12px; }
.panel, .status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.page-head p { margin: 0; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.button-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.muted { color: var(--muted); font-size: 12px; }
.help-text { color: var(--muted); display: block; margin: 0 0 12px; }
.info-panel p { display: block; margin: 0; color: var(--muted); }
label small {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  line-height: 1.35;
}
.status-card { display: grid; gap: 10px; align-content: center; }
.status-card small { color: var(--muted); }
.grid { display: grid; gap: 16px; margin-bottom: 18px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel p { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.panel p strong { color: var(--text); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { background: #e9edf2; color: #38414d; font-size: 12px; text-transform: uppercase; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
input, select, textarea {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
textarea { min-width: 260px; resize: vertical; }
.mini-button {
  border: 1px solid #0d594d;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 7px 10px;
  font-weight: 700;
  cursor: pointer;
}
.edit-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.stack-form {
  display: grid;
  gap: 12px;
}
.filter-form {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) minmax(180px, 280px) auto auto;
  gap: 12px;
  align-items: end;
}
.edit-form label, .filter-form label, .create-form label, .stack-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.edit-form textarea, .edit-form input, .edit-form select, .create-form textarea, .create-form input, .create-form select, .stack-form textarea, .stack-form input, .stack-form select { max-width: none; }
.filter-form input, .filter-form select { max-width: none; }
.json-block {
  max-width: 420px;
  max-height: 180px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #38414d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.code-block {
  max-height: 460px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #20262e;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.plain-list { margin: 0; padding-left: 20px; color: var(--bad); }
.result-panel { margin-bottom: 18px; }
.result-ok { border-color: #b7d9d2; }
.result-bad { border-color: #e6b9b9; }
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #eef1f4;
}
.active, .online { color: var(--accent); background: #e7f4f1; border-color: #b7d9d2; }
.planned, .parked, .inactive, .unknown, .candidate, .draft, .raw_reference, .contract, .readme, .inventory, .text, .caddy, .systemd, .database_ref, .secret_ref { color: var(--warn); background: #fff6e8; border-color: #efd0a0; }
.blocked, .failed { color: var(--bad); background: #fbecec; border-color: #e6b9b9; }
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 21px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(18, 107, 93, .22), transparent 34%),
    #060709;
  background-size: 55px 55px, 55px 55px, auto, auto;
  color: #e9edf2;
}
.login-frame {
  width: min(987px, calc(100vw - 42px));
  height: min(610px, calc(100vh - 42px));
  min-height: 377px;
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(233px, 377px);
  border: 1px solid rgba(151, 162, 176, .28);
  border-radius: 13px;
  overflow: hidden;
  background: #0c0d10;
  box-shadow: 0 34px 89px rgba(0, 0, 0, .42);
}
.login-hero {
  position: relative;
  display: grid;
  grid-template-rows: 89px minmax(0, 1fr);
  gap: 34px;
  padding: 55px;
  background:
    linear-gradient(135deg, rgba(18, 107, 93, .16), transparent 55%),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    #121316;
  background-size: auto, 89px 89px, 89px 89px, auto;
}
.login-hero::after {
  content: "";
  position: absolute;
  right: 55px;
  bottom: 55px;
  width: 233px;
  height: 144px;
  border-right: 1px solid rgba(151, 162, 176, .22);
  border-bottom: 1px solid rgba(151, 162, 176, .22);
  pointer-events: none;
}
.login-mark {
  width: 144px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 107, 93, .68);
  border-radius: 8px;
  background: rgba(18, 107, 93, .14);
  color: #d9fff6;
  font-family: "Black Ops One", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: 0;
}
.login-eyebrow {
  margin: 0 0 13px;
  color: #6ee2ce;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.login-frame h1 {
  max-width: 610px;
  margin: 0;
  color: #f8fafc;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 55px;
  line-height: 1;
}
.login-frame h2 {
  margin: 0 0 13px;
  color: #f8fafc;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  line-height: 1;
}
.login-copy {
  max-width: 377px;
  margin: 21px 0 0;
  color: #aeb8c4;
  font-size: 16px;
  line-height: 1.45;
}
.login-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 21px;
  padding: 55px 34px 34px;
  border-left: 1px solid rgba(151, 162, 176, .18);
  background: #0f1115;
}
.login-button {
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid rgba(110, 226, 206, .46);
  border-radius: 8px;
  background: #e9edf2;
  color: #101419;
  text-decoration: none;
  font-weight: 800;
}
.login-button:hover {
  border-color: #6ee2ce;
  background: #ffffff;
}
.google-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #101419;
  color: #ffffff;
  font-weight: 900;
}
.login-warning {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(166, 95, 0, .52);
  border-radius: 8px;
  padding: 13px;
  background: rgba(166, 95, 0, .12);
  color: #ffdca8;
}
.login-meta {
  display: grid;
  gap: 13px;
  margin: 0;
  color: #aeb8c4;
}
.login-meta div {
  min-width: 0;
}
.login-meta dt {
  margin: 0 0 5px;
  color: #6ee2ce;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}
.login-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.login-meta code {
  color: #d7dde5;
}
.button { display: inline-block; margin-top: 12px; padding: 10px 14px; background: var(--accent); color: white; text-decoration: none; border-radius: 6px; }
dt { margin-top: 14px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
dd { margin: 4px 0 0; }
@media (max-width: 820px) {
  .hero, .three, .two { grid-template-columns: 1fr; }
  .page-head { display: block; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .user { width: 100%; margin-left: 0; }
  .page { padding: 18px; }
  table { display: block; overflow-x: auto; }
  .edit-form, .filter-form, .create-form { grid-template-columns: 1fr; }
  .login-page {
    place-items: stretch;
    padding: 13px;
  }
  .login-frame {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 26px);
    grid-template-columns: 1fr;
  }
  .login-hero {
    grid-template-rows: auto auto;
    padding: 34px;
  }
  .login-panel {
    padding: 34px;
    border-left: 0;
    border-top: 1px solid rgba(151, 162, 176, .18);
  }
  .login-frame h1 {
    font-size: 34px;
  }
  .login-frame h2 {
    font-size: 21px;
  }
}
