:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  font-size: 17px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { max-width: 780px; margin: 0 auto; padding: 24px 20px 48px; }
header { border-bottom: 1px solid #ddd; padding-bottom: 16px; }
.brand { margin: 0 0 8px; font-weight: 600; }
nav { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 4px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
a { color: #005fcc; text-underline-offset: 3px; overflow-wrap: anywhere; }
a[aria-current="page"] { color: #222; font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.2; margin: 32px 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.35; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
ul { padding-left: 24px; }
li { margin-bottom: 8px; }
.muted, .hint { color: #555; }
.hint { font-size: 0.88rem; margin: 4px 0 8px; }
footer { margin-top: 36px; border-top: 1px solid #ddd; padding-top: 16px; font-size: 0.88rem; }
form { margin-top: 24px; }
label { display: block; font-weight: 600; margin: 20px 0 6px; }
input, select, textarea, button { font: inherit; line-height: 1.45; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid #777; border-radius: 4px; background: #fff; color: #222;
}
textarea { display: block; min-height: 180px; resize: vertical; }
fieldset { min-width: 0; margin: 28px 0 24px; border: 1px solid #ccc; padding: 0 16px 20px; }
legend { max-width: 100%; padding: 0 6px; font-weight: 600; }
button { width: 100%; min-height: 48px; padding: 12px; background: #005fcc; color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
button:hover { background: #004ea8; }
button:disabled { background: #555; cursor: wait; }
:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
[aria-invalid="true"] { border-color: #a71919; }
.field-error { color: #a71919; font-size: 0.88rem; margin-top: 4px; }
.notice { margin: 20px 0; padding: 12px 16px; border: 1px solid #777; overflow-wrap: anywhere; }
.notice[data-state="error"] { border-color: #a71919; color: #8e1515; }
.notice[data-state="success"] { border-color: #24733c; color: #19532b; }
[hidden] { display: none !important; }
@media (max-width: 400px) {
  body { padding: 16px 16px 36px; }
  h1 { font-size: 1.8rem; }
  nav { column-gap: 18px; }
}
@media print {
  body { max-width: none; padding: 0; font-size: 12pt; }
  nav, form { display: none; }
  a { color: #222; }
}
