:root {
  color-scheme: light;
  --paper: #f5f6f1;
  --white: #fff;
  --ink: #182d26;
  --muted: #495e55;
  --green: #235b48;
  --deep: #153d32;
  --line: #d5ded6;
  --soft: #edf5ef;
  --amber: #fff2dc;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.layout { width: min(100% - 48px, 910px); margin-inline: auto; }
.masthead { background: var(--deep); color: white; padding: 33px 0 38px; }
.org { margin: 0 0 13px; color: #d3ebe0; font-size: .9rem; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 5vw, 2.75rem); line-height: 1.11; letter-spacing: -.034em; max-width: 750px; margin: 0 0 14px; }
.intro { margin: 0; max-width: 670px; color: #e3f0e9; }
main { padding-bottom: 45px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; font-weight: 650; min-height: 44px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 23px 26px; margin: 0 0 14px; }
h2 { font-size: 1.28rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.012em; }
h3 { font-size: 1.04rem; margin: 0 0 7px; }
p { margin: 0 0 12px; }
.hint, .help, .muted { color: var(--muted); }
.hint, .help { font-size: .91rem; }
.help { display: block; margin: 4px 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 16px; }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 600; }
.assigned-id { min-width: 0; align-self: end; display: grid; gap: 5px; font-size: .91rem; }
.assigned-id strong { display: block; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); overflow-wrap: anywhere; }
input[type="text"], input[type="date"], textarea { display: block; width: 100%; min-width: 0; border: 1px solid #a8bab0; border-radius: 6px; color: var(--ink); background: var(--white); padding: 8px 10px; margin-top: 5px; }
input[type="text"], input[type="date"] { min-height: 44px; }
.period { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.period h3 { margin-bottom: 0; }
.period .fields { margin-top: 10px; }
.period .status { margin-bottom: 0; }
#criteria:disabled .option { cursor: default; }
textarea { min-height: 74px; resize: vertical; }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.choice { margin: 14px 0 12px; }
.choice legend { font-weight: 700; padding: 0; margin-bottom: 5px; }
.options { display: grid; gap: 5px; }
.options.short { display: flex; flex-wrap: wrap; gap: 7px; }
.option { font-weight: 450; display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; min-height: 44px; cursor: pointer; }
.option:hover { border-color: #819f90; }
.option:has(input:checked) { background: var(--soft); border-color: #769987; }
.option input { flex-shrink: 0; margin: 5px 0 0; accent-color: var(--green); width: 16px; height: 16px; }
.note { margin-top: 13px; }
details.card summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 12px; }
.action { display: flex; flex-wrap: wrap; gap: 10px 17px; align-items: center; }
.primary { background: var(--green); color: white; padding: 8px 18px; border: 1px solid var(--green); border-radius: 7px; }
.primary:hover { background: var(--deep); }
:focus-visible { outline: 3px solid #326f99; outline-offset: 3px; }
.action .hint { flex: 1 1 275px; margin: 0; }
.status { color: var(--deep); margin-top: 10px; }
.status:empty { display: none; }
.status.error { color: #842910; }
.answers { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 0 16px; margin: 12px 0 0; }
.answers dt, .answers dd { border-top: 1px solid var(--line); padding: 9px 0; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.answers dt { font-weight: 650; }
.answers dd { white-space: pre-wrap; }
@media (max-width: 600px) {
  .layout { width: calc(100% - 28px); }
  .masthead { padding: 25px 0 28px; }
  .card { padding: 17px 15px; }
  .fields { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr; }
  .answers dt { padding-bottom: 0; }
  .answers dd { border: 0; padding-top: 4px; }
}
