/* Slopcheck: passed for press. The printers' stamp on an approved proof. Non-repro blue is the desk, white sheets
   sit on it, red and blue pencil mark the text (solid when several tests agree, dashed for one, dotted for writing
   that says nothing checkable), and a violet rubber stamp is the one bold thing. Slopcheck speaks in Archivo; the
   author's words are in Newsreader, so a reader always knows whose words these are. docs/UI.md. */
@font-face { font-family: "Archivo"; src: url("/static/archivo-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/static/newsreader-latin-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --band: #A4DDED;
  --desk: #DCF0F6;
  --paper: #FFFFFF;
  --ink: #0F2A3A;
  --soft: #3B5461;
  --rule: #8DBBC9;
  --rule-soft: #BFD3DA;
  --red: #C8102E;
  --red-wash: #FBE3E3;
  --red-lit: #F6C7CC;
  --blue: #1457B0;
  --blue-wash: #E3ECF9;
  --blue-lit: #C8DAF5;
  --graphite: #5A6670;
  --violet: #4A2C9B;
  --here: #EEF7FA;
  --ink-blend: multiply;
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --band: #12384A;
    --desk: #0C232E;
    --paper: #142B36;
    --ink: #E6F3F7;
    --soft: #B3CBD5;
    --rule: #3C6376;
    --rule-soft: #28495A;
    --red: #FF9A9A;
    --red-wash: #4A2326;
    --red-lit: #6B2E33;
    --blue: #9CC3FF;
    --blue-wash: #1A3553;
    --blue-lit: #27507F;
    --graphite: #A8B8C0;
    --violet: #C4B2FF;
    --here: #1B3845;
    --ink-blend: normal;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 16px/1.45 var(--sans); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
p { margin: 0 0 0.8em; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 800; font-stretch: 72%; line-height: 1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 8px; background: var(--paper); padding: 6px 10px; z-index: 9; }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- frame ---------- */
.bar { background: var(--band); }
.bar-in { max-width: 1360px; margin: 0 auto; padding: 22px var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.mark { display: inline-block; margin: 0; padding-bottom: 6px; color: var(--ink); font-size: 1.65rem; line-height: 1; font-weight: 800; font-stretch: 75%; text-decoration: none; border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%) 1; }
.mark:hover { color: var(--ink); }
.bar-nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-weight: 500; }
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { text-decoration: underline; color: inherit; }
.bar-nav form { margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--blue); }
.bar-nav .link { font-weight: 500; text-decoration: none; }
.bar-nav .link:hover { color: inherit; text-decoration: underline; }
.wide { max-width: 1360px; margin: 0 auto; padding: 28px var(--gutter) 72px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 64px var(--gutter); }
.reading { max-width: 780px; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.reading h2 { font-size: 2.1rem; margin: 2.2rem 0 0.6rem; }
.reading h3 { font-size: 1.5rem; margin: 1.6rem 0 0.5rem; }
.reading dt { font-weight: 700; margin-top: 0.8rem; }
.reading dd { margin: 0.1rem 0 0; }
.reading li { margin: 0.45rem 0; }
.reading p, .reading li { max-width: 66ch; }
.page-title { font-size: clamp(3rem, 6vw, 5rem); line-height: 0.94; font-stretch: 70%; margin-bottom: 0.3em; }
.lede { font-size: 1.2rem; line-height: 1.45; margin: 0.4rem 0 1.4rem; max-width: 56ch; }
.lede-small { margin: 0.3rem 0 0.9rem; max-width: 62ch; }
.note { font-size: 0.95rem; }
.error { border: 2px solid var(--red); background: var(--red-wash); padding: 10px 14px; margin: 0 0 16px; font-weight: 500; }
.fine { color: var(--soft); font-size: 0.9rem; margin: 2px 0 0; }

/* ---------- controls ---------- */
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type="email"], input[type="password"], input[type="text"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 2px; padding: 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; padding: 0 24px; font: 700 1.06rem/1.1 var(--sans); cursor: pointer; text-decoration: none; }
.go:hover { background: var(--blue); color: var(--paper); }
.go:disabled { opacity: 0.65; cursor: default; }
.go kbd { font: 500 0.75rem/1 var(--sans); opacity: 0.75; }
.go-small { min-height: 46px; padding: 0 16px; font-size: 0.97rem; }
.plain-button { display: inline-flex; align-items: center; min-height: 44px; background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 2px; padding: 0 14px; font: 600 0.95rem/1.1 var(--sans); text-decoration: none; cursor: pointer; }
.plain-button:hover { background: var(--paper); color: var(--ink); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 392px; border: 2px dashed var(--ink); padding: 24px; margin: 0; cursor: pointer; font-weight: 400; }
.drop:hover, .drop.has-file, .drop:focus-within { background: var(--desk); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-big { font-size: 2.2rem; line-height: 1; font-weight: 800; font-stretch: 72%; overflow-wrap: anywhere; }
.drop-small { max-width: 38em; }
.drop-compact { min-height: 170px; background: var(--desk); }
.drop-compact .drop-big { font-size: 1.75rem; }
.tick { display: inline-flex; gap: 9px; align-items: baseline; font-weight: 400; margin: 0; font-size: 0.97rem; }
.tick input { margin: 0; accent-color: var(--ink); width: 16px; height: 16px; flex: none; transform: translateY(2px); }

/* ---------- the stamp: ink on paper, the one bold thing ---------- */
.stamp { --stamp: var(--violet); display: inline-block; max-width: 100%; padding: 5px; color: var(--stamp); border: 4px solid var(--stamp); border-radius: 6px; transform: rotate(-3deg); mix-blend-mode: var(--ink-blend); }
.stamp-altered, .stamp-withdrawn { --stamp: var(--red); }
.stamp-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px 18px; border: 1.5px solid var(--stamp); border-radius: 3px; }
.stamp-qr { flex: none; width: 112px; height: 112px; }
.stamp-qr svg { display: block; width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) { .stamp-qr { background: #fff; color: #4A2C9B; } }   /* phones read dark on light */
.stamp-block { flex: none; width: 112px; height: 112px; background: var(--stamp); }
.stamp-words { flex: 1 1 300px; min-width: 0; }
.stamp-words p { margin: 0; }
.stamp-head { font-size: 2.25rem; line-height: 0.98; font-weight: 800; font-stretch: 70%; text-transform: uppercase; letter-spacing: 0.01em; }
.stamp-lines { margin-top: 8px !important; font-size: 0.88rem; line-height: 1.35; font-weight: 700; font-stretch: 88%; text-transform: uppercase; letter-spacing: 0.03em; }
.stamp-lines span { display: block; }
.stamp-by { margin-top: 8px !important; font-size: 0.82rem; line-height: 1.2; font-weight: 600; }
.slip { background: var(--paper); padding: 40px 28px 44px; display: flex; justify-content: center; }

/* ---------- sign in ---------- */
.page-signin { background: var(--band); }
.signin { min-height: 100vh; display: flex; flex-wrap: wrap; }
.signin-show { flex: 999 1 560px; min-width: 0; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 36px; }
.signin-show .mark { align-self: flex-start; }
.signin-line { margin: 0; max-width: 11em; font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: 0.96; font-weight: 800; font-stretch: 70%; letter-spacing: -0.005em; }
.specimen-stack { margin-top: auto; max-width: 760px; }
.specimen { margin: 0 0 2px; background: var(--paper); padding: 26px 30px; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.specimen p { margin: 0; flex: 999 1 300px; font: 400 1.25rem/1.55 var(--serif); }
.specimen figcaption { flex: 1 1 200px; font-size: 0.88rem; line-height: 1.45; }
.specimen-good { padding-bottom: 34px; }
.u-red { background: var(--red-wash); text-decoration: underline 2px var(--red); text-underline-offset: 3px; }
.specimen-stamp { display: flex; justify-content: flex-end; margin: -46px 18px 0 0; position: relative; }
.signin-form { flex: 1 1 380px; background: var(--paper); padding: clamp(28px, 5vw, 72px); display: flex; align-items: center; }
.signin-form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 6px; }
.signin-form h1 { font-size: 2.75rem; margin-bottom: 18px; }
.signin-form input { margin-bottom: 14px; }
.signin-form .go { margin-top: 4px; }
.signin-form .fine { margin-top: 12px; }

/* ---------- the check page ---------- */
.page-check { background: var(--band); }
.home { padding-top: 18px; }
.home-title { font-size: clamp(3.25rem, 6.8vw, 6.25rem); line-height: 0.94; font-stretch: 70%; letter-spacing: -0.005em; margin-bottom: 28px; max-width: 12em; }
.home-lede { font-size: 1.15rem; margin: -12px 0 26px; max-width: 56ch; }
.home-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.home-main { flex: 999 1 560px; min-width: 0; }
.composer { background: var(--paper); }
.switch { border: 0; margin: 0; padding: 0 14px; display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 2px solid var(--ink); }
.switch label { margin: 0; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 5px solid transparent; margin-bottom: -2px; }
.switch input:checked + span { font-weight: 700; border-bottom-color: var(--red); }
.switch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
.panel-paste textarea { display: block; min-height: 440px; resize: vertical; border: 0; border-radius: 0; background: transparent; padding: 30px 36px; font: 400 1.31rem/1.6 var(--serif); }
.panel-paste textarea:focus { outline: none; }
.panel-paste textarea::placeholder { color: var(--soft); }
.hint { font-size: 0.95rem; margin: 10px 0 0; }
.panel-paste .hint { padding: 0 36px 12px; margin: 0; }
.panel-line { padding: 36px; min-height: 368px; }
.panel-line input, .panel-line select { height: 52px; }
.panel-file { padding: 24px; }
.composer-foot { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 14px 16px 14px 36px; border-top: 2px solid var(--ink); }
.composer-foot .go { margin-left: auto; }
.count { margin: 0; font-size: 0.93rem; flex-basis: 100%; }
.count:empty { display: none; }
.composer-foot .link { font-size: 0.97rem; }
.home-fine { font-size: 0.95rem; margin: 18px 0 0; }
.home-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.home-side h2 { font-size: 1.65rem; font-stretch: 75%; margin-bottom: 10px; line-height: 1.05; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { border-top: 2px solid var(--ink); }
.recent a { display: block; padding: 11px 0; text-decoration: none; }
.recent a:hover { color: inherit; }
.recent a:hover .recent-title { text-decoration: underline; }
.recent-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
.recent-meta { display: block; font-size: 0.95rem; }
.rules p { position: relative; margin: 0 0 10px; line-height: 1.4; }
.rules p:has(.stroke) { padding-left: 38px; }
.rules .stroke { position: absolute; left: 0; top: 0.56em; }
.rules-no { font-weight: 700; }
.stroke { display: inline-block; vertical-align: middle; width: 30px; margin-right: 8px; border-top: 4px solid; }
.stroke-strong { border-color: var(--red); }
.stroke-weak { border-color: var(--blue); border-top-style: dashed; }
.stroke-little { border-color: var(--ink); border-top-style: dotted; }
.drop-veil { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 90%, transparent); color: var(--paper); pointer-events: none; font-size: 3rem; font-weight: 800; font-stretch: 72%; }

/* ---------- the report: the verdict across the top ---------- */
.band { background: var(--band); }
.band-in { max-width: 1360px; margin: 0 auto; padding: 30px var(--gutter) 0; }
.source-line { margin: 0 0 6px; overflow-wrap: anywhere; }
.src-title { font-weight: 600; }
.verdict-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 56px; }
.verdict { flex: 0 1 auto; font-size: clamp(4rem, 9.6vw, 8.75rem); line-height: 0.88; font-stretch: 68%; letter-spacing: -0.008em; }
.tally { flex: 1 1 320px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 1.06rem; line-height: 1.35; }
.tally li { position: relative; padding-left: 38px; }
.tally li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 28px; border-top: 4px solid var(--rule); }
.tally b { font-weight: 800; font-variant-numeric: tabular-nums; }
.t-strong::before { border-color: var(--red) !important; }
.t-weak::before { border-color: var(--blue) !important; border-top-style: dashed !important; }
.t-little::before { border-color: var(--ink) !important; border-top-style: dotted !important; }
.caveat { margin: 16px 0 0; max-width: 62ch; }
.progress { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; font-weight: 600; }
.pulse { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.actions { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.actions-quiet { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.95rem; }
.strip { display: block; width: 100%; height: 34px; margin-top: 26px; background: var(--paper); }
.m-clean { fill: var(--rule-soft); }
.m-strong { fill: var(--red); }
.m-weak { fill: var(--blue); }
.m-little { fill: var(--ink); }
.strip a:hover rect, .strip a:focus rect { opacity: 0.6; }
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; }

/* ---------- stamp this document ---------- */
.certify { flex: 0 1 auto; align-self: flex-start; }
.certify > summary { list-style: none; display: flex; align-items: center; min-height: 54px; padding: 0 18px; border: 3px solid var(--violet); border-radius: 4px; color: var(--violet); font-weight: 700; cursor: pointer; }
.certify > summary::-webkit-details-marker { display: none; }
.certify > summary:hover { background: var(--paper); }
.certify[open] { flex: 1 0 100%; }
.certify[open] > summary { display: inline-flex; }
.certify-sheet { margin-top: 12px; background: var(--paper); padding: 24px 28px; }
.certify-what { max-width: 62ch; margin-bottom: 12px; }
.plan-note { max-width: 62ch; padding: 10px 12px; border: 2px solid var(--red); margin-bottom: 12px; }
.muted { font-weight: 400; color: var(--soft); }
.certify-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 32px; align-items: start; }
.certify-col { display: grid; gap: 10px; }
.certify-form .tick { align-items: flex-start; }

/* ---------- start here, and the text beside it ---------- */
.columns { max-width: 1360px; margin: 0 auto; padding: 30px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 32px 36px; }
.side-in { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; padding: 0 6px 6px 0; }
.side h2 { font-size: 2.1rem; margin-bottom: 10px; }
.chips { display: flex; gap: 2px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { min-height: 40px; padding: 0; color: inherit; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 0.9rem; font-stretch: 92%; cursor: pointer; }
.chip b { font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 3px; }
.chip:disabled { opacity: 0.45; cursor: default; }
.chip.is-on { font-weight: 700; border-bottom-color: var(--ink); }
.stepper { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.keys { font-size: 0.88rem; }
.fix-list { list-style: none; counter-reset: fix; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.fix-list li { counter-increment: fix; border-bottom: 1px solid var(--rule); }
.fix-list a, .fix-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 3px 10px; padding: 11px 8px; text-decoration: none; }
.fix-list a:hover { background: var(--paper); color: inherit; }
.fix-list a.is-here { background: var(--paper); }
.fix-list a::before { content: counter(fix); grid-row: span 2; font-size: 1.5rem; line-height: 1; font-weight: 800; font-stretch: 72%; }
.fix-strong a::before { color: var(--red); }
.fix-weak a::before { color: var(--blue); }
.fix-little a::before { color: var(--graphite); }
.fix-text { font: 400 1.03rem/1.32 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.fix-why { font-size: 0.93rem; line-height: 1.38; font-weight: 500; }
.fix-none p { margin: 0; }
.body { min-width: 0; }

.proof { background: var(--paper); padding: 22px 0; container-type: inline-size; }
.row { --pad: clamp(14px, 3vw, 36px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 250px); column-gap: 32px; padding: 10px var(--pad) 10px calc(var(--pad) + 20px); transition: background 0.5s; }
.row::before { content: ""; position: absolute; left: calc(var(--pad) - 8px); top: 16px; bottom: 16px; width: 10px; }
.is-strong::before { border: solid var(--red); border-width: 3px 0 3px 4px; }
.is-weak::before { border: dashed var(--blue); border-width: 2px 0 2px 3px; }
.is-little::before { border: dotted var(--ink); border-width: 2px 0 2px 3px; }
.row.is-here { background: var(--here); }
.row.is-changed { background: var(--blue-wash); }
.is-out { display: none; }
.copy { grid-column: 1; max-width: 40em; font: 400 1.25rem/1.6 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.copy.other { font-weight: 600; font-size: 1.5rem; line-height: 1.25; padding-top: 10px; }
mark { background: transparent; color: inherit; text-decoration: underline 2px dashed var(--blue); text-underline-offset: 3px; cursor: default; transition: background 0.15s; }
.is-little mark { text-decoration: underline 2px dotted var(--graphite); }
.is-strong mark:not(.soft) { background: var(--red-wash); text-decoration: underline 3px solid var(--red); }
.is-strong mark:not(.soft).is-lit { background: var(--red-lit); }
mark.is-lit { background: var(--blue-lit); }
.margin { grid-column: 2; font-size: 0.94rem; line-height: 1.42; padding-top: 5px; }
.call { margin: 0 0 8px; font-weight: 800; color: var(--red); }
.n { margin: 0 -6px 8px; padding: 2px 6px; overflow-wrap: anywhere; border-radius: 2px; transition: background 0.15s; }
.n.is-lit { background: var(--here); }
.n q { font-family: var(--serif); font-size: 1.05em; }
.by { display: block; color: var(--soft); font-size: 0.8rem; margin-top: 1px; }
.more summary { cursor: pointer; font-size: 0.85rem; min-height: 28px; }
.more .n { margin-top: 6px; }
.n-human { color: var(--soft); }
.clean-run { --pad: clamp(14px, 3vw, 36px); margin: 8px var(--pad); }
.clean-run > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.95rem; border-bottom: 1px solid var(--rule); }
.clean-run > summary::-webkit-details-marker { display: none; }
.clean-run > summary span { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.clean-run[open] > summary span { visibility: hidden; }
.clean-run[open] { margin: 8px 0; }
.clean-run[open] > summary { margin: 0 var(--pad) 8px; }
@container (max-width: 720px) {
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .margin { grid-column: 1; padding-top: 0; }
}

/* ---------- after the text ---------- */
.after { margin-top: 40px; }
.after h2 { font-size: 2.1rem; margin-bottom: 6px; }
.source-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 28px; }
.group h3 { font-size: 1.35rem; font-stretch: 75%; margin: 12px 0 6px; }
.g-bad h3 { color: var(--red); }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 8px 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; font-size: 0.95rem; }
.links .t { display: block; font-weight: 600; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; }
.fact { border-top: 2px solid var(--ink); padding: 10px 0 16px; }
.fact dt { font-size: 0.88rem; margin: 0; font-weight: 400; }
.fact dd { margin: 2px 0 0; }
.fact b { display: block; font-size: 1.9rem; line-height: 1.05; font-weight: 800; font-stretch: 72%; }
.lean-machine b { color: var(--red); }
.fact-note, .fact .sessions { display: block; margin-top: 5px; }
.fact-note { font-size: 0.93rem; line-height: 1.4; }
.sessions circle { fill: var(--ink); }
.lean-machine .sessions circle { fill: var(--red); }
.more-dots { font-size: 0.85rem; }
.ran summary { cursor: pointer; font-size: 1.5rem; font-weight: 800; font-stretch: 72%; }
.ran .tests { margin-top: 10px; }
.limits p { max-width: 62ch; margin: 0 0 8px; }
.tests { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.tests th, .tests td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
.tests thead th { font-weight: 600; border-top: 0; font-size: 0.88rem; }
.tests tbody th { font-weight: 600; min-width: 200px; overflow-wrap: anywhere; }
.tests small { display: block; font-weight: 400; color: var(--soft); font-size: 0.85rem; margin-top: 2px; }
.tests td.num, .tests th.num { text-align: right; }

/* ---------- a firm's pages ---------- */
.pages { list-style: none; padding: 0; margin: 0 0 14px; background: var(--paper); }
.page-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px auto; gap: 8px 18px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--rule); }
.page-row:first-child { border-top: 0; }
.page-row form { margin: 0; }
.page-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.page-url { margin: 0; color: var(--soft); font-size: 0.85rem; overflow-wrap: anywhere; }
.page-bar { width: 100%; height: 10px; display: block; }
.page-verdict { margin: 0; font-size: 0.95rem; font-weight: 600; }
.head { max-width: 860px; margin-bottom: 20px; }
.head .verdict { font-size: clamp(3rem, 7vw, 5.5rem); }
.head .progress, .head .lede { margin-top: 14px; }

/* ---------- the certificate and the public page ---------- */
.proofed { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 56px; max-width: 1200px; margin: 0 auto; padding: 36px var(--gutter) 0; }
.proofed-words { flex: 999 1 460px; min-width: 0; padding-bottom: 40px; }
.proofed-words .source-line { margin-bottom: 10px; }
.proofed .slip { flex: 0 1 580px; min-width: 0; }
.state { max-width: 10em; font-size: clamp(3.25rem, 7.4vw, 6.5rem); line-height: 0.92; font-stretch: 70%; letter-spacing: -0.005em; }
.proofed-words .lede { margin: 18px 0 0; max-width: 34em; }
.state-line { margin: 14px 0 0; max-width: 34em; font-size: 1.06rem; font-weight: 600; }
.state-line.is-bad { border-left: 4px solid var(--red); padding-left: 10px; }
.page-verify { background: var(--paper); }
.verify-top { max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verify-top p { margin: 0; }
.verify-top p:last-child { font-weight: 500; }
.verify-body { max-width: 1200px; margin: 0 auto; padding: 44px var(--gutter) 64px; }
.verify-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.verify-cols > section { flex: 1 1 420px; min-width: 0; }
.verify-body h2 { font-size: 2.4rem; margin-bottom: 8px; }
.verify-body h3 { font-size: 1.6rem; margin: 28px 0 6px; }
.code-label { margin: 0; font-size: 0.95rem; }
.code-big { margin: 2px 0 16px; font-size: 2.75rem; line-height: 1.1; font-weight: 800; font-stretch: 78%; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.eye { margin: 0; }
.eye > div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.eye > div:first-child { border-top: 2px solid var(--ink); }
.eye > div:last-child { border-bottom: 1px solid var(--rule); }
.eye dt { flex: 0 0 150px; font-size: 0.95rem; }
.eye dd { flex: 1 1 220px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.eye dd.quote { font: 400 1.13rem/1.35 var(--serif); }
.verify-form { display: flex; flex-direction: column; gap: 12px; }
.verify-form label[for="paste"] { margin: 4px 0 -6px; font-size: 0.95rem; }
.verify-form textarea { font: 400 1.13rem/1.5 var(--serif); resize: vertical; }
.verify-found { margin-top: 52px; }
.verify .fix-row { grid-template-columns: minmax(0, 1fr); padding: 11px 0; }
.verify .fix-list { margin-top: 8px; }
.verify .fine { margin-top: 18px; max-width: 46em; font-size: 0.95rem; line-height: 1.5; }
.words-beside { margin: 0 0 8px; }
.withdraw { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- saved copies, phones, paper ---------- */
.saved .wide { max-width: none; padding: 0; }
@media (max-width: 1100px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .side-in { position: static; max-height: none; overflow: visible; padding: 0; }
  .fix-list li:nth-child(n+6) { display: none; }
}
@media (max-width: 820px) {
  .composer-foot { padding: 12px 16px; }
  .composer-foot .go { width: 100%; margin-left: 0; }
  .go kbd { display: none; }
  .panel-paste textarea { padding: 18px; min-height: 300px; }
  .panel-paste .hint { padding: 0 18px 12px; }
  .panel-line { padding: 22px 18px; min-height: 0; }
  .panel-file { padding: 14px; }
  .drop { min-height: 240px; }
  .drop-big { font-size: 1.75rem; }
  .switch { padding: 0 6px; }
  .switch span { padding: 0 8px; font-size: 0.95rem; }
  .tests tbody th { min-width: 130px; }
  .after { overflow-x: auto; }
  .page-row { grid-template-columns: minmax(0, 1fr) auto; }
  .page-bar, .page-verdict { grid-column: 1 / -1; }
  .page-bar { grid-row: 2; }
  .slip { padding: 26px 14px 30px; }
  .stamp-head { font-size: 1.9rem; }
  .specimen-stamp { margin-right: 0; justify-content: center; }
  .certify[open], .certify { flex: 1 1 100%; align-self: stretch; }
  .certify-sheet { padding: 18px; }
  .actions { flex: 1 1 100%; }
  .actions .go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .row, mark, .n { transition: none; }
}
@media print {
  body { background: #fff; }
  .bar, .actions, .progress, .strip, .certify, .chips, .stepper { display: none; }
  .band { background: none; }
  .columns { display: block; }
  .side-in { position: static; max-height: none; }
  .row { break-inside: avoid; }
}
