
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font: 1rem/1.45 Georgia, "Times New Roman", serif;
}

main {
  width: min(calc(100% - 2rem), 42rem);
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

h1,
h2 {
  line-height: 1.15;
}

form + form {
  margin-top: 0.75rem;
}

label,
summary,
dt {
  font-weight: 700;
}

summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
}

input[type="password"],
textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #666;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

#agent-instructions {
  min-height: 12rem;
}

button {
  min-height: 44px;
  border: 1px solid #444;
  border-radius: 0;
  background: #eee;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  touch-action: manipulation;
}

dl {
  display: grid;
  grid-template-columns: minmax(6rem, auto) minmax(0, 1fr);
  gap: 0.35rem 1rem;
}

dd {
  margin: 0;
}

a,
dd,
output,
p {
  overflow-wrap: anywhere;
}

@media (max-width: 30rem) {
  main {
    width: calc(100% - 1.5rem);
    padding-top: 0.75rem;
  }

  button {
    width: 100%;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  dd + dt {
    margin-top: 0.75rem;
  }
}
