:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #647067;
  --line: #d9dfd8;
  --accent: #176b53;
  --accent-strong: #0c4c3a;
  --danger: #9b2636;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar,
.section-head,
.site-row,
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar,
.section-head,
.site-row {
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }

.grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.narrow {
  max-width: 460px;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea { resize: vertical; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--accent-strong); }
.button.secondary { background: #e7ede9; color: var(--ink); }
.button.secondary:hover { background: #dce4df; }
.button.danger { background: var(--danger); }

.notice {
  margin: 20px 0;
  border: 1px solid #bdd0c8;
  border-radius: 8px;
  background: #e9f4ef;
  padding: 12px 14px;
  font-weight: 700;
}

.help,
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.help {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
  padding: 12px;
}

.help p {
  margin: 6px 0 0;
}

.api-grid {
  display: grid;
  gap: 8px;
}

.api-grid code {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #f8faf8;
  overflow-wrap: anywhere;
}

.site-list {
  display: grid;
  gap: 12px;
}

.site-row {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.site-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.site-row span,
.empty,
.releases span {
  color: var(--muted);
}

.site-row code,
.releases code {
  color: var(--accent-strong);
  font-weight: 800;
}

.releases {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

@media (max-width: 820px) {
  .grid,
  .site-row,
  .topbar,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .actions {
    justify-content: start;
    flex-wrap: wrap;
  }
}
