:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182f2a;
  background: #f3f5f0;
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}
h1 { margin: .25rem 0; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.15; letter-spacing: -.04em; }
h2, legend { font-size: 1.1rem; font-weight: 700; }
h2 { margin: 0 0 .5rem; }
p { margin: .6rem 0; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: #486158; }
.equipment { font-weight: 600; }
.equipment span { margin: 0 .3rem; }
.offline-panel { margin: 1.25rem 0; padding: .65rem 1rem; border-left: 3px solid #7a9686; background: #e8eee6; font-size: .9rem; }
form, .saved-panel { background: #fff; border: 1px solid #c9d5cb; border-radius: 1rem; padding: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0 0 1rem; }
.field { min-width: 0; margin-bottom: 1rem; }
label { display: block; font-weight: 650; margin-bottom: .4rem; }
.unit { font-size: .85rem; font-weight: 400; }
input {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  min-height: 3rem; padding: .65rem .75rem; border: 1px solid #7c9288;
  border-radius: .5rem; background: #fff; color: #182f2a; font: inherit; font-size: 1rem;
}
input[type="date"] { appearance: none; -webkit-appearance: none; }
.hint { font-size: .8rem; color: #52665e; }
button { min-height: 3rem; padding: .75rem 1rem; border: 0; border-radius: .5rem; background: #174b40; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
#save { width: 100%; }
button.secondary { background: #e8eee6; color: #174b40; border: 1px solid #7c9288; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #b65b0c; outline-offset: 3px; }
[aria-invalid="true"] { border: 2px solid #9c2825; }
.error { color: #9c2825; font-size: .9rem; font-weight: 600; }
.save-status { font-weight: 650; margin-bottom: 0; }
.saved-panel { margin-top: 1rem; }
#saved-summary { white-space: pre-line; overflow-wrap: anywhere; }
footer { color: #52665e; font-size: .85rem; margin-top: 1.25rem; }
[hidden] { display: none !important; }
@media (min-width: 420px) {
  .result-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
