:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f2;
  color: #162c25;
  --green: #11634b;
  --green-dark: #0d4839;
  --muted: #476157;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 0; margin: 0; line-height: 1.55; }
.site-header { background: #113c33; color: #fff; }
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-block: .9rem;
  width: min(100% - 2rem, 43rem);
  margin-inline: auto;
  line-height: 1.25;
}
.brand img { border-radius: .65rem; }
.brand strong, .brand span { display: block; }
.brand span { color: #c5dfd2; font-size: .9rem; }
main { width: min(100% - 2rem, 43rem); margin-inline: auto; padding: clamp(1.9rem, 5vw, 4rem) 0 3rem; }
.intro { margin-bottom: 1.45rem; }
h1, h2, legend { letter-spacing: -.035em; line-height: 1.19; }
h1 { font-size: clamp(2.05rem, 5.5vw, 3.25rem); margin: 0 0 .6rem; }
.intro p, #result-description { color: var(--muted); margin: 0; }
.panel { background: #fff; border: 1px solid #d5dfd8; border-radius: 1.2rem; padding: clamp(1.05rem, 4vw, 2rem); box-shadow: 0 8px 26px #12382d0a; }
.loading { margin: 0; }
.progress { margin-bottom: 1.4rem; }
.progress label { color: var(--green-dark); font-weight: 720; font-size: .9rem; }
progress { display: block; appearance: none; width: 100%; height: .42rem; margin-top: .5rem; border: 0; border-radius: 999px; overflow: hidden; background: #e5ece7; color: var(--green); }
progress::-webkit-progress-bar { background: #e5ece7; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { font-size: clamp(1.28rem, 3.5vw, 1.6rem); font-weight: 750; margin-bottom: 1.05rem; padding: 0; }
.choices { display: grid; gap: .55rem; }
.option {
  display: flex; gap: .8rem; align-items: center;
  min-height: 3rem; padding: .65rem .85rem; border-radius: .7rem;
  background: #fafbf9; border: 1px solid #d5dfd8; cursor: pointer;
}
.option:hover { border-color: #659884; }
.option:has(input:checked) { background: #eaf6ef; border-color: var(--green); }
.option:has(input:focus-visible), :is(a, button, legend, h2):focus-visible {
  outline: 3px solid #a66714; outline-offset: 3px;
}
.option input { width: 1.13rem; height: 1.13rem; margin: 0; accent-color: var(--green); flex: none; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-top: 1.3rem; }
button, .primary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .55rem 1.15rem; border: 1px solid transparent; border-radius: .65rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { background: #fff; border-color: #cad8cf; color: var(--green-dark); }
.secondary:hover { background: #f0f5f0; }
button:disabled { opacity: .62; cursor: wait; }
fieldset:disabled .option { cursor: wait; }
.message { margin: 1rem 0 0; color: #773d0c; background: #fff4e4; border-radius: .6rem; padding: .65rem .85rem; }
h2 { font-size: clamp(1.65rem, 4vw, 2.15rem); margin: 0 0 .55rem; }
.result-actions { justify-content: flex-start; }
@media (max-width: 380px) {
  .actions .primary { flex-grow: 1; }
  .result-actions { display: grid; }
}
