:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #17251d; background: #f4f6f0; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1a5139; text-underline-offset: .2em; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #adb9ac; border-radius: .55rem; background: #fff; color: #18392c; padding: .46rem .75rem; font-size: .875rem; font-weight: 650; }
button:hover:enabled { background: #e6eee7; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #1d7956; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.top { border-bottom: 1px solid #d5ddd0; background: #fbfcf8; }
.top .shell, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top .shell { min-height: 3.7rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #18392c; font-weight: 750; text-decoration: none; }
.mark { display: inline-grid; place-items: center; background: #214d39; color: white; width: 1.75rem; height: 1.75rem; border-radius: .45rem; font-size: 1.1rem; }
.intro { padding: 2.65rem 0 1.4rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.3rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 760; }
.intro p { margin-top: .6rem; color: #46594d; }
.layout { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
.panel { min-width: 0; border: 1px solid #d0d9cf; border-radius: .9rem; background: #fff; padding: 1.15rem; }
h2 { font-size: 1.1rem; letter-spacing: -.015em; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .85rem; flex-wrap: wrap; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.text-button { border-color: transparent; }
textarea, select, #limit { width: 100%; border: 1px solid #aebbb0; border-radius: .5rem; color: inherit; background: #fff; }
textarea { display: block; min-height: 18.8rem; resize: vertical; padding: .85rem; line-height: 1.65; }
#file-note, .hint, footer { color: #506356; font-size: .85rem; }
#file-note { margin: .6rem 0 1rem; overflow-wrap: anywhere; }
.scope { padding: 0; border: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.scope legend, .limits label { font-size: .88rem; font-weight: 700; margin-bottom: .15rem; }
.scope label { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; }
.scope input { margin: 0; accent-color: #236746; }
#selection-note { margin-top: .4rem; }
.metrics { margin: .65rem 0 1rem; }
.metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #e3e9e1; padding: .45rem 0; }
.metrics dt { color: #415348; font-size: .9rem; }
.metrics dd { margin: 0; font-size: 1.18rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.limits { display: grid; gap: .35rem; }
.limits label:not(:first-child) { margin-top: .35rem; }
select, #limit { min-height: 2.5rem; padding: .36rem .55rem; font-size: .93rem; }
.limit-note { font-size: .86rem; color: #506356; min-height: 2.65em; }
[data-tone="negative"] { color: #a1261a !important; }
[data-tone="positive"] { color: #1a5e3f; }
.primary { margin-top: .5rem; width: 100%; padding: .64rem; background: #214d39; border-color: #214d39; color: #fff; }
.primary:hover:enabled { background: #163b2b; }
footer { padding: 1.15rem 0 2rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.info { max-width: 48rem; padding: 2.5rem 0; }
.info section { margin-top: 1.2rem; }
.info p { margin: .55rem 0; }
@media (max-width: 730px) {
  .shell { width: calc(100% - 1.5rem); }
  .intro { padding-top: 1.6rem; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  textarea { min-height: 13.5rem; }
}
