:root {
  color-scheme: light;
  --ink: #142a27;
  --muted: #52645d;
  --green: #1d5e4d;
  --green-dark: #164738;
  --line: #d3dfd5;
  --paper: #fff;
  --wash: #f3f6f2;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green-dark); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #1d775c; outline-offset: 3px; }
.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.row { display: flex; align-items: center; gap: .55rem .85rem; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 4rem; padding-block: .45rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: var(--green); color: white; font-size: 1.6rem; }
.skip { position: absolute; z-index: 2; padding: .55rem; left: .8rem; top: .6rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(1.95rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.22rem, 2.6vw, 1.52rem); }
h3 { font-size: 1.08rem; }
.breadcrumb { margin: 1.35rem 0 1rem; }
.lead { margin: .75rem 0 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.14rem); }
.muted { color: var(--muted); font-size: .91rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(.9rem, 2.6vw, 1.5rem); box-shadow: 0 4px 16px #16392d08; margin-bottom: 1rem; }
.drop { margin-top: .95rem; display: flex; justify-content: space-between; align-items: center; gap: .85rem; padding: clamp(1rem, 2.8vw, 1.45rem); border: 1.5px dashed #86a997; border-radius: .75rem; background: #f2f7f3; }
.drop.dragging { background: #e1f1e8; border-color: var(--green); }
.drop .muted { margin-top: .2rem; }
.upload-controls { margin-top: .8rem; }
.access-bar { margin: -.15rem 0 .95rem; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .47rem .8rem; border-radius: .52rem; border: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:not(:disabled):hover { background: var(--green-dark); }
.secondary { background: #fff; color: var(--green-dark); }
.secondary:not(:disabled):hover { background: #e8f2ed; border-color: #a2bcac; }
.link-button { background: none; padding: .35rem 0; border: 0; color: var(--green-dark); text-decoration: underline; text-underline-offset: .18em; text-align: left; font-weight: 650; }
.working, .notice { margin-top: .8rem; border-radius: .55rem; background: #eef3ef; padding: .65rem .75rem; }
.work-caption { display: flex; align-items: center; gap: .65rem; }
progress { width: 4rem; accent-color: var(--green); }
.summary { margin-top: .35rem; }
.files { padding: 0; margin: .8rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.file { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(15rem, 1.25fr); align-items: center; gap: .45rem 1.2rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.file-name { font-weight: 650; }
.file-pick { display: flex; align-items: center; column-gap: .5rem; }
.file-pick input { accent-color: var(--green); flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin: 0; }
.file-actions { justify-content: flex-end; }
.file-actions .link-button, .file-actions .verify-link { font-size: .9rem; }
.result-label { display: inline-block; padding: .15rem .5rem; border-radius: .38rem; background: #e8f2ed; color: var(--green-dark); font-size: .86rem; font-weight: 650; }
.result-label[data-status="notice"] { background: #fff5de; color: #76521c; }
.result-label[data-status="error"] { background: #fff1f1; color: #932932; }
.file-result .muted, .bundle .muted { margin-top: .24rem; }
.bundle { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .62rem; background: #f2f7f3; }
.verification { margin-top: .8rem; }
.how { margin: 1.6rem 0 1.55rem; }
.how ol { padding-inline-start: 1.45rem; margin-bottom: 0; }
.how li + li { margin-top: .34rem; }
.faq details { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: .4rem; }
.footer { margin-top: 1.35rem; padding-block: .8rem 1.3rem; border-top: 1px solid var(--line); }
.access-dialog { width: min(34rem, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); padding: clamp(.8rem, 3vw, 1.45rem); border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); background: var(--paper); }
.access-dialog::backdrop { background: #102b2399; }
.access-dialog > .muted { margin-top: .6rem; }
.access-dialog form, #access-payment { margin-top: .85rem; }
.access-dialog form { display: grid; gap: .48rem; }
.access-dialog form label { font-weight: 650; }
.access-dialog input { font: inherit; min-height: 2.75rem; width: 100%; padding: .45rem .65rem; border: 1px solid #91a99b; border-radius: .5rem; color: var(--ink); }
.access-dialog .link-button { margin-top: .6rem; }
.access-dialog .notice[data-error="true"] { background: #fff1f1; color: #932932; }
.pdf-viewer { width: min(66rem, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); padding: clamp(.65rem, 2vw, 1.15rem); border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); background: var(--paper); }
.pdf-viewer::backdrop { background: #102b2399; }
.pdf-viewer .muted { margin-top: .2rem; }
.pdf-toolbar { margin-block: .85rem .65rem; }
.pdf-toolbar .primary { margin-inline-start: auto; }
.pdf-sheet { max-height: 70dvh; overflow: auto; }
.pdf-sheet:has(canvas:not([hidden])) { padding: .6rem; background: #e7ede8; border-radius: .55rem; }
.pdf-sheet canvas { display: block; width: 100%; height: auto; background: white; }
.text-sheet { padding: .8rem; margin: .8rem 0 0; max-height: 68dvh; overflow: auto; border: 1px solid var(--line); border-radius: .55rem; background: var(--wash); font: .95rem/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 790px) {
  .file { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .file-actions { justify-content: flex-start; grid-column: 1 / -1; }
}
@media (max-width: 530px) {
  .drop, .bundle { align-items: stretch; flex-direction: column; }
  .file { grid-template-columns: minmax(0, 1fr); }
  .file-actions { grid-column: auto; }
}
