:root {
  --ink: #122033;
  --muted: #4d6073;
  --line: #dbe5ee;
  --paper: #f3f7f4;
  --blue: #0a63c8;
  --navy: #0c2344;
  --green: #128a45;
  --danger: #b42318;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-inner, .page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.brand img { height: 36px; width: auto; }
.page { padding: 28px 0 64px; }
h1 { font-size: 1.8rem; letter-spacing: -0.03em; margin: 0 0 8px; }
.lead, .muted { color: var(--muted); }
.lead { margin: 0 0 20px; }
.muted { font-size: 0.88rem; margin: 8px 0 0; }
h2 { font-size: 1.15rem; margin: 0 0 4px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat strong { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.88rem; }
label { display: block; font-weight: 700; font-size: 0.88rem; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  background: var(--green);
  color: white;
}
.btn.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 10px; font-size: 0.82rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: step;
}
.steps li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 46px;
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.92rem; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.flash.ok { background: #e7f6ee; color: #0d6b36; }
.flash.bad { background: #fdecea; color: var(--danger); }
.errors { color: var(--danger); margin: 0 0 10px; padding-left: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; }
.check input { width: auto; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.subdomain-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.subdomain-field input {
  border: 0;
  border-radius: 0;
  flex: 1;
  min-width: 8rem;
}
.subdomain-field span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--navy);
  font-weight: 700;
  background: #eef4f0;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.url-preview { margin: 8px 0 0; font-weight: 700; word-break: break-all; }
.subdomain-status { margin: 4px 0 0; font-size: 0.88rem; min-height: 1.2em; }
.subdomain-status.bad { color: var(--danger); }
.subdomain-status.ok { color: var(--green); }
@media (max-width: 800px) {
  .grid, .row, .steps { grid-template-columns: 1fr; }
}
