:root {
  font: 16px/1.54 "Avenir Next", system-ui, sans-serif;
  color: #162b22;
  background: #f8f7ef;
  --border: #d9dfce;
  --muted: #4c6256;
  --green: #185138;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(100% - 2rem, 70rem); margin-inline: auto; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
a { color: var(--green); }
.brand { font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.intro { padding: clamp(1rem, 5vw, 4rem) 0 1.6rem; }
h1, h2, p { margin: 0 0 .7rem; }
h1 { max-width: 15ch; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .99; letter-spacing: -.065em; }
h2 { line-height: 1.2; }
.intro p { font-size: 1.1rem; color: var(--muted); max-width: 42ch; }
.workspace { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1rem; align-items: start; }
.panel { padding: clamp(1rem, 3vw, 2rem); border-radius: 1.35rem; border: 1px solid var(--border); background: #fffef8; min-width: 0; }
.result { background: #e7efca; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-bottom: .8rem; }
label { display: block; font-weight: 650; }
input { width: 100%; margin-top: .3rem; min-height: 2.8rem; border: 1px solid #829582; border-radius: .55rem; background: #fff; padding: .5rem .65rem; color: inherit; font: inherit; }
.hint, .error { color: var(--muted); font-size: .875rem; font-weight: 450; display: block; }
.error, [data-loss="true"] { color: #9f2d25; }
[aria-invalid=true] { border-color: #9f2d25; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
button { min-height: 2.75rem; border: 1px solid var(--green); border-radius: .65rem; padding: .5rem .9rem; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.secondary { background: transparent; color: var(--green); }
:focus-visible { outline: 3px solid #2275a0; outline-offset: 3px; }
#errors:empty { display: none; }
.label { margin: 1.2rem 0 0; }
.figure { display: block; font-weight: 850; font-size: clamp(1.8rem, 4vw, 3rem); overflow-wrap: anywhere; }
dl { margin: 1.2rem 0 0; }
dl div { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid #b9c6a1; padding: .48rem 0; }
dd { margin: 0; text-align: right; font-weight: 700; }
.guide { max-width: 46rem; margin-block: 2rem; }
footer { border-top: 1px solid var(--border); font-size: .9rem; }
@media (max-width: 48rem) { .workspace { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .fields { grid-template-columns: 1fr; } }

#analytics-consent { width: auto; min-height: auto; }
footer { flex-wrap: wrap; }
