/* Self-hosted fonts (SIL Open Font License, see fonts/LICENSE-OFL.txt) */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

/* Base reset (the artifact host supplied this) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Layout: a review desk. Fixed header, collapsible overview band, then two panes:
   the proposal on the left, the reviewer's point sheet on the right, kept in step. */
:root {
  --paper: #f3f5f4;
  --sheet: #ffffff;
  --ink: #1b2320;
  --muted: #5b6863;
  --rule: #d6ddd9;
  --tint: #e8eeeb;
  --accent: #2c5f4b;          /* reviewer's green ink */
  --accent-soft: #d9e8e0;
  --sev-blocker: #b42318;
  --sev-major: #a85407;
  --sev-minor: #3f6688;
  --sev-suggestion: #66707a;
  --sev-confirm: #6f4fa0;
  --hl: rgba(240, 190, 40, .32);
  --hl-active: rgba(240, 160, 20, .55);
  --pdf-ground: #dfe4e1;
  --f-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131917; --sheet: #1a211e; --ink: #e4ebe7; --muted: #9aa8a2; --rule: #2e3834;
    --tint: #212a26; --accent: #8cc7aa; --accent-soft: #24382f;
    --sev-blocker: #f08a7e; --sev-major: #f0a85a; --sev-minor: #8fb5d8; --sev-suggestion: #a7b0b8; --sev-confirm: #b9a2e0;
    --hl: rgba(240, 190, 40, .28); --hl-active: rgba(240, 170, 30, .5); --pdf-ground: #0e1311;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131917; --sheet: #1a211e; --ink: #e4ebe7; --muted: #9aa8a2; --rule: #2e3834;
  --tint: #212a26; --accent: #8cc7aa; --accent-soft: #24382f;
  --sev-blocker: #f08a7e; --sev-major: #f0a85a; --sev-minor: #8fb5d8; --sev-suggestion: #a7b0b8; --sev-confirm: #b9a2e0;
  --hl: rgba(240, 190, 40, .28); --hl-active: rgba(240, 170, 30, .5); --pdf-ground: #0e1311;
  color-scheme: dark;
}
html, body { height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 14px; line-height: 1.5; }
.app { height: 100%; display: grid; grid-template-rows: auto auto 1fr; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- header ---------- */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.brand { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
.brand h1 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.2; text-wrap: balance; }
.brand .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .build { color: var(--muted); font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reviewer { display: flex; align-items: center; gap: 6px; }
.reviewer input { width: 150px; padding: 5px 8px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.progress { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.progress .track { width: 90px; height: 6px; background: var(--tint); border-radius: 3px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.btn { padding: 6px 11px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--sheet); font-weight: 500; font-size: 13px; }
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--sheet); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.split { position: relative; display: inline-flex; }
.split > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split > .caret { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: color-mix(in srgb, var(--sheet) 40%, var(--accent)); padding: 6px 8px; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; min-width: 160px; display: grid; padding: 4px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.menu[hidden] { display: none; }
.menu button { border: 0; background: transparent; text-align: left; padding: 6px 10px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.menu button:hover, .menu button:focus-visible { background: var(--tint); }

/* ---------- overview ---------- */
.overview { background: var(--sheet); border-bottom: 1px solid var(--rule); max-height: 46vh; overflow: auto; }
.overview[hidden] { display: none !important; }
.ov-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 7px 16px; border: 0; border-bottom: 1px solid var(--rule); background: var(--sheet); text-align: left; }
.ov-bar:hover { background: var(--tint); }
.ov-bar[aria-expanded="false"] { border-bottom-color: transparent; }
.ov-bar .chev { display: inline-block; width: 1em; color: var(--ink); font-size: 16px; line-height: 1; transition: transform .15s; }
.ov-bar[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.ov-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.ov-sum b { color: var(--ink); font-weight: 600; }
.ov-bar[aria-expanded="true"] .ov-sum { display: none; }  /* the open overview shows the same */
.ov-inner[hidden] { display: none !important; }
.ov-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 32px; padding: 16px 16px 18px; max-width: 1500px; }
.verdict { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.verdict h2 { margin: 0; font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.verdict .tag { font-size: 12px; color: var(--muted); }
.counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--rule); font-size: 12px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 2px; flex: none; background: currentColor; }
.s-blocker { color: var(--sev-blocker); } .s-major { color: var(--sev-major); } .s-minor { color: var(--sev-minor); }
.s-suggestion { color: var(--sev-suggestion); } .s-confirm { color: var(--sev-confirm); }
.chip .n { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-text p { margin: 0 0 8px; max-width: 68ch; }
.note-strip { font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 10px; margin: 8px 0; max-width: 68ch; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 12.5px; margin-top: 10px; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; }
.crit { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.crit th, .crit td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.crit th { font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.crit td.c { white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 6px; }
.pips { display: inline-flex; gap: 2px; }
.pip { width: 7px; height: 12px; border-radius: 1px; background: var(--rule); }
.pip.Clear { background: var(--accent); } .pip.Partial { background: var(--sev-major); } .pip.Weak { background: var(--sev-blocker); }
.cons { font-weight: 600; } .cons.Partial { color: var(--sev-major); } .cons.Weak { color: var(--sev-blocker); } .cons.Clear { color: var(--accent); }
.ov-side h3, .ov-text h3 { margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
.ov-side ul, .ov-text ul { margin: 0; padding-left: 18px; }
.ov-side li, .ov-text li { margin: 2px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-top: 12px; }
details ul { margin-top: 6px !important; font-size: 12.5px; color: var(--muted); }
.legend { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- workbench ---------- */
.desk { grid-row: 3; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); min-height: 0; }  /* row 3 even when the overview is hidden */
.pane { min-height: 0; min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.pane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.pdf-pane { background: var(--pdf-ground); border-right: 1px solid var(--rule); }
.pdf-scroll { overflow: auto; padding: 16px; position: relative; scroll-behavior: auto; }
.pages { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.page { position: relative; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.page canvas { display: block; width: 100%; height: 100%; }
.page .num { position: absolute; left: -2px; top: 4px; transform: translateX(-100%); font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding-right: 6px; }
.hl { position: absolute; background: var(--hl); mix-blend-mode: multiply; border-radius: 2px; pointer-events: none; }
:root[data-theme="dark"] .hl, :root:not([data-theme="light"]) .hl { mix-blend-mode: multiply; }
.hl.active { background: var(--hl-active); outline: 1px solid rgba(200, 120, 0, .7); }
.pin { position: absolute; right: -6px; transform: translateX(100%); font-family: var(--f-mono); font-size: 10.5px; padding: 1px 5px; border-radius: 3px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink); white-space: nowrap; }
.pin .dot { display: inline-block; margin-right: 4px; vertical-align: 0; width: 7px; height: 7px; }
.pin.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pdf-status { padding: 40px 16px; color: var(--muted); text-align: center; }
.pdf-warn { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; font-size: 13px; background: color-mix(in srgb, var(--sev-blocker) 9%, var(--sheet)); border-bottom: 1px solid var(--sev-blocker); }
.pdf-warn[hidden] { display: none; }
.pdf-warn strong { color: var(--sev-blocker); }
.pdf-warn .mono { white-space: pre-wrap; overflow-wrap: anywhere; }
.reviewed-file { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12.5px; color: var(--muted); }
.reviewed-file b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.reviewed-file .differs { color: var(--sev-blocker); font-weight: 600; }
.reviewed-file .matches { color: var(--accent); font-weight: 600; }
.btn:disabled, .btn.is-disabled, .reviewer input:disabled { opacity: .45; pointer-events: none; }
body.no-review #overview, body.no-review .filters, body.no-review #btn-ov { display: none !important; }
.empty-review { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty-review h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--f-display); font-size: 18px; }
.empty-review p { max-width: 460px; margin: 0 auto 14px; }
.empty-review .btn + .btn { margin-left: 8px; }
.empty-review .demo-credit { margin-top: 14px; font-size: 12.5px; }
.pdf-status .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pdf-warn .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.file-btn { cursor: pointer; }
.zoom { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.zoom button { border: 0; background: var(--sheet); padding: 3px 9px; }
.zoom button + button { border-left: 1px solid var(--rule); }
.where { font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 140px; }
.where b { color: var(--ink); font-weight: 600; }

.list-pane { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.seg button { border: 0; background: transparent; padding: 3px 9px; font-size: 12.5px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.list-scroll { overflow: auto; padding: 0 16px 40vh; position: relative; }
.group-h { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 12px 0 6px; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--rule); }
.group-h .label { color: var(--ink); }
.point { border-bottom: 1px solid var(--rule); padding: 12px 10px 12px 10px; margin: 0 -10px; border-radius: var(--r); transition: background .15s; }
.point.here { background: var(--tint); }
.point.active { background: var(--accent-soft); }
.point.st-ignore .p-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule); }
.p-top { display: flex; gap: 10px; align-items: flex-start; }
.p-head { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.sev { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.p-title { margin: 3px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 16px; line-height: 1.3; text-wrap: balance; color: var(--ink); }
.p-tog { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 17px; line-height: 22px; transition: transform .15s; }
.p-tog:hover { background: var(--tint); color: var(--ink); }
.p-tog::before, .ov-bar .chev::before { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.p-tog::before { transform: translate(-1px, -1px) rotate(-45deg); }  /* points right; the button turns it down when open */
.ov-bar .chev::before { transform: translateY(-3px) rotate(45deg); }  /* points down; turns right when folded */
.point.open .p-tog { transform: rotate(90deg); }
.point:not(.open) { padding-top: 9px; padding-bottom: 9px; }
.p-more[hidden] { display: none !important; }
.p-more { padding-left: 32px; }  /* in line with the title, past the toggle */
.tag { font-size: 11px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); font-weight: 500; }
.tag.tag-review { background: color-mix(in srgb, var(--sev-major) 16%, var(--sheet)); }
.tag.tag-noted { background: var(--accent-soft); }
.tag.tag-ignore { background: var(--tint); }
.p-body { margin-top: 8px; display: grid; gap: 8px; }
.p-body p { margin: 0; max-width: 72ch; }
.p-body .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: block; margin-bottom: 2px; }
.quote { border: 0; background: transparent; text-align: left; padding: 6px 10px; border-left: 2px solid var(--rule); font-family: var(--f-display); font-size: 14px; line-height: 1.45; color: var(--ink); width: 100%; }
.quote:hover { border-left-color: var(--accent); background: var(--tint); }
.quote .pg { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.absence { font-size: 12.5px; color: var(--muted); font-style: italic; }
.src a { color: var(--accent); }
.raised { font-size: 12px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.status { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.status button { border: 0; background: transparent; padding: 4px 10px; font-size: 12.5px; color: var(--muted); }
.status button + button { border-left: 1px solid var(--rule); }
.status button[aria-pressed="true"][data-v="review"] { background: color-mix(in srgb, var(--sev-major) 16%, var(--sheet)); color: var(--ink); font-weight: 600; }
.status button[aria-pressed="true"][data-v="noted"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.status button[aria-pressed="true"][data-v="ignore"] { background: var(--tint); color: var(--ink); font-weight: 600; }
.more { border: 0; background: transparent; color: var(--accent); font-size: 12.5px; padding: 2px 0; }
.reviewer input.need-name { border-color: var(--sev-blocker); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sev-blocker) 30%, transparent); }
.reviewer .req { color: var(--sev-blocker); margin-left: 2px; }
.status-by { font-size: 12px; color: var(--muted); }
.note-list { margin-top: 10px; display: grid; gap: 6px; }
.note-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; padding: 7px 9px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); }
.note-row .who { font-size: 12px; color: var(--muted); }
.note-row .who b { color: var(--ink); font-weight: 600; }
.note-row .txt { grid-column: 1 / -1; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.btn.sm { padding: 2px 9px; font-size: 12px; }
.note-compose .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
textarea.notes { width: 100%; min-height: 54px; resize: vertical; padding: 7px 9px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); line-height: 1.45; margin-top: 8px; }
.saved { font-size: 11.5px; color: var(--muted); }
.empty { padding: 30px 0; color: var(--muted); }

/* ---------- dialog ---------- */
.modal { position: fixed; inset: 0; background: rgba(10, 16, 13, .45); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal[hidden] { display: none !important; }
.modal .box { background: var(--sheet); border-radius: 10px; width: min(720px, 100%); max-height: 90vh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--rule); }
.modal header, .modal footer { padding: 12px 16px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.modal header h2 { margin: 0; font-size: 16px; font-family: var(--f-display); }
.confirm-body { margin: 0 16px; }
.confirm-body p { margin: 0 0 8px; }
.confirm-body .mono { display: block; margin: 2px 0; overflow-wrap: anywhere; }
.modal textarea { margin: 0 16px; min-height: 260px; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--rule); border-radius: var(--r); padding: 8px; background: var(--paper); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--sheet); padding: 8px 14px; border-radius: var(--r); font-size: 13px; z-index: 30; }

@media (max-width: 900px) {
  .app { height: auto; display: block; }
  .ov-inner { grid-template-columns: minmax(0, 1fr); }
  .overview { max-height: none; }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .pdf-pane { height: 62vh; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; border-right: 0; border-bottom: 1px solid var(--rule); }
  .list-scroll { overflow: visible; padding-bottom: 24px; }
  .page .num, .pin { display: none; }
  .reviewer input { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* ---------- splash: once per browser session, about 5 s, click or any key skips ---------- */
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); cursor: pointer; animation: sp-out .4s ease 6.5s forwards; }
.splash.done { animation: sp-out .4s ease forwards; }
@keyframes sp-out { to { opacity: 0; visibility: hidden; } }
.sp-card { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 400px; text-align: center; }
.sp-doc { position: relative; width: 132px; height: 172px; padding: 18px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 12px 32px rgba(0, 0, 0, .10); overflow: hidden; animation: sp-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sp-rise { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.sp-doc i { display: block; height: 6px; margin-bottom: 10px; border-radius: 3px; background: var(--tint); transform-origin: left; animation: sp-line .5s ease both; }
.sp-doc i:nth-child(1) { width: 62%; height: 9px; margin-bottom: 14px; background: var(--rule); animation-delay: .3s; }
.sp-doc i:nth-child(2) { width: 100%; animation-delay: .45s; }
.sp-doc i:nth-child(3) { width: 92%; animation-delay: .6s; }
.sp-doc i:nth-child(4) { width: 100%; animation-delay: .75s; }
.sp-doc i:nth-child(5) { width: 76%; animation-delay: .9s; }
.sp-doc i:nth-child(6) { width: 96%; animation-delay: 1.05s; }
.sp-doc i:nth-child(7) { width: 100%; animation-delay: 1.2s; }
.sp-doc i:nth-child(8) { width: 58%; animation-delay: 1.35s; }
@keyframes sp-line { from { transform: scaleX(0); } }
.sp-scan { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(to bottom, transparent, var(--accent-soft)); border-bottom: 2px solid var(--accent); opacity: .85; animation: sp-scan 2.6s ease-in-out 1.4s both; }
@keyframes sp-scan { from { transform: translateY(-34px); } to { transform: translateY(176px); } }
.sp-hl { position: absolute; left: 14px; height: 10px; border-radius: 2px; background: var(--hl-active); animation: sp-fade .3s ease both; }
.sp-hl.a { top: 48px; width: 74px; animation-delay: 2.1s; }
.sp-hl.b { top: 112px; width: 90px; animation-delay: 3.1s; }
.sp-pin { position: absolute; right: 6px; width: 8px; height: 8px; border-radius: 50%; animation: sp-pin .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.sp-pin.a { top: 49px; background: var(--sev-major); animation-delay: 2.2s; }
.sp-pin.b { top: 113px; background: var(--sev-minor); animation-delay: 3.2s; }
.sp-stamp { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--sheet); font-size: 16px; font-weight: 600; animation: sp-pin .4s cubic-bezier(.3, 1.6, .5, 1) 4.2s both; }
@keyframes sp-fade { from { opacity: 0; } }
@keyframes sp-pin { from { opacity: 0; transform: scale(0); } }
.sp-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.2; animation: sp-fade .6s ease .2s both; }
.sp-tag { margin: -10px 0 0; color: var(--muted); animation: sp-fade .6s ease .35s both; }
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; text-align: left; }
.sp-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); animation: sp-step .3s ease var(--d) both; }
.sp-steps li::before { content: "✓"; width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--rule); color: transparent; font-size: 10px; font-weight: 700; animation: sp-tick .3s ease calc(var(--d) + .7s) both; }
@keyframes sp-step { to { color: var(--ink); } }
@keyframes sp-tick { to { background: var(--accent); border-color: var(--accent); color: var(--sheet); } }
.sp-bar { width: 100%; height: 3px; border-radius: 2px; background: var(--tint); overflow: hidden; }
.sp-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: sp-grow 5s linear both; }
@keyframes sp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sp-foot { display: flex; justify-content: space-between; width: 100%; color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .sp-scan { display: none; }
  .sp-doc, .sp-doc i, .sp-pin, .sp-stamp, .sp-bar span { animation-name: sp-fade; }
}
