:root {
  --red: #991b1e;
  --red-dark: #7a1417;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --bg: #ffffff;
  --paper: #f6f6f4;
  --ok: #1f7a3a;
  --down: #8a8a8a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.04em; }
.brand img { width: 28px; height: 28px; }
.brand span { font-size: 15px; }
.top-meta { color: var(--muted); font-size: 13px; display: flex; gap: 18px; align-items: center; }
.top-meta a { border-bottom: 1px solid transparent; }
.top-meta a:hover { border-bottom-color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 72px 32px 96px; }
h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.lede { color: var(--muted); font-size: 18px; margin: 0 0 48px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  display: block;
  background: var(--paper);
  min-height: 260px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.card h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; max-width: 28ch; }
.card .go {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.auth-card { width: min(420px, 100%); text-align: center; }
.auth-card img { width: 48px; height: 48px; margin-bottom: 20px; }
.auth-card h1 { font-size: 36px; margin-bottom: 8px; }
.auth-card .lede { margin-bottom: 28px; }
form { display: grid; gap: 12px; text-align: left; }
label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=password] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 10px 0 12px;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.btn {
  margin-top: 10px;
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.err { color: var(--red); font-size: 14px; min-height: 1.2em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.pill.up { background: #e4f5ea; color: var(--ok); }
.pill.down { background: #eee; color: var(--down); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button {
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.actions button:hover { background: var(--ink); color: #fff; }
pre.logs {
  background: #111;
  color: #f2f2f2;
  padding: 16px;
  overflow: auto;
  max-height: 420px;
  font-size: 12px;
  line-height: 1.45;
}
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 24px; }
.foot { margin-top: 72px; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  h1 { font-size: 40px; }
  .grid { grid-template-columns: 1fr; }
  .top, .wrap { padding-left: 20px; padding-right: 20px; }
}
