:root {
  color: #17211b;
  background: #f3f7f4;
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, #dff2e7 0, transparent 42%),
    #f3f7f4;
}

.card {
  width: min(100%, 620px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #d7e4da;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(29 67 45 / 10%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #137333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2 {
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
}

h2 {
  margin-top: 26px;
  font-size: 20px;
}

.intro,
section > p {
  color: #526158;
  line-height: 1.7;
}

.status {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #edf7f0;
  color: #155c2d;
}

.status.error {
  background: #fff0f0;
  color: #a32121;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

label,
dt {
  font-weight: 650;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b9c9be;
  border-radius: 9px;
  color: inherit;
  background: #fff;
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(19 115 51 / 25%);
  outline-offset: 2px;
}

button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #137333;
  border-radius: 9px;
  color: #fff;
  background: #137333;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #0d5b27;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

button.secondary {
  color: #34443a;
  background: #fff;
  border-color: #b9c9be;
}

dl {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

dl div {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) 1fr;
  gap: 12px;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

ul {
  padding-left: 22px;
  line-height: 1.8;
}

code {
  font-size: 0.92em;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column-reverse;
  }

  .actions button {
    width: 100%;
  }
}
