:root {
  font-family: system-ui, sans-serif;
  color: #173333;
  background: #f5faf8;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d4e3df;
}
header a {
  font-weight: 700;
  color: #0f6e6e;
}
main {
  max-width: 760px;
  margin: auto;
  padding: 24px 16px;
}
h1 {
  font-size: 1.8rem;
}
h2 {
  font-size: 1.2rem;
}
p,
footer {
  line-height: 1.6;
}
section,
form {
  background: white;
  border: 1px solid #d4e3df;
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font: inherit;
  border: 1px solid #adbfba;
  border-radius: 8px;
  background: white;
  color: inherit;
}
textarea {
  min-height: 110px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
button,
.button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: #0f6e6e;
  color: white;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
nav {
  display: flex;
  gap: 10px;
}
nav button[aria-pressed="false"],
.cancel {
  background: #e3eeeb;
  color: #173333;
}
.small,
footer {
  font-size: 0.8rem;
  color: #526d65;
}
#error {
  color: #a52222;
}
.row {
  border-top: 1px solid #d4e3df;
  padding: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.row button {
  font-size: 0.8rem;
  padding: 8px;
  margin: 8px 8px 0 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #d9982f;
  outline-offset: 3px;
}
