:root {
  color-scheme: light;
  --paper: #eef2eb;
  --card: #fff;
  --ink: #152c22;
  --green: #17623d;
  --mint: #e4f2e8;
  --muted: #4d6256;
  --line: #ccd9ce;
  --accent: #bceb91;
  --error: #9d372a;
  --warning: #74500c;
  --shadow: 0 18px 56px #183e2a15, 0 2px 8px #183e2a0b;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #27764a; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); letter-spacing: -.052em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 64px, 1160px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: 10px auto auto 10px; padding: 10px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #d9e2d7; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.28rem; font-weight: 800; letter-spacing: -.06em; }
.brand-light { color: var(--green); }
nav { display: flex; gap: 24px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 660; }
nav a:hover, nav .current { color: var(--green); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 92px); padding-block: clamp(44px, 7vw, 100px) 62px; }
.hero-copy { position: relative; }
.eyebrow { color: var(--green); font: 720 .74rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .105em; text-transform: uppercase; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #c9d9c8; border-radius: 100px; background: #f9fbf6; }
.status-dot { width: 7px; height: 7px; background: #377a45; border-radius: 50%; }
h1 { margin-top: 19px; font-size: clamp(3.15rem, 6.15vw, 5.65rem); line-height: .99; letter-spacing: -.081em; font-weight: 780; }
h1 em { display: block; color: var(--green); font-style: normal; }
.hero-desc { margin-top: 22px; max-width: 45ch; font-size: clamp(1.02rem, 1.55vw, 1.2rem); color: var(--muted); }
.privacy-note { display: flex; align-items: center; gap: 9px; margin-top: 25px; font-size: .88rem; font-weight: 660; color: var(--green); }
.privacy-note svg { width: 19px; height: 19px; flex: none; }
.tool, .result-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.tool { padding: clamp(16px, 3vw, 27px); scroll-margin-top: 16px; }
.tool-heading, .result-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tool-heading h2 { margin-top: 3px; font-size: 1.75rem; }
.file-tag { padding: 6px 9px; border-radius: 7px; background: var(--mint); color: var(--green); font: 750 .78rem/1.2 ui-monospace, Consolas, monospace; }
.drop-zone { margin-top: 18px; min-height: 208px; display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center; padding: 17px 12px; border: 1.5px dashed #94b39f; border-radius: 16px; background: radial-gradient(#c8d9cb 1px, transparent 1px) 0 0/17px 17px, #f2f8f3; }
.drop-zone.is-dragging { border-color: var(--green); background-color: #d9efd8; }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #fff; color: var(--green); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 4px; }
.file-hint, .muted { color: var(--muted); font-size: .88rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 710; font-size: .91rem; text-decoration: none; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #114e31; }
.drop-zone .button { margin-top: 8px; }
.secondary { border-color: var(--line); background: #fff; color: var(--green); }
.secondary:hover { background: var(--mint); }
.tool-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
.text-button { padding: 0 2px; min-height: 44px; color: var(--green); font-size: .85rem; font-weight: 700; border: 0; background: none; }
.text-button:hover { text-decoration: underline; text-underline-offset: .2em; }
#paste-panel { margin-bottom: 12px; }
#paste-panel label, .settings label { font-size: .84rem; font-weight: 660; }
textarea, select { width: 100%; background: #fff; color: var(--ink); border: 1px solid #aebfb2; border-radius: 8px; padding: 8px; }
textarea { display: block; margin-block: 5px 10px; font-family: ui-monospace, Consolas, monospace; resize: vertical; }
.settings { border-top: 1px solid #e2eae2; }
.settings summary { min-height: 39px; padding: 9px 0 0; font-size: .83rem; color: var(--muted); font-weight: 650; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.settings label:not(.check-label) { display: grid; gap: 4px; }
.check-label { display: flex; align-items: center; gap: 6px; }
.check-label input { accent-color: var(--green); }
.status { margin-top: 6px; font-size: .87rem; color: var(--green); overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.error { color: var(--error); }
.results { margin-bottom: 56px; scroll-margin-top: 18px; }
.result-card { padding: clamp(16px, 4vw, 32px); }
.result-heading { flex-wrap: wrap; }
.result-heading h2 { margin: 4px 0 5px; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 19px 0 12px; }
.metric { display: flex; flex-direction: column-reverse; justify-content: flex-end; background: #f0f6ee; border: 1px solid #dbe8da; padding: 10px 12px; border-radius: 9px; }
.metric dt { color: var(--muted); font-size: .8rem; }
.metric dd { margin: 0; font-size: 1.45rem; font-weight: 760; line-height: 1.3; font-variant-numeric: tabular-nums; }
.result-summary { margin-block: 13px; font-weight: 650; }
.issues { display: grid; gap: 6px; }
.issue { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: 10px; padding: 9px 12px; border-radius: 7px; background: #fbefed; color: var(--error); font-size: .9rem; }
.issue.warning { background: #fbf4e2; color: var(--warning); }
.issue strong { font-size: .8rem; }
.issue p, #result-source { overflow-wrap: anywhere; }
.issue-limit { margin-top: 7px; }
.preview { margin-top: 17px; }
.preview summary { font-size: .91rem; color: var(--green); font-weight: 700; }
.table-scroll { overflow: auto; margin-top: 9px; border: 1px solid var(--line); border-radius: 9px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .84rem; }
td, th { padding: 7px 10px; border-bottom: 1px solid var(--line); max-width: 30ch; overflow-wrap: anywhere; }
th { background: #edf4eb; }
tbody tr:last-child td { border-bottom: 0; }
.checks { border-top: 1px solid var(--line); padding-block: 38px 48px; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 7px 25px; align-items: end; }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro > p:last-child { color: var(--muted); max-width: 45ch; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.feature { border: 1px solid var(--line); border-radius: 15px; background: #f8fbf5; padding: 18px; }
.feature-number { color: var(--green); font: 720 .8rem/1.2 ui-monospace, Consolas, monospace; }
.feature h3 { margin: 10px 0 7px; font-size: 1.13rem; letter-spacing: -.035em; }
.feature p { color: var(--muted); font-size: .92rem; }
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 17px 19px; color: #ecf5ec; background: #173b2b; border-radius: 13px; text-decoration: none; }
.guide-link:hover { background: #21513b; }
.guide-link > span:first-child { display: grid; gap: 1px; }
.guide-link strong { color: white; }
.guide-link span span { font-size: .88rem; }
.guide-arrow { color: var(--accent); font-size: 1.5rem; }
.faq { max-width: 760px; padding-bottom: 54px; }
.faq h2 { margin: 5px 0 15px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; }
.faq details p { margin-top: 8px; padding-left: 16px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 85px; font-size: .85rem; color: var(--muted); }
.footer-inner a:last-child { font-weight: 650; }
.guide { max-width: 790px; padding-block: 48px 65px; }
.guide h1 { font-size: clamp(2.45rem, 6vw, 4rem); margin: 9px 0 18px; line-height: 1.03; }
.guide .intro { font-size: 1.12rem; color: var(--muted); margin-bottom: 18px; }
.guide h2 { margin-block: 32px 10px; font-size: 1.75rem; }
.guide p + p { margin-top: 10px; }
.guide li + li { margin-top: 6px; }
.guide code { font-family: ui-monospace, Consolas, monospace; }
.guide pre { padding: 15px; border: 1px solid var(--line); background: #f9fcf8; overflow: auto; border-radius: 10px; }
.guide .sources { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 15px; color: var(--muted); font-size: .92rem; }
@media (max-width: 850px) {
  .shell { width: min(100% - 40px, 760px); }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 38px; }
  h1 { font-size: clamp(3rem, 8vw, 4.85rem); }
  .privacy-note { margin-top: 16px; }
  .hero-desc { margin-top: 15px; }
  .tool { max-width: 620px; }
}
@media (max-width: 550px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; gap: 8px; }
  .brand { gap: 6px; }
  nav { gap: 12px; }
  nav a { font-size: .78rem; }
  .section-intro, .feature-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .issue { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 18px; padding-block: 15px; }
  .footer-inner p { order: 2; flex-basis: 100%; }
}
caption { text-align: left; padding: 6px 10px; }
@media (max-width: 395px) {
  .header-inner .brand { font-size: 1.07rem; }
  .header-inner .brand img { width: 28px; height: 28px; }
  nav { gap: 8px; }
  nav a { white-space: nowrap; font-size: .72rem; }
  nav a span { display: none; }
  .hero { padding-top: 25px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 2.85rem); }
}
