:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5d6a62;
  --line: #d9e0da;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --field: #eef3ef;
  --green: #22734b;
  --green-dark: #13482f;
  --gold: #b78524;
  --red: #9c2f2f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.95);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small, .eyebrow, .label, footer { color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
nav a { text-decoration: none; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: center;
  min-height: 560px;
  padding: 64px 0 48px;
}
.hero h1, .section-head h2, .split h2 { margin: 0; line-height: 1.04; letter-spacing: 0; }
.hero h1 { max-width: 780px; font-size: clamp(42px, 8vw, 84px); }
.hero p, .split p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-actions, .button-row, .input-row, .lookup { display: flex; gap: 10px; flex-wrap: wrap; }
.button, button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.primary, button { border-color: var(--green); background: var(--green); color: #fff; }
.status-panel, .command-panel, .pool-grid article, .worker-results, .table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(23, 32, 27, 0.08);
}
.status-panel { padding: 24px; }
.status-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 800; }
.pulse { width: 12px; height: 12px; border-radius: 999px; background: var(--gold); }
.pulse.online { background: var(--green); }
.pulse.offline { background: var(--red); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.metric-grid div { padding: 14px; border-radius: 6px; background: var(--field); }
dt, .label { font-size: 12px; font-weight: 800; text-transform: uppercase; }
dd { margin: 6px 0 0; font-size: 24px; font-weight: 800; }
.section-band, .split { padding: 44px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head h2, .split h2 { font-size: clamp(28px, 5vw, 48px); }
.pool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pool-grid article { padding: 20px; }
.pool-grid strong, .pool-grid small { display: block; overflow-wrap: anywhere; }
.pool-grid strong { margin: 8px 0; font-size: 20px; }
.pool-grid small, .worker-results, td { color: var(--muted); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.command-panel { padding: 20px; }
label { display: block; margin: 0 0 8px; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}
textarea { margin-bottom: 12px; font-family: "SFMono-Regular", Consolas, monospace; resize: vertical; }
.input-row input, .lookup input { flex: 1 1 260px; }
.input-row, .lookup { margin-bottom: 18px; }
.worker-results { min-height: 86px; padding: 18px; }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
h3 { margin: 0 0 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { font-size: 12px; text-transform: uppercase; }
code { border-radius: 4px; padding: 2px 5px; background: var(--field); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
@media (max-width: 820px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .hero, .split, .pool-grid, .tables { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 44px; }
}
