:root {
  --ink: #17211f;
  --muted: #63706c;
  --subtle: #eef1ed;
  --line: #d8dfd9;
  --paper: #fbfcf9;
  --deep: #173c35;
  --green: #28735d;
  --lime: #d7ef70;
  --coral: #dd725e;
  --violet: #6953a4;
  --yellow: #dba936;
  --blue: #4082b3;
  --shadow: 0 22px 65px rgba(20, 48, 41, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }

.skip-link { position: fixed; left: 1rem; top: -4rem; background: var(--ink); color: white; border-radius: .4rem; padding: .7rem 1rem; z-index: 30; }
.skip-link:focus { top: 1rem; }
.site-header, .report-topbar { width: min(1216px, calc(100% - 3rem)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header nav { display: flex; gap: 1.45rem; color: var(--muted); font-size: .91rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--deep); }
.brand { text-decoration: none; letter-spacing: -.09em; font-weight: 800; font-size: 1.55rem; color: var(--deep); }
.brand span { color: var(--green); }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: .55rem; padding: .6rem 1rem; font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .16s ease, background .16s ease, border .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--deep); color: white; }
.button-primary:hover:not(:disabled) { background: #0e302a; }
.button-secondary { border-color: #bdc9c0; color: var(--deep); background: white; }
.button-secondary:hover:not(:disabled) { border-color: var(--green); background: #f6fbf5; }
.button-quiet { color: var(--deep); background: transparent; }
.button-quiet:hover:not(:disabled) { background: #edf4ed; }
.button-wide { width: 100%; min-height: 50px; }
.icon-button { appearance: none; border: 0; background: transparent; color: var(--muted); border-radius: .5rem; width: 2.25rem; height: 2.25rem; font-size: 1.7rem; line-height: 1; }
.icon-button:hover { background: var(--subtle); color: var(--ink); }

.hero { min-height: 680px; width: min(1216px, calc(100% - 3rem)); margin: 0 auto; padding: 5.8rem 0 5.2rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(470px, 1.1fr); align-items: center; gap: clamp(2rem, 7vw, 8rem); }
.hero-copy { max-width: 550px; }
.eyebrow { margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .13em; color: var(--green); font-size: .7rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.45rem; max-width: 650px; color: var(--deep); font-size: clamp(2.65rem, 5.1vw, 5rem); line-height: .98; letter-spacing: -.075em; }
h2 { color: var(--deep); letter-spacing: -.045em; line-height: 1.05; font-size: clamp(1.85rem, 3vw, 2.8rem); }
h3 { color: var(--deep); letter-spacing: -.025em; }
.hero-lead { color: #52615a; max-width: 530px; font-size: 1.08rem; line-height: 1.65; }
.hero-points { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.hero-points span { background: #e8f0e9; color: #305345; padding: .42rem .7rem; font-size: .78rem; border-radius: 99px; font-weight: 650; }

.analysis-card { padding: clamp(1.35rem, 2.8vw, 2.2rem); background: white; border: 1px solid #d8e0d9; box-shadow: var(--shadow); border-radius: 1rem; }
.analysis-card-heading, .dialog-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.analysis-card-heading h2 { margin: 0; font-size: 1.5rem; }
.usage-badge { flex-shrink: 0; background: var(--lime); color: #294239; border-radius: 99px; padding: .38rem .6rem; font-size: .72rem; font-weight: 800; }
.source-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 1.8rem 0 1.15rem; padding: .25rem; border-radius: .65rem; background: var(--subtle); }
.source-tab { border: 0; border-radius: .45rem; background: transparent; padding: .58rem .6rem; color: var(--muted); font-weight: 700; font-size: .86rem; }
.source-tab.is-active { background: white; box-shadow: 0 1px 4px rgba(0,0,0,.08); color: var(--deep); }
label, legend { display: block; color: #3d5048; font-size: .79rem; font-weight: 800; }
textarea, input { width: 100%; border: 1px solid #cad4cb; border-radius: .55rem; background: #fcfdfb; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
textarea { margin-top: .55rem; resize: vertical; padding: .8rem .85rem; line-height: 1.52; font-size: .91rem; }
input { margin-top: .45rem; min-height: 42px; padding: .55rem .65rem; font-size: .9rem; }
textarea:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40,115,93,.13); }
.input-meta { display: flex; justify-content: space-between; color: #7a8781; font-size: .72rem; margin-top: .45rem; }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: .55rem; align-items: end; }
.url-row input { margin: .45rem 0 0; }
.form-note, .privacy-note { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.extracted-preview { max-height: 145px; overflow: auto; margin-top: .8rem; padding: .75rem; background: #f4f8f3; border: 1px solid #dce6dc; border-radius: .5rem; color: #4c5d56; white-space: pre-wrap; font-size: .79rem; line-height: 1.45; }
.content-type-fieldset { border: 0; padding: 0; margin: 1.35rem 0; }
.content-type-fieldset legend { margin-bottom: .6rem; }
.content-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.content-types label { position: relative; display: block; font-size: .76rem; color: var(--muted); }
.content-types input { position: absolute; opacity: 0; pointer-events: none; }
.content-types span { display: grid; place-items: center; min-height: 39px; border: 1px solid #d3dcd5; border-radius: .45rem; background: white; font-weight: 700; }
.content-types input:checked + span { background: #e7f0eb; color: var(--deep); border-color: #6fa48b; }
.context-panel { border-top: 1px solid #e2e7e2; padding-top: 1rem; margin: 1.15rem 0; }
.context-panel summary { cursor: pointer; color: #40554c; font-size: .83rem; font-weight: 750; }
.context-panel summary span { color: #84918a; font-size: .72rem; font-weight: 600; }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 1rem; }
.context-wide { grid-column: 1 / -1; }
.context-grid textarea { min-height: 58px; margin-top: .45rem; }
.form-error { margin: .8rem 0; color: #a02f25; background: #fff0ee; border: 1px solid #f1c6c1; padding: .65rem .75rem; border-radius: .45rem; font-size: .82rem; }
.privacy-note { margin: .8rem 0 0; text-align: center; }

.trust-strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .8rem 2.2rem; padding: 1.5rem 2rem; background: var(--deep); color: #e5efe8; font-size: .8rem; }
.trust-strip p { margin: 0; color: var(--lime); font-weight: 750; }
.trust-strip span { opacity: .85; }

.steps-section, .dimensions-section, .pricing-section { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 6.7rem 0; }
.section-heading { max-width: 620px; }
.section-heading h2 { margin-bottom: .85rem; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.narrow { max-width: 520px; }
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.steps li { min-height: 220px; padding: 1.45rem; background: #f1f5f0; border-radius: .8rem; }
.steps span, .dimension-number { color: var(--green); font-size: .75rem; font-weight: 850; letter-spacing: .1em; }
.steps h3 { margin: 2.7rem 0 .65rem; font-size: 1.25rem; }
.steps p, .dimension-grid p, .price-card > p:not(.plan-name):not(.price) { margin-bottom: 0; color: #5d6b65; line-height: 1.55; font-size: .88rem; }
.dimensions-section { border-top: 1px solid var(--line); }
.dimension-grid { margin-top: 3.2rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dimension-grid article { min-height: 190px; padding: 1.55rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dimension-grid h3 { font-size: 1.15rem; margin: 2.25rem 0 .55rem; }
.pricing-section { border-top: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.1rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 1.55rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.price-card.featured { background: var(--deep); border-color: var(--deep); color: #eff7ef; box-shadow: 0 17px 34px rgba(23,60,53,.18); transform: translateY(-.6rem); }
.plan-name { margin-bottom: .8rem; color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 850; }
.featured .plan-name { color: var(--lime); }
.price { color: var(--deep); font-size: 2.25rem; font-weight: 800; letter-spacing: -.06em; margin-bottom: 1rem; }
.price span { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
.featured .price, .featured .price-card { color: white; }
.featured .price span, .featured p { color: #d1e0d3; }
.price-card ul { flex: 1; padding: 0; list-style: none; margin: 1.55rem 0; }
.price-card li { padding: .42rem 0; color: #52615a; font-size: .85rem; }
.price-card li::before { content: "✓"; margin-right: .52rem; color: var(--green); font-weight: 900; }
.featured li { color: #e6efe7; }
.featured li::before { color: var(--lime); }
.featured .button-primary { background: var(--lime); color: var(--deep); }

.facts-overlay, .loading-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1.2rem; background: rgba(16, 33, 28, .5); backdrop-filter: blur(5px); }
.facts-dialog { width: min(760px, 100%); max-height: min(820px, calc(100vh - 2.4rem)); overflow: auto; padding: clamp(1.3rem, 3vw, 2.2rem); background: white; border-radius: 1rem; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.facts-dialog h2 { max-width: 570px; margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.dialog-intro { margin: 1.4rem 0; color: var(--muted); line-height: 1.55; }
.fact-list { display: flex; flex-direction: column; gap: .55rem; padding: .3rem 0; }
.fact-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 34px; gap: .5rem; align-items: center; padding: .5rem; border: 1px solid #dce5de; border-radius: .55rem; background: #fbfdfb; }
.fact-row input, .fact-row select { margin: 0; min-height: 36px; border: 1px solid #d1dad3; border-radius: .35rem; padding: .35rem .45rem; font-size: .8rem; background: white; }
.fact-row .remove-fact { border: 0; background: transparent; color: #9b4a42; font-size: 1.25rem; }
.empty-facts { padding: 1rem; background: #f7f2db; border-radius: .5rem; color: #675328; font-size: .83rem; }
.add-fact { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.add-fact > div { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; margin-top: .35rem; }
.add-fact input { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }
.loading-card { width: min(420px, 100%); padding: 2.4rem; text-align: center; background: white; border-radius: 1rem; box-shadow: var(--shadow); }
.loading-card h2 { font-size: 1.5rem; margin: .7rem 0; }
.loading-card > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.spinner { display: inline-block; width: 35px; height: 35px; border: 4px solid #dce8df; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.report-shell { min-height: 100vh; background: #f5f7f3; }
.report-topbar { min-height: 70px; }
.report-topbar > div { display: flex; gap: .3rem; }
.report { width: min(1180px, calc(100% - 3rem)); margin: 0 auto; padding: 1.2rem 0 5rem; }
.report-hero { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: stretch; padding: clamp(1.35rem, 3vw, 2.4rem); border-radius: 1rem; background: var(--deep); color: #eaf2eb; }
.report-hero h1 { margin: .4rem 0 .75rem; color: white; font-size: clamp(2rem, 4vw, 3.6rem); }
.report-hero .eyebrow { color: var(--lime); }
.report-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; color: #c6d8ca; font-size: .78rem; }
.score-panel { min-width: 210px; padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; border-radius: .75rem; background: rgba(255,255,255,.1); }
.score-panel .score { color: var(--lime); font-size: 4rem; font-weight: 800; line-height: .9; letter-spacing: -.09em; }
.score-panel .score-label { margin-top: .5rem; color: #d5e5d7; font-size: .79rem; }
.score-panel .confidence { margin-top: .9rem; color: #acc5b1; font-size: .75rem; }
.report-section { margin-top: 1.25rem; padding: clamp(1.2rem, 2.5vw, 1.8rem); background: white; border: 1px solid #dce3dd; border-radius: .85rem; }
.report-section h2 { margin-bottom: .3rem; font-size: 1.45rem; }
.key-finding { border-left: 5px solid var(--coral); }
.key-finding > p { max-width: 770px; color: #4e5d56; line-height: 1.62; margin: .7rem 0 0; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.2rem; }
.dimension-score { padding: 1rem; border: 1px solid #dce4dc; border-radius: .6rem; }
.dimension-score header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.dimension-score h3 { margin: 0; font-size: .9rem; }
.dimension-score strong { color: var(--green); font-size: 1.3rem; letter-spacing: -.05em; }
.dimension-score p { margin: .45rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.dimension-score small { display: inline-block; margin-top: .55rem; color: #607168; font-size: .71rem; }
.priority-list { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: priority; display: grid; gap: .55rem; }
.priority-list li { counter-increment: priority; display: grid; grid-template-columns: 28px 1fr auto; gap: .55rem; align-items: center; padding: .75rem .85rem; border-radius: .5rem; background: #f2f6f2; }
.priority-list li::before { content: counter(priority, decimal-leading-zero); color: var(--green); font-size: .72rem; font-weight: 850; }
.priority-list span { color: #3c5147; font-size: .84rem; line-height: 1.4; }
.impact-label { color: var(--muted); font-size: .72rem; text-align: right; }
.report-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr); gap: 1.25rem; margin-top: 1.25rem; }
.sticky-panel { position: sticky; top: 1rem; align-self: start; }
.content-viewer { max-height: 660px; overflow: auto; margin-top: 1rem; padding: 1rem; border: 1px solid #dce4dc; border-radius: .55rem; background: #fcfdfb; white-space: pre-wrap; color: #37483f; font-size: .88rem; line-height: 1.7; }
mark.issue-mark { border-radius: .18rem; padding: .03em .08em; color: inherit; background: #f9df9e; cursor: pointer; }
.issue-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.issue-toolbar select { min-height: 36px; border: 1px solid #ccd7cf; border-radius: .4rem; background: white; padding: .35rem .45rem; color: #40524a; font-size: .78rem; }
.issue-list { display: grid; gap: .75rem; }
.issue-card { padding: 1rem; border: 1px solid #dce4dc; border-left: 4px solid #95aa9c; border-radius: .55rem; transition: box-shadow .15s, border .15s; }
.issue-card:focus-within, .issue-card.is-target { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40,115,93,.1); }
.issue-card[data-severity="critical"] { border-left-color: var(--coral); }
.issue-card[data-severity="important"] { border-left-color: var(--yellow); }
.issue-card[data-severity="improvement"] { border-left-color: var(--blue); }
.issue-topline { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.issue-topline h3 { margin: .35rem 0 0; font-size: 1rem; }
.issue-tag { display: inline-flex; gap: .3rem; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .64rem; font-weight: 850; }
.severity-tag { padding: .23rem .35rem; border-radius: .25rem; background: #f1f3f0; white-space: nowrap; }
.issue-card p { margin: .65rem 0; color: #53625b; font-size: .82rem; line-height: 1.52; }
.affected-text { display: block; margin: .7rem 0; padding: .65rem .75rem; border-radius: .4rem; background: #fff8e7; color: #65522a; font-size: .8rem; line-height: 1.45; }
.issue-detail { display: grid; gap: .6rem; margin-top: .8rem; }
.issue-detail div { padding-top: .65rem; border-top: 1px solid #edf0ed; }
.issue-detail strong { display: block; margin-bottom: .18rem; color: var(--deep); font-size: .72rem; }
.issue-detail span { color: #53625b; font-size: .78rem; line-height: 1.45; }
.issue-actions { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .85rem; }
.issue-actions button { border: 0; background: transparent; color: var(--green); font-size: .75rem; font-weight: 750; }
.empty-issues { padding: 1.2rem; background: #f0f7f0; border-radius: .55rem; color: #3f5e49; font-size: .85rem; }
.revision-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.revision-controls fieldset { margin: 0; padding: 0; border: 0; }
.revision-controls legend { margin-bottom: .55rem; }
.mode-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.mode-buttons label { position: relative; }
.mode-buttons input { position: absolute; opacity: 0; pointer-events: none; }
.mode-buttons span { display: inline-flex; min-height: 34px; align-items: center; border: 1px solid #d3dcd5; padding: .4rem .55rem; border-radius: .4rem; color: var(--muted); font-size: .74rem; font-weight: 700; }
.mode-buttons input:checked + span { color: var(--deep); background: #e7f0eb; border-color: #6fa48b; }
.control-checks { display: grid; gap: .38rem; }
.control-checks label { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.control-checks input { width: auto; min-height: auto; margin: 0; }
.revision-output { margin-top: 1.35rem; }
.revision-status { margin-bottom: .8rem; padding: .65rem .75rem; border-radius: .45rem; font-size: .78rem; }
.revision-status.passed { background: #eaf5ea; color: #356145; }
.revision-status.warning { background: #fff0ee; color: #94392f; }
.comparison-tabs { display: flex; gap: .35rem; margin-bottom: .8rem; }
.comparison-tabs button { border: 1px solid #d0d9d1; background: white; color: var(--muted); padding: .4rem .55rem; border-radius: .35rem; font-size: .75rem; font-weight: 750; }
.comparison-tabs button.is-active { color: var(--deep); background: #e8f1ea; border-color: #91b29d; }
.revision-text, .diff-grid pre { margin: 0; padding: 1rem; border-radius: .55rem; border: 1px solid #dce4dc; background: #fbfdfb; white-space: pre-wrap; font-family: inherit; font-size: .84rem; line-height: 1.7; color: #3b4d43; }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.diff-grid h3 { margin: 0 0 .45rem; font-size: .85rem; }
.revision-action-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.report-note { color: var(--muted); font-size: .72rem; line-height: 1.45; }

.auth-dialog { width: min(440px, calc(100% - 2rem)); padding: 1.7rem; border: 0; border-radius: .9rem; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.auth-dialog::backdrop { background: rgba(16,33,28,.52); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: .8rem; right: .8rem; }
.auth-dialog h2 { margin-bottom: 1.2rem; font-size: 1.8rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.1rem; padding: .2rem; border-radius: .5rem; background: var(--subtle); }
.auth-tabs button { min-height: 34px; border: 0; border-radius: .35rem; background: transparent; color: var(--muted); font-weight: 750; font-size: .78rem; }
.auth-tabs button.is-active { background: white; color: var(--deep); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-dialog form { display: grid; gap: .75rem; }
.auth-dialog .form-error { margin: 0; }
.auth-recovery { margin: 1rem 0 0; color: var(--muted); text-align: center; font-size: .75rem; }
.auth-recovery button { border: 0; background: transparent; color: var(--green); text-decoration: underline; font-size: inherit; }

footer { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; padding: 2.2rem 0 2.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer p { margin: 0; }
footer span a { color: var(--green); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; gap: 2.8rem; }
  .hero-copy { max-width: 640px; }
  .report-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .steps { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 620px) {
  .site-header, .report-topbar { width: min(100% - 2rem, 1216px); min-height: 65px; }
  .site-header nav { display: none; }
  .hero, .steps-section, .dimensions-section, .pricing-section, .report { width: min(100% - 2rem, 1120px); }
  .hero { padding: 3rem 0; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .analysis-card { padding: 1.05rem; border-radius: .8rem; }
  .content-types { grid-template-columns: 1fr 1fr; }
  .context-grid { grid-template-columns: 1fr; }
  .context-wide { grid-column: auto; }
  .dimension-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 1fr; }
  .score-panel { min-width: 0; }
  .priority-list li { grid-template-columns: 25px 1fr; }
  .impact-label { grid-column: 2; text-align: left; }
  .revision-controls, .diff-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: minmax(0, 1fr) 94px 28px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  footer { flex-direction: column; align-items: flex-start; }
}

.facts-overlay[hidden], .loading-overlay[hidden] { display: none; }
