:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #172c24;
  background: #f3f5ef;
  --muted: #485a50;
  --line: #dae2d8;
  --accent: #245a45;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); }
button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #53896b; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.top { background: #f9faf6; border-bottom: 1px solid var(--line); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; color: #132d24; display: flex; align-items: center; gap: 11px; font-size: 30px; font-weight: 750; letter-spacing: -.07em; }
.logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid #245a45; border-radius: 50%; }
.logo::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #347653; box-shadow: 0 0 0 3px #d0e6cf; }
.brand-sep { height: 20px; width: 1px; background: var(--line); margin-left: 6px; }
.brand-label, .kicker, .eyebrow { font-family: ui-monospace, monospace; letter-spacing: .11em; font-size: .82rem; font-weight: 700; }
.brand-label { color: var(--muted); }
.nav-link { text-decoration: none; font-weight: 650; font-size: .93rem; }
.nav-link:hover, .link:hover { text-decoration: underline; }
.hero { margin: 36px 0 26px; border-radius: 24px; background: #102c26; color: #f8faf1; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 353px; overflow: hidden; }
.hero-copy { padding: 36px 0 42px 46px; position: relative; z-index: 1; }
.kicker { display: flex; align-items: center; gap: 10px; color: #c7e7b3; margin: 0 0 17px; }
.kicker span { width: 8px; height: 8px; border: 1px solid #aeda98; border-radius: 50%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(3.25rem, 5.55vw, 4.65rem); line-height: .94; letter-spacing: -.065em; }
h1 em { color: #c6edac; font-weight: 400; }
.hero-copy > p:last-child { max-width: 470px; color: #dee9db; font-size: 1.04rem; line-height: 1.55; margin-top: 22px; }
.scope { display: grid; place-items: center; padding: 30px; background: radial-gradient(ellipse at center, #46836055, transparent 72%); }
.scope-frame { position: relative; display: grid; place-items: center; width: min(100%, 308px); aspect-ratio: 1; background-image: linear-gradient(90deg, #9ed29120 1px, transparent 1px), linear-gradient(#9ed29120 1px, transparent 1px); background-size: 28px 28px; background-position: center; }
.scope-frame i { position: absolute; inset: 0 auto auto 0; width: 20px; height: 20px; border: solid #9bc88d; border-width: 1px 0 0 1px; }
.scope-frame i:nth-child(2) { inset: 0 0 auto auto; transform: rotate(90deg); }
.scope-frame i:nth-child(3) { inset: auto 0 0 auto; transform: rotate(180deg); }
.scope-frame i:nth-child(4) { inset: auto auto 0 0; transform: rotate(270deg); }
.rings { width: 82%; aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 1px solid #a8d69c99; border-radius: 50%; background: conic-gradient(from 45deg, #c3efa54f, transparent 34%, #0e2c2629 71%, #0e2c2600); transform: rotate(-27deg); }
.rings b { position: absolute; inset: 8%; border: 1px solid #a8d69c99; border-radius: 50%; }
.rings b:nth-child(2) { inset: 18%; }
.rings b:nth-child(3) { inset: 27%; }
.rings b:nth-child(4) { inset: 36%; }
.rings span { width: 24px; height: 24px; background: #daffbe; border-radius: 50%; box-shadow: 0 0 40px 9px #caff9577; }
.workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.panel { min-width: 0; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.eyebrow { color: #486153; margin-bottom: 5px; }
h2 { font-size: clamp(1.75rem, 4vw, 2.2rem); letter-spacing: -.035em; line-height: 1.08; }
.icon, .upload-mark { display: grid; place-items: center; color: #315f45; background: #edf4ea; border-radius: 10px; width: 40px; height: 40px; flex: 0 0 auto; font-size: 24px; }
.drop { min-height: 228px; border: 1px dashed #89a496; border-radius: 13px; background: #f7faf5; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 20px 10px; text-align: center; }
.drop.dragging { background: #dff0d9; border-color: #245a45; }
.upload-mark { width: 46px; height: 46px; margin-bottom: 4px; }
h3 { font-size: 1.05rem; font-weight: 750; }
.drop p, .panel-note, .summary, figcaption span, .export p, .research p { color: var(--muted); line-height: 1.5; }
.drop p { font-size: .91rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; border-radius: 8px; padding: 9px 16px; text-decoration: none; font-weight: 700; font-size: .94rem; border: 1px solid transparent; }
.primary { background: #245a45; color: white; }
.primary:hover { background: #173d2e; }
.primary:disabled { opacity: .6; cursor: wait; }
.secondary { border-color: #245a45; color: #245a45; }
.secondary:hover { background: #edf4ea; }
.drop .button { margin-top: 7px; }
.link { color: #245a45; background: none; border: 0; padding: 7px 0; text-align: left; font-weight: 700; font-size: .93rem; }
.input-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 15px; margin-top: 8px; }
.input-actions button { min-height: 44px; }
#preview { background: #eef3eb; border-radius: 13px; overflow: hidden; }
#preview.dragging { outline: 3px solid #53896b; outline-offset: -3px; }
#preview img { width: 100%; height: 225px; display: block; object-fit: contain; background: #182e26; }
figcaption { display: grid; padding: 11px 15px; gap: 2px; overflow-wrap: anywhere; }
figcaption span { font-size: .86rem; }
.summary { background: #eef4ea; border-radius: 9px; padding: 9px 12px; font-size: .91rem; font-weight: 700; }
.signals { list-style: none; margin: 7px 0 12px; padding: 0; }
.signal { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 9px; border-bottom: 1px solid #e7ece6; padding: 9px 0; }
.signal strong { font-size: .94rem; }
.signal p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.pill { padding: 3px 8px; border-radius: 12px; background: #edf1ed; color: #465b4e; font-size: .78rem; font-weight: 700; }
.pill[data-on="true"] { background: #dbeed1; color: #24462c; }
.panel-note { font-size: .86rem; }
.error { margin-top: 9px; color: #922b22; font-size: .92rem; }
.export { margin-top: 20px; }
.export-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.export-actions label { font-weight: 700; }
select { max-width: 100%; background: #f8faf6; color: #172c24; border: 1px solid #9eb4a7; border-radius: 8px; padding: 9px; min-height: 43px; }
.export-status:not(:empty) { margin-bottom: 12px; }
.research { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.research-head { margin-bottom: 20px; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.research-grid article { border-left: 2px solid #a4c4a7; padding: 0 12px; }
.research-grid p { margin: 7px 0; }
.research-grid a { font-size: .94rem; font-weight: 650; }
.footer { border-top: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; margin-top: 38px; padding: 18px 0; color: var(--muted); font-size: .88rem; }
.footer span:first-child { font-weight: 750; }
@media (max-width: 740px) {
  .wrap { width: calc(100% - 28px); }
  .hero { margin-top: 20px; grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 29px 24px 32px; }
  .scope { display: none; }
  .workbench, .research-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .nav { min-height: 60px; }
}
@media (max-width: 410px) {
  .brand-label, .brand-sep { display: none; }
  h1 { font-size: 3.1rem; }
}

.batch-status { margin-top: 13px; }
.batch-items { margin-bottom: 0; }
.batch-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.batch-item:last-child { border-bottom: 0; }
.batch-file { display: block; overflow-wrap: anywhere; }
.batch-detail { margin-top: 4px; overflow-wrap: anywhere; }
.batch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.batch-actions .button, .batch-actions .link { min-height: 40px; }
.button:disabled, .link:disabled { opacity: .65; cursor: default; }
@media (max-width: 440px) {
  .batch-item { grid-template-columns: minmax(0, 1fr); }
  .batch-item > .pill { grid-row: 2; justify-self: start; }
}
