:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #172c31;
  background: #f1f5f2;
  line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #102e32; padding: 1rem max(1.25rem, calc((100vw - 45rem) / 2)); }
header a { color: #fff; font-size: 1.3rem; font-weight: 750; text-decoration: none; letter-spacing: .035em; }
main { max-width: 45rem; padding: 2rem 1.25rem; margin: auto; }
h1 { margin: 0 0 .6rem; line-height: 1.2; font-size: clamp(1.9rem, 5vw, 2.85rem); }
#status { min-height: 1.55em; }
#workspace { background: #fff; border: 1px solid #c6d4ce; border-radius: .75rem; padding: 1.25rem; }
.fields, form { display: grid; gap: .45rem; }
form, #result { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid #c6d4ce; }
label { font-weight: 650; }
input, select, button { font: inherit; min-height: 2.75rem; border-radius: .35rem; padding: .5rem .7rem; }
input, select { width: 100%; min-width: 0; color: inherit; border: 1px solid #738680; background: #fff; }
button { border: 1px solid #125747; background: #125747; color: #fff; cursor: pointer; white-space: nowrap; }
button[disabled] { opacity: .6; cursor: default; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
:focus-visible { outline: 3px solid #a74817; outline-offset: 3px; }
#result-ref { margin: 0 0 .6rem; overflow-wrap: anywhere; }
@media (max-width: 390px) { .row { grid-template-columns: minmax(0, 1fr); } }
