:root { color-scheme: light; --ink: #172b35; --muted: #5d6a70; --line: #dce2df; --paper: #fff; --bg: #f4f5f2; --accent: #245c50; --green: #28634e; --amber: #876013; --red: #a44033; --line-strong: #cfd8d3; --hover: #eef3ef; --focus: #528d7c; --on-accent: #fff; --accent-hover: #18483f; --brand-tick: #bdd6c0; --ink-soft: #61716c; --rule-soft: #c7d6cc; --chip-green: #e5ebe5; --shadow: #172b3503; --chip: #f2f4f2; --chip-line: #e8ece8; --subtle: #fafbf9; --field: #fbfcfa; --code-ink: #344e52; --meta-bg: #f6f8f4; --pending: #ad7a29; --icon-line: #b7c7bd; --icon-bg: #f6f9f4; --icon-rule: #ccd7cd; --icon-badge: #e2ece1; --soft-red: #f9eee9; --soft-amber: #faf3e0; --soft-green: #eaf2e9; --soft-blocker: #fcf5ef; --pressed-bg: #e9efea; --pressed-ink: #224f42; --search-bg: #fcfdfa; --placeholder: #65736f; --row-hover: #fafbf8; --divider: #edf0eb; --list-ink: #4d5c62; --error-ink: #91372c; --error-bg: #fff1ee; --error-line: #eed0c8; --notice-ink: #755113; --notice-bg: #fff6df; --notice-line: #eadcb5; }
* { 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 var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 5px; padding: 8px 13px; font-weight: 550; transition: background .15s; }
button:hover:not(:disabled) { background: var(--hover); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); 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: var(--bg); 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: var(--brand-tick); }
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: var(--ink-soft); }
.intro-copy { color: var(--muted); font-size: 14px; margin-bottom: 0; line-height: 1.7; }
.scope-note { width: 255px; border-left: 2px solid var(--rule-soft); 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: var(--chip-green); 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 var(--shadow); 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: var(--chip); padding: 5px 8px; border: 1px solid var(--chip-line); 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 var(--line-strong); border-radius: 5px; background: var(--paper); 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; }
.regime-row { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.regime-row p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }
.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: var(--subtle); 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: var(--field); color: var(--code-ink); 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: var(--meta-bg); border-block: 1px solid var(--line); }
.run-area { padding: 20px 24px 12px; display: flex; align-items: center; gap: 14px; }
.primary { background: var(--accent); color: var(--on-accent); 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: var(--accent-hover); }
.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: var(--pending); 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 var(--icon-line); border-radius: 5px; padding: 20px 11px; position: relative; background: var(--icon-bg); margin-bottom: 22px; }
.document-icon span { display: block; height: 2px; background: var(--icon-rule); 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: var(--icon-badge); color: var(--green); border: 3px solid var(--paper); 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; }
.blocker { color: var(--red); background: var(--soft-red); }
.note { color: var(--muted); background: var(--chip); }
.review { color: var(--amber); background: var(--soft-amber); }
.pass { color: var(--green); background: var(--soft-green); }
.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: var(--soft-blocker); }
.metrics small { font-size: 13px; color: var(--muted); }
.metrics > div:first-child span { color: var(--red); }
#count-review { color: var(--amber); }
.metrics .zero { color: var(--green) !important; }
.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: var(--pressed-bg); color: var(--pressed-ink); }
#search { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--search-bg); padding: 9px 12px; font-size: 12px; color: var(--ink); }
#search::placeholder { color: var(--placeholder); }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 24px 8px; }
.visible-count { margin: 0; font-size: 10px; color: var(--muted); }
.list-meta button { font-size: 11px; flex-shrink: 0; }
.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: var(--row-hover); }
.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; }
.finding-citation { font-size: 10.5px; line-height: 1.5; color: var(--accent); display: block; margin-top: 3px; overflow-wrap: anywhere; }
.finding-body ul { padding: 10px 0 0 17px; margin: 0 0 12px; color: var(--list-ink); border-top: 1px solid var(--divider); }
.finding-body li { margin-bottom: 5px; }
.finding-meta { color: var(--muted); font-size: 10px; margin: 0 0 9px; }
.source-button { font-size: 11px; }
.rule-link { display: inline-block; font-size: 11px; color: var(--accent); margin: 0 16px 8px 0; }
.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: var(--error-ink); background: var(--error-bg); border: 1px solid var(--error-line); }
.notice { color: var(--notice-ink); background: var(--notice-bg); border: 1px solid var(--notice-line); }
#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; }
.basis { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.basis h2 { font-size: 13px; margin: 0 0 7px; }
.basis p { font-size: 11px; color: var(--muted); line-height: 1.7; max-width: 860px; margin: 0; }
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: var(--paper); color: var(--ink); padding: 10px; z-index: 2; }
.skip-link:focus { top: 10px; }
.context { margin: 8px 0 16px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.draft-controls select + .context { margin-top: 8px; }
.check-row { display: flex !important; align-items: center; gap: 8px; margin: 14px 0 0 !important; font-weight: 450 !important; color: var(--list-ink); }
.check-row input { margin: 0; accent-color: var(--accent); }
.draft-help a { color: var(--accent); }
.contract { border-top: 1px solid var(--line); }
.contract summary { padding: 14px 24px; display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 550; list-style: none; }
.contract summary::-webkit-details-marker { display: none; }
.contract summary::after { content: "+"; color: var(--muted); margin-left: auto; font-weight: 400; }
.contract[open] summary::after { content: "−"; }
.contract summary:hover { background: var(--row-hover); }
.contract-note { margin: 0 24px 10px; font-size: 11px; color: var(--muted); }
.contract pre { margin: 0; max-height: 420px; overflow: auto; padding: 16px 24px 20px; background: var(--field); border-top: 1px solid var(--line); color: var(--code-ink); font: 11.5px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; }
.contract pre:focus-visible { outline-offset: -3px; }
mark { background: var(--soft-amber); color: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--soft-amber); }
mark.grounded { background: var(--soft-green); box-shadow: 0 0 0 2px var(--soft-green); }
.decision { margin: 0 24px 12px; padding: 13px 15px; border-radius: 6px; border: 1px solid var(--line); display: grid; gap: 3px; }
.decision strong { font: 600 19px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: -.3px; overflow-wrap: anywhere; }
.decision p { margin: 2px 0 0; font-size: 11.5px; color: var(--list-ink); line-height: 1.6; }
.decision.reject { background: var(--soft-red); border-color: var(--error-line); } .decision.reject strong { color: var(--red); }
.decision.human { background: var(--soft-amber); border-color: var(--notice-line); } .decision.human strong { color: var(--amber); }
.decision.pilot { background: var(--soft-green); border-color: var(--rule-soft); } .decision.pilot strong { color: var(--green); }
.all-scores { margin: 12px 24px 18px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.all-scores summary { padding: 9px 12px; font-weight: 550; color: var(--accent); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.all-scores table { border-collapse: collapse; width: 100%; }
.all-scores th, .all-scores td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.all-scores th { font-weight: 600; color: var(--muted); background: var(--subtle); }
.all-scores td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.all-scores td:last-child { color: var(--muted); }
.all-scores tr:last-child td { border-bottom: 0; }
.finding-detail { margin: 0 0 6px; color: var(--list-ink); }
.locate-button { font-size: 11px; }
.export-bar small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.basis code { font: 10.5px "SFMono-Regular", Consolas, monospace; background: var(--chip); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
@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, .contract summary { padding-inline: 18px; } .contract pre { padding-inline: 18px; } .contract-note { margin-inline: 18px; } .metrics, .decision, .all-scores, .list-meta { 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; } }
