:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182028;
  background: #f5f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.6;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px max(20px, calc((100% - 760px) / 2));
  border-bottom: 1px solid #dce2e6;
  background: #ffffff;
}

nav,
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

a {
  color: #075da8;
}

.brand {
  color: #182028;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

main {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 40px 0 64px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
}

h2 {
  margin: 32px 0 8px;
  font-size: 21px;
}

.updated,
.notice {
  color: #52616d;
}

form {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #d6dde2;
  border-radius: 8px;
  background: #ffffff;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 650;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input,
button {
  min-height: 44px;
  border: 1px solid #9aa8b2;
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  padding: 8px 10px;
}

button {
  padding: 8px 14px;
  color: #ffffff;
  border-color: #075da8;
  background: #075da8;
  cursor: pointer;
}

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

#code-step {
  margin-top: 16px;
}

#confirm-deletion {
  width: 100%;
  margin-top: 14px;
}

.status {
  min-height: 24px;
  margin-bottom: 0;
}

.status.error {
  color: #a02117;
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #dce2e6;
}

@media (max-width: 560px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
