:root {
  --ink: #171413;
  --muted: #f3f0ec;
  --line: #ded8d2;
  --rose: #ff3f78;
  --teal: #0e7c72;
  --paper: #fbfaf8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: #111;
  color: white;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}
.brand span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
}
nav { display: flex; align-items: center; gap: 16px; }
nav a, nav button {
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 42px;
}
.hero > div:first-child { min-width: 0; max-width: 560px; }
.hero h1, .panel-head h1, .form-card h1 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1.02; margin: 0; }
.hero img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(23,20,19,.18);
}
.eyebrow { margin: 0 0 12px; color: var(--rose); text-transform: uppercase; font-weight: 900; font-size: .78rem; }
.lead { max-width: 660px; color: #514845; font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button.primary, form .button.primary { background: var(--rose); border-color: var(--rose); color: white; }
.button.secondary { background: white; }
.strip, .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.strip article, .grid article, .card, .form-card, .table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.strip strong, .strip span { display: block; }
.strip span, .card span, table span, small { color: #655d59; }
.section { padding: 52px 0; }
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.form-card { width: min(620px, 100%); margin: 34px auto; }
.form-card.wide { width: 100%; }
form { display: grid; gap: 14px; }
.form-card.wide form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-weight: 800; font-size: .9rem; }
label.full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfc8c2;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: white;
}
.form-card button { width: fit-content; }
.notice {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #e8f5f2;
  border: 1px solid #b7ddd5;
  font-weight: 800;
}
.notice.error { background: #ffe8ee; border-color: #ffc1d0; }
.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--muted);
  font-size: .76rem;
  font-weight: 900;
}
.badge.active { background: #dff6ed; color: #11623c; }
.badge.pending_approval, .badge.provisioning { background: #fff1c9; color: #744b00; }
.badge.suspended { background: #ffe1e8; color: #7d1930; }
.badge.pending_dns { background: #fff1c9; color: #744b00; }
.badge.dns_ok { background: #dff6ed; color: #11623c; }
.badge.failed { background: #ffe1e8; color: #7d1930; }
.badge.none { background: #eee9e3; color: #514845; }
.badge.http_ready, .badge.cert_ready { background: #e2efff; color: #184a82; }
.checklist { padding-left: 18px; }
.checklist li { margin: 8px 0; color: #7a716d; }
.checklist li.done { color: #11623c; font-weight: 900; }
.jobs { padding-left: 18px; }
.jobs li { margin: 10px 0; }
.ops-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.ops-summary article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ops-summary article.attention { border-color: #f2c46d; background: #fffaf0; }
.ops-summary article.ok { border-color: #b7ddd5; background: #f3fbf8; }
.ops-summary article > span {
  color: #655d59;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.ops-summary article > strong {
  font-size: 2rem;
  line-height: 1;
}
.checklist-cell { min-width: 260px; }
.tenant-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tenant-checklist li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.tenant-checklist strong {
  display: block;
  font-size: .84rem;
}
.tenant-checklist small span {
  font-weight: 900;
  color: inherit;
}
.check-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  border-radius: 999px;
  background: #9f958f;
}
.tenant-checklist li.done .check-dot { background: #16844f; }
.tenant-checklist li.pending .check-dot { background: #c78500; }
.tenant-checklist li.todo .check-dot { background: #9f958f; }
.tenant-checklist li.failed .check-dot { background: #c6294d; }
.audit-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.audit-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.audit-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-list li > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1320px; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.actions-cell { display: grid; gap: 8px; min-width: 260px; }
.actions-cell form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.actions-cell form.billing-form { grid-template-columns: 1fr; }
.domain-cell { min-width: 280px; }
.domain-list { display: grid; gap: 10px; padding: 0; margin: 0 0 12px; list-style: none; }
.domain-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.deploy-box {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf8;
}
code {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
}
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.domain-request { margin: 16px 0 8px; align-items: end; }
footer { padding: 28px 32px; border-top: 1px solid var(--line); color: #655d59; }
@media (max-width: 860px) {
  .top, .panel-head { align-items: start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .hero, .strip, .grid, .grid.two, .ops-summary, .form-card.wide form { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  main { width: min(100% - 24px, 1180px); }
}
