:root { color-scheme: light; font: 16px/1.5 Geist, Inter, system-ui, sans-serif; color: #19332d; background: #f1f5f0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { max-width: 1110px; padding: clamp(1rem, 4vw, 3rem); margin: auto; }
header { padding: .3rem 0 1.35rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
header p { margin-top: .6rem; color: #456458; }
h2 { font-size: 1.17rem; }
.panel { border: 1px solid #c7d8ce; background: #fff; border-radius: 13px; margin-bottom: 1rem; padding: clamp(.9rem, 2.5vw, 1.55rem); }
.import { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem 1.4rem; }
.import p { grid-column: 1 / -1; }
label { font-weight: 600; }
.import label { display: block; margin-top: .6rem; }
input, select, button { font: inherit; }
input[type=file] { display: block; max-width: 100%; }
input[type=text], select { border: 1px solid #a5beb1; background: #fff; color: #19332d; border-radius: 6px; padding: .33rem .45rem; max-width: 100%; }
.controls, .section-heading, footer { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; }
.section-heading { justify-content: space-between; margin-bottom: .75rem; }
button { padding: .5rem .84rem; border-radius: 7px; border: 1px solid #256856; background: #256856; color: #fff; cursor: pointer; font-weight: 650; }
button.secondary { background: #f4f8f5; color: #225748; border-color: #b2cbbd; }
button:disabled { opacity: .62; cursor: default; }
:focus-visible { outline: 2px solid #015a6b; outline-offset: 3px; }
.muted { color: #486458; font-size: .89rem; }
#status { min-height: 1.4em; color: #744426; }
#counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px,1fr)); gap: .65rem; margin: .3rem 0 .8rem; }
#counts div { background: #e8f3eb; border-radius: 8px; padding: .55rem .7rem; }
#counts dt { color: #3b5c50; font-size: .88rem; }
#counts dd { margin: .08rem 0 0; font-size: 1.42rem; font-weight: 650; }
.table-wrap, .svg-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 705px; }
thead { background: #edf5ef; font-size: .86rem; }
td, th { text-align: left; padding: .54rem .6rem; border-bottom: 1px solid #dce8df; vertical-align: top; }
td:nth-child(1) { width: 45%; overflow-wrap: anywhere; }
td:nth-child(4) { width: 26%; }
td input { width: 100%; }
td details { margin-top: .35rem; font-size: .86rem; }
td details p { white-space: pre-wrap; }
.meta { display: block; font-size: .82rem; color: #496b5d; }
.pagination { margin-top: .8rem; }
#flow { width: 100%; min-width: 615px; height: auto; display:block; margin-top: .8rem; }
footer { font-size: .9rem; }
a { color: #225f50; text-underline-offset: .16em; }
@media(max-width: 630px) { .import { grid-template-columns: 1fr; align-items: start; } }
