:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f2;
  color: #171717;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(920px, 100%);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
}

h2 { margin-top: 32px; }

.muted {
  color: #666;
  line-height: 1.7;
  margin: 0 0 24px;
}

.hint {
  margin: 18px 0 0;
  color: #777;
  font-size: 14px;
}

.domain-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.domain-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid #ddd;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: 0.16s ease;
}

.domain-card:hover {
  border-color: #111;
  transform: translateY(-2px);
}

.domain-card strong { font-size: 22px; }
.domain-card span { color: #666; }

.form {
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 650;
}

input, select {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  color: #111;
}

input[readonly] {
  background: #f7f7f7;
  color: #555;
}

button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: #555;
  text-decoration: none;
}

.bottom { margin-top: 20px; }

.messages { margin-bottom: 18px; }
.message {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #f0f0f0;
}
.message.error { background: #ffecec; color: #8a1f1f; }
.message.warning { background: #fff6db; color: #6b4e00; }
.message.success { background: #eaf8ee; color: #17642a; }
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f1f1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.created-box {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #cbe8d2;
  border-radius: 16px;
  background: #f3fbf5;
}

.big-code {
  display: block;
  width: fit-content;
  font-size: 22px;
  padding: 10px 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

th { background: #fafafa; }
tr:last-child td { border-bottom: 0; }
