:root {
  --paper: #f3efe6;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #d8d0c3;
  --panel: #fffdf8;
  --green: #0e6a43;
  --green-soft: #e5f4ec;
  --red: #9d1c1c;
  --red-soft: #f8e6e4;
  --brass: #8a5a2a;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(138, 90, 42, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body { padding: 28px 16px 64px; }

.wrap { max-width: 760px; margin: 0 auto; }

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brass);
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede { margin: 12px 0 0; max-width: 46ch; color: var(--muted); }

.panel {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.row { display: flex; gap: 10px; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

input, select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}

select { flex: 0 0 auto; min-width: 11rem; background: #fff; }

input:focus, select:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

button, .ghost {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
}

button:disabled { opacity: 0.45; cursor: default; }

.ghost {
  background: transparent;
  color: var(--brass);
  padding-left: 0;
}

.head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 560;
}

.status { font-size: 13px; color: var(--muted); }
.status.live { color: var(--green); }
.status.down { color: var(--red); }

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--line);
}

td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }

tr.mine { background: rgba(138, 90, 42, 0.06); }

.name { font-weight: 600; }
.name.green { color: var(--green); }
.name.red { color: var(--red); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
}
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.toggle {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 12px;
  min-height: 40px;
}

.empty { margin: 8px 0 0; color: var(--muted); }

.you { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .row { flex-direction: column; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
