:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f6fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.topbar,
.section-heading,
.domain-row,
.domain-main,
.domain-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 28px;
}

.eyebrow,
.hint,
.domain-status,
.section-heading p {
  color: #68738a;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.card {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #e3e7ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(27 43 71 / 4%);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p,
.card > p {
  margin-bottom: 0;
  font-size: 14px;
}

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

.form-grid .section-heading {
  margin-bottom: 0;
}

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

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd2df;
  border-radius: 8px;
  color: #172033;
  background: #fff;
  font: inherit;
}

input:focus {
  outline: 3px solid #cbdafe;
  border-color: #486de8;
}

.hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #3659d9;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button:hover {
  background: #2949bf;
}

.button:disabled {
  opacity: .6;
  cursor: wait;
}

.button.secondary {
  border: 1px solid #d6dce7;
  color: #26334d;
  background: #fff;
}

.domain-list {
  display: grid;
}

.domain-row {
  padding: 16px 0;
  border-top: 1px solid #edf0f5;
}

.domain-main {
  justify-content: flex-start;
  min-width: 0;
}

.domain-name {
  margin-bottom: 5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.domain-status {
  margin-bottom: 0;
  font-size: 13px;
}

.domain-status[data-state="SUCCESS"] {
  color: #217747;
}

.domain-status[data-state="PENDING"] {
  color: #946300;
}

.domain-actions {
  flex: 0 0 auto;
}

.domain-actions input {
  min-width: 220px;
}

.notice,
.loading {
  margin: 14px 0;
  padding: 13px 15px;
  border-radius: 9px;
  background: #e8edf8;
  line-height: 1.45;
}

.notice.error {
  color: #852b2b;
  background: #fbe9e9;
}

.notice.success {
  color: #1d653c;
  background: #e7f5ec;
}

.empty {
  padding: 18px 0;
  color: #68738a;
}

.hidden {
  display: none !important;
}

@media (max-width: 680px) {
  .container {
    padding-top: 28px;
  }

  .card {
    padding: 18px;
  }

  .domain-row,
  .domain-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .domain-actions input {
    min-width: 0;
  }
}
