:root {
  color-scheme: light;
  --ink: #142a27;
  --muted: #52645d;
  --green: #1d5e4d;
  --green-dark: #164738;
  --line: #d3dfd5;
  --paper: #fff;
  --wash: #f3f6f2;
  --red: #932932;
  --red-wash: #fff1f1;
  --amber: #76521c;
  --amber-wash: #fff5de;
  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, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 3px solid #1d775c; outline-offset: 3px; }
.wrap { width: min(1170px, calc(100% - 2rem)); margin-inline: auto; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner, .row { display: flex; align-items: center; gap: .55rem .8rem; flex-wrap: wrap; }
.top-inner { justify-content: space-between; min-height: 4rem; }
.spread { justify-content: space-between; }
.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; }
.breadcrumb { margin: 1.35rem 0 1rem; font-size: .88rem; color: var(--muted); }
h1,h2,h3,p { margin: 0; overflow-wrap: anywhere; }
h1,h2,h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); max-width: 26ch; }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.52rem); }
h3 { font-size: 1.08rem; }
.lead { margin: .75rem 0 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.14rem); }
.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: .9rem; padding: 1rem; border: 1.5px dashed #86a997; border-radius: .75rem; background: #f2f7f3; }
.drop.dragging { background: #e1f1e8; border-color: var(--green); }
.muted { color: var(--muted); font-size: .91rem; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; padding: .5rem .88rem; min-height: 2.6rem; 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:hover { background: var(--green-dark); }
.secondary { background: #fff; color: var(--green-dark); }
.secondary:hover, .secondary[aria-pressed="true"] { background: #e8f2ed; border-color: #a2bcac; }
.link-button { background: none; padding: .22rem 0; border: 0; color: var(--green-dark); text-decoration: underline; text-underline-offset: .18em; font-weight: 650; }
.upload-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .82rem; }
.upload-controls #demo { margin-inline-start: auto; }
select, input[type=email] { min-height: 2.6rem; padding: .38rem .55rem; border: 1px solid #91a99b; border-radius: .45rem; color: var(--ink); background: var(--paper); }
.notice { padding: .65rem .78rem; margin-top: .75rem; border-radius: .52rem; background: var(--wash); }
.notice[data-kind="error"] { color: var(--red); background: var(--red-wash); }
.summary { margin-top: .35rem; font-weight: 650; }
#issues-panel { margin-top: .8rem; }
.issues { margin: .6rem 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .42rem; }
.issue-button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-inline-start: 3px solid var(--red); border-radius: .48rem; padding: .48rem .62rem; color: var(--ink); }
.issue-button[data-severity="warning"] { border-inline-start-color: var(--amber); }
.issue-button[aria-pressed="true"], .issue-button:hover { background: var(--wash); }
.issue-button span { display: block; color: var(--muted); font-size: .84em; }
.detail { margin-top: .8rem; padding: .68rem .82rem; border-inline-start: 3px solid var(--red); background: var(--red-wash); }
.detail[data-severity="warning"] { border-color: var(--amber); background: var(--amber-wash); }
.detail p, .detail label { margin-top: .3rem; }
.detail label { display: flex; align-items: center; gap: .48rem; font-weight: 650; }
.sheet { margin-top: .85rem; }
.table-wrap { margin-top: .55rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .55rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { min-width: 5rem; max-width: 18rem; padding: .47rem .6rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; text-align: left; }
thead { background: var(--wash); }
th:first-child { min-width: 3rem; }
tbody tr:last-child > * { border-bottom: 0; }
:is(th, td)[data-severity="error"] { background: var(--red-wash); }
:is(th, td)[data-severity="warning"] { background: var(--amber-wash); }
:is(th, td)[data-fixed="true"] { background: #e8f4ec; }
:is(th, td)[data-selected="true"] { box-shadow: inset 0 0 0 2px var(--green); }
:is(th, td)[data-selected="true"][data-severity="error"] { box-shadow: inset 0 0 0 2px var(--red); }
.export-panel { display: grid; gap: .42rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.access-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-block: 1rem 1.45rem; font-size: .94rem; }
.how { margin-block: 1rem 1.75rem; }
.how ol { padding-inline-start: 1.4rem; }
.how li + li { margin-top: .33rem; }
.footer { padding-block: .8rem 1.3rem; border-top: 1px solid var(--line); font-size: .9rem; }
dialog { width: min(34rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); color: var(--ink); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 4vw, 1.5rem); }
dialog::backdrop { background: #13292590; }
#access-description { margin-block: .65rem .85rem; }
#access-form { display: grid; justify-items: start; gap: .5rem; }
#access-email { width: 100%; }
#access-switch { margin-top: .7rem; }
@media (max-width: 560px) {
  .drop { flex-direction: column; align-items: start; }
  .upload-controls #demo { margin-inline-start: 0; }
  th, td { padding-inline: .45rem; }
}
