main {
  max-width: 900px;
}
header {
  gap: 12px;
}
header button {
  margin-left: auto;
  width: auto;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
nav a,
.link-button {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid #dedede;
  border-radius: 9px;
  text-decoration: none;
  color: #222;
  background: #fff;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
}
.card {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  background: #fff;
}
.muted {
  color: #616161;
}
.badge {
  font-size: 13px;
  display: inline-block;
  background: #f6edce;
  border-radius: 20px;
  padding: 5px 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.actions button,
.actions a {
  width: auto;
  flex: 1;
  min-width: 130px;
}
textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid #aaa;
  border-radius: 8px;
  font: inherit;
}
select[multiple] {
  min-height: 110px;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
}
.check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.check label {
  margin: 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
code {
  overflow-wrap: anywhere;
}
#status {
  color: #852710;
  min-height: 24px;
}
button:disabled {
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #917020;
  outline-offset: 3px;
}
p {
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
form {
  margin-top: 15px;
}
form button {
  margin-top: 16px;
}
small {
  display: block;
}
.error {
  color: #9c2513;
}
@media (max-width: 500px) {
  main {
    padding: 20px 16px;
  }
  nav a {
    flex: 1 1 42%;
    text-align: center;
    font-size: 14px;
    padding: 11px 8px;
  }
  header span {
    font-size: 12px;
  }
  .card {
    padding: 16px;
  }
  h1 {
    font-size: 26px;
  }
}
