:root { color-scheme: light; --ink: #172b35; --muted: #5d6a70; --line: #dce2df; --paper: #fff; --bg: #f4f5f2; --accent: #245c50; --green: #28634e; --amber: #876013; --red: #a44033; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { border: 1px solid #cfd8d3; background: white; color: var(--ink); border-radius: 5px; padding: 8px 13px; font-weight: 550; transition: background .15s; }
button:hover:not(:disabled) { background: #eef3ef; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #528d7c; outline-offset: 3px; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.site-header, main, footer { max-width: 1480px; margin: auto; }
.site-header { min-height: 90px; padding: 22px 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; letter-spacing: -.25px; }
.brand strong { font-weight: 500; color: var(--muted); margin-left: 5px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-content: center; color: white; background: var(--ink); border-radius: 7px; font: 23px Georgia, serif; position: relative; }
.brand-mark span { position: absolute; font: bold 11px sans-serif; right: 3px; bottom: 3px; color: #bdd6c0; }
nav { display: flex; gap: 28px; align-items: center; font-size: 12px; }
nav a { text-decoration: none; }
.local-badge { color: var(--green); display: flex; align-items: center; gap: 7px; }
.local-badge span { font-size: 9px; }
main { padding: 42px 48px 0; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 30px; }
.eyebrow, .note-label { font-size: 10px; font-weight: 650; letter-spacing: 1.7px; color: var(--muted); }
.intro .eyebrow { margin-bottom: 14px; color: var(--accent); }
h1 { font: 44px/1.13 Georgia, "Times New Roman", serif; letter-spacing: -1.25px; margin-bottom: 17px; }
h1 span { color: #61716c; }
.intro-copy { color: var(--muted); font-size: 14px; margin-bottom: 0; line-height: 1.7; }
.scope-note { width: 255px; border-left: 2px solid #c7d6cc; padding: 5px 0 5px 22px; flex-shrink: 0; }
.scope-note p { font-size: 18px; line-height: 1.4; margin: 12px 0 9px; }
.scope-note > span:last-child { font-size: 12px; color: var(--muted); line-height: 1.7; display: block; }
.steps { list-style: none; display: flex; gap: 36px; padding: 0 0 17px; margin: 0; font-size: 12px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 9px; }
.steps span { font: 10px monospace; color: var(--accent); background: #e5ebe5; width: 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; }
.workspace { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 20px; align-items: start; scroll-margin-top: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; box-shadow: 0 2px 4px #172b3503; min-width: 0; }
.panel-heading { padding: 21px 24px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.35px; margin: 4px 0 0; }
.file-badge { font: 10px/1.4 monospace; color: var(--muted); background: #f2f4f2; padding: 5px 8px; border: 1px solid #e8ece8; border-radius: 4px; }
.draft-controls { padding: 20px 24px 16px; }
.draft-controls label { display: block; font-size: 12px; font-weight: 550; margin-bottom: 8px; }
.example-row { display: flex; gap: 8px; }
select { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #cfd8d3; border-radius: 5px; background: white; font-size: 12px; color: var(--ink); }
.import-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.text-button { border: 0; padding: 2px 0; background: transparent; border-radius: 2px; color: var(--accent); font-size: 12px; font-weight: 550; }
.text-button:hover:not(:disabled) { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-block: 1px solid var(--line); background: #fafbf9; font-size: 11px; color: var(--muted); }
.editor-heading button { font-size: 11px; }
textarea { width: 100%; height: 330px; min-height: 180px; border: 0; border-radius: 0; padding: 18px 24px; background: #fbfcfa; color: #344e52; resize: vertical; font: 11.5px/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace; display: block; tab-size: 2; }
textarea:focus-visible { outline-offset: -3px; }
.editor-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); padding: 8px 24px; background: #f6f8f4; border-block: 1px solid var(--line); }
.run-area { padding: 20px 24px 12px; display: flex; align-items: center; gap: 14px; }
.primary { background: var(--accent); color: white; border-color: var(--accent); font-size: 13px; padding: 11px 18px; display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.primary:hover:not(:disabled) { background: #18483f; }
.shortcut { font-size: 10px; color: var(--muted); }
.runtime { margin: 0 24px; display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; background: #ad7a29; border-radius: 50%; flex-shrink: 0; }
.status-dot.ready { background: var(--green); }
.status-dot.error { background: var(--red); padding: 0; margin: 0; border: 0; }
.draft-help { margin: 15px 24px 7px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.save-draft { margin: 0 24px 20px; font-size: 11px; }
.empty-state { min-height: 647px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 35px 20px; }
.document-icon { width: 52px; height: 64px; border: 1px solid #b7c7bd; border-radius: 5px; padding: 20px 11px; position: relative; background: #f6f9f4; margin-bottom: 22px; }
.document-icon span { display: block; height: 2px; background: #ccd7cd; margin-bottom: 6px; }
.document-icon span:nth-child(3) { width: 65%; }
.document-icon b { position: absolute; right: -10px; bottom: -5px; border-radius: 50%; height: 24px; width: 24px; background: #e2ece1; color: var(--green); border: 3px solid white; font-size: 11px; }
.empty-state h3 { font-size: 20px; font-weight: 550; letter-spacing: -.4px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.legend { display: flex; gap: 8px; margin: 10px 0 22px; }
.badge { display: inline-block; font-size: 10px; line-height: 1.4; padding: 3px 7px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.missing { color: var(--red); background: #f9eee9; }
.review { color: var(--amber); background: #faf3e0; }
.pass { color: var(--green); background: #eaf2e9; }
.empty-state .empty-footnote { font-size: 10px; }
.report-heading { padding: 19px 24px 0; overflow-wrap: anywhere; }
.report-heading h3 { font-size: 15px; font-weight: 550; margin-bottom: 4px; }
.report-heading p { font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.metrics { margin: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.metrics > div { padding: 12px 13px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border: 0; }
.metrics span { display: block; font-size: 26px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.metrics label { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.metrics > div:first-child { background: #fcf5ef; }
.metrics > div:first-child span, #count-missing { color: var(--red); }
#count-review { color: var(--amber); }
#count-pass { color: var(--green); }
.review-boundary { margin: 11px 24px 20px; font-size: 11px; color: var(--muted); }
.finding-toolbar { padding: 0 24px; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 13px; }
.filters button { border: 0; background: transparent; font-size: 11px; padding: 6px 9px; color: var(--muted); }
.filters button[aria-pressed="true"] { background: #e9efea; color: #224f42; }
#search { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: #fcfdfa; padding: 9px 12px; font-size: 12px; color: var(--ink); }
#search::placeholder { color: #65736f; }
.visible-count { margin: 12px 24px 8px; font-size: 10px; color: var(--muted); }
.findings { padding: 0 24px 20px; max-height: 565px; overflow: auto; }
.finding { border: 1px solid var(--line); border-radius: 5px; margin-bottom: 9px; overflow: hidden; }
.finding summary { padding: 12px 13px; list-style: none; display: flex; align-items: start; gap: 10px; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary::after { content: "+"; color: var(--muted); margin-left: auto; }
.finding[open] summary::after { content: "−"; }
.finding summary:hover { background: #fafbf8; }
.finding summary > div { min-width: 0; }
.finding-label { font-size: 12px; font-weight: 550; display: block; overflow-wrap: anywhere; }
.finding-id { font: 9px/1.6 monospace; color: var(--muted); display: block; margin-top: 5px; overflow-wrap: anywhere; }
.finding-body { padding: 0 14px 14px; font-size: 11px; overflow-wrap: anywhere; }
.citation { color: var(--accent); padding: 9px 0; border-top: 1px solid #edf0eb; margin: 0; }
.finding-body ul { padding-left: 17px; margin: 4px 0 12px; color: #4d5c62; }
.finding-body li { margin-bottom: 5px; }
.finding-meta { color: var(--muted); font-size: 10px; margin: 0 0 9px; }
.source-button { font-size: 11px; }
.export-bar { border-top: 1px solid var(--line); padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.export-bar > span { font-size: 11px; color: var(--muted); }
.export-bar > div { display: flex; gap: 7px; }
.export-bar button { font-size: 11px; }
.error, .notice { font-size: 12px; padding: 11px 13px; margin: 12px 24px; border-radius: 5px; overflow-wrap: anywhere; }
.error { color: #91372c; background: #fff1ee; border: 1px solid #eed0c8; }
.notice { color: #755113; background: #fff6df; border: 1px solid #eadcb5; }
#sample-error { margin-inline: 0; }
.no-findings { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 30px 0 20px; }
.explainer > div { display: flex; gap: 12px; align-items: start; }
.explainer p { font-size: 11px; color: var(--muted); line-height: 1.7; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; padding: 23px 48px 28px; font-size: 10px; color: var(--muted); }
footer a { margin-left: 18px; }
.footer-dot { margin-inline: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: -100px; left: 15px; background: white; padding: 10px; z-index: 2; }
.skip-link:focus { top: 10px; }
@media (min-width: 1500px) { main { padding-top: 50px; } h1 { font-size: 50px; } .intro { margin-bottom: 40px; } }
@media (max-width: 1050px) { .site-header, footer { padding-inline: 28px; } main { padding-inline: 28px; } .workspace { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 16px; } .scope-note { width: 220px; } .run-area { flex-wrap: wrap; gap: 8px; } .shortcut { display: none; } .metrics > div { padding: 10px 8px; } .explainer { gap: 20px; } }
@media (max-width: 800px) { .workspace { grid-template-columns: 1fr; } .scope-note { display: none; } .intro { margin-bottom: 25px; } h1 { font-size: 40px; } .empty-state { min-height: 350px; } .explainer { grid-template-columns: 1fr; gap: 5px; } footer { flex-direction: column; gap: 8px; } .findings { max-height: none; } }
@media (max-width: 520px) { .site-header { min-height: 75px; padding: 15px 18px; } .brand { font-size: 13px; gap: 9px; } .brand strong { display: block; margin-left: 0; font-size: 11px; } .brand-mark { width: 32px; height: 32px; } nav { font-size: 11px; } nav .local-badge { display: none; } main { padding: 28px 16px 0; } h1 { font-size: 34px; } .intro-copy { font-size: 13px; } .desktop-break { display: none; } .steps { gap: 15px; font-size: 10px; justify-content: space-between; } .steps li { gap: 6px; } .steps span { width: 20px; height: 20px; font-size: 9px; } .panel-heading, .draft-controls { padding-inline: 18px; } .metrics, .review-boundary, .visible-count { margin-inline: 18px; } .finding-toolbar, .findings { padding-inline: 18px; } textarea { padding-inline: 18px; height: 280px; } .editor-meta { padding-inline: 18px; font-size: 9px; } .metrics span { font-size: 23px; } .metrics label { font-size: 9px; } footer { padding-inline: 18px; } footer a { margin-left: 8px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 520px) { .finding-label { font-size: 13px; } .finding-body { font-size: 12px; } }
