/* The report page (redesign, 22.10): light only, Atkinson Hyperlegible, one accent ("linen") for page,
   charts and fills. Orange is for issues only, green for passed / verified only. Loaded after app.css on
   /r/{id}; every class here starts with rp- except the shared shell (nav, footer). */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }

.page-report {
  /* accent: linen */
  --ac-page: #F8F5F0; --ac-chart: #FCFBF8; --ac-fill: #F3EEE7; --ac-fill2: #F6F2EC; --ac-soft: #FAF8F4;
  --ac-border: #EAE3D8; --ac-grid: #ECE6DC; --ac-border2: #E2D8CA; --ac-line: #D8CAB5; --ac-faint: #C7B597;
  --ac-main: #8A6D46; --ac-ink: #55432A; --ac-ring: #A8957A;
  /* ink */
  --ink: #1B2230; --ink-2: #33404F; --ink-3: #4F5B6B; --rule: #C9D1DB; --hair: #DCE2E9; --field: #AEB8C4; --tagline: #93A0AF;
  /* issues and passes */
  --bad-bg: #FBE3D6; --bad-ink: #8A2E08; --bad: #A33A0C; --bad-edge: #F4CDB8; --bad-soft: #FDEFE7; --bad-line: #E08A5E;
  --ok-bg: #E3F3EA; --ok-ink: #1E6543; --ok: #4FA97A; --ok-edge: #CFE8D9;
  --zone-low: #7FC3A0; --zone-medium: #E8C766; --zone-high: #E59A7A;
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --rp-font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rp-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* the shared shell (nav, chips, facts) reads these: light values on this page whatever the system theme */
  --canvas: var(--ac-page); --surface: #FFFFFF; --raised: var(--ac-fill); --line: var(--hair); --line-strong: var(--rule);
  --text: var(--ink); --muted: var(--ink-3); --faint: var(--ink-3); --btn: var(--ink); --btn-text: #FFFFFF; --focus: var(--ink);
  --sans: var(--rp-font);
  color-scheme: light;
  background: var(--ac-page);
  color: var(--ink);
  font-family: var(--rp-font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: normal;
  font-variant-numeric: tabular-nums;
}
.page-report .mono { font-family: var(--rp-font); font-feature-settings: normal; }
.page-report a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(27, 34, 48, .35); text-underline-offset: 2px; }
.page-report a:hover { color: #000000; text-decoration-color: currentColor; }
.page-report :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.page-report .icon { stroke-width: 2; }
.page-report .wrap { max-width: 1180px; padding: 0 16px; }

/* --- the shell: header and footer --- */
.page-report .nav { border-bottom: 0; }
.page-report .nav-inner { height: auto; min-height: 70px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 12px 20px; }
.page-report .brand { font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.page-report .nav-link { color: var(--ink-3); font-size: 15px; text-decoration: none; }
.page-report .nav-link:hover, .page-report .nav-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-report .brand .icon { display: none; }
.page-report .nav-right { gap: 12px 20px; flex-wrap: wrap; }
.page-report .nav-scan { flex: 1 1 300px; width: auto; max-width: 520px; margin: 0 auto; gap: 8px; }
.page-report .nav-scan input {
  height: 38px; padding: 0 12px; background: #FFFFFF; border: 1px solid var(--field); border-radius: 6px; font-size: 15px; color: var(--ink);
}
.page-report .nav-scan input:focus { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--field); }
.page-report .nav-scan .btn { height: 38px; padding: 0 16px; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 700; }
.page-report .nav-verdict {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  border-radius: 6px; background: #FFFFFF; border: 1px solid var(--rule); font-size: 15px;
}
.page-report .nav-verdict .nav-domain { color: var(--ink); font-size: 15px; }
.page-report .nav-verdict .nav-index { padding: 0; background: none; font-size: 15px; font-weight: 700; color: var(--ink); }
.page-report .nav-verdict.tone-clean .nav-index { color: #1F6A45; }
.page-report .nav-verdict.tone-medium .nav-index { color: #8A5A12; }
.page-report .nav-verdict.tone-high .nav-index { color: var(--bad); }
.page-report .footer { margin-top: 0; border-top: 1px solid var(--ac-border); background: #FFFFFF; }
.page-report .footer-inner { max-width: 1180px; color: var(--ink-3); font-size: 14px; }
.page-report .footer-links a { color: var(--ink-2); }
.page-report .footer a { color: var(--ink); }

/* --- text helpers --- */
.rp-strong { font-weight: 700; }
.rp-muted { color: var(--ink-3); }
.rp-faint { color: var(--ink-3); font-size: 13px; }
.rp-bad { color: var(--bad); font-weight: 700; }
.rp-num { text-align: right; }
.rp-sub-line { display: block; margin-top: 4px; }
.rp-empty { color: var(--ink-2); font-size: 16px; }
.rp-sub { color: var(--ink-3); font-size: 15px; }
.rp-note { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.rp-hint { color: var(--ink-3); font-size: 13px; }
.rp-count { font-weight: 400; color: var(--ink-3); }
.rp-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--ac-fill); color: var(--ac-ink);
  font-size: 12px; font-weight: 700; vertical-align: 1px;
}
.rp-tag.is-bad { background: var(--bad-bg); color: var(--bad-ink); }
.rp-pill-line {
  margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--ac-border);
  font-size: 12px; font-weight: 700; color: var(--ink-3); vertical-align: 2px; white-space: nowrap;
}
.rp-ai-tag { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--tagline); font-weight: 700; font-size: 12px; }
.rp-ai-tag-xs { padding: 0 5px; border-radius: 3px; font-size: 11px; }
.rp-code { padding: 1px 7px; border-radius: 6px; background: var(--ac-fill); color: var(--ac-ink); font-size: 12px; font-family: var(--rp-mono); }

/* --- buttons and fields --- */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 6px; border: 1px solid var(--ink); background: #FFFFFF; color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.page-report a.rp-btn { text-decoration: none; }
.rp-btn:hover { background: var(--ac-soft); }
.rp-btn .icon { width: 16px; height: 16px; }
.rp-btn .icon-check { display: none; }
.rp-btn[data-copied] .icon-copy { display: none; }
.rp-btn[data-copied] .icon-check { display: block; }
.rp-btn-dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); padding: 0 18px; }
.page-report a.rp-btn-dark { color: #FFFFFF; }
.rp-btn-dark:hover { background: #000000; }
.rp-btn-dark .icon-x-brand { width: 17px; height: 17px; }
.rp-btn-sm { min-height: 38px; font-size: 15px; }
.rp-btn.is-off { opacity: .4; cursor: default; }
.rp-btn:disabled { opacity: .6; cursor: default; }
.rp-input, .rp-field input, .rp-mistake-form input, .rp-mistake-form select, .rp-mistake-form textarea {
  height: 38px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px;
  background: #FFFFFF; font: inherit; font-size: 15px; color: var(--ink);
}
.rp-mistake-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.rp-mistake-form select { padding: 0 10px; }

/* --- the sheet --- */
.rp-sheet { margin: 0 auto 80px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; overflow-wrap: break-word; }
.rp-meta {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center;
  padding: 18px 32px; border-bottom: 1px solid var(--rule);
}
.rp-meta-title { font-weight: 700; font-size: 18px; }
.rp-meta-list { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.rp-meta-list div { display: flex; gap: 6px; }
.rp-meta-list dt { color: var(--ink-3); }

/* verdict */
.rp-verdict { display: flex; flex-wrap: wrap; gap: 32px 56px; padding: 36px 32px; border-bottom: 1px solid var(--rule); }
.rp-verdict-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rp-verdict-side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.rp-target { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rp-favicon { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.rp-favicon-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #FFFFFF; font-weight: 700; }
.rp-domain { font-size: 18px; font-weight: 700; }
.rp-pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); font-size: 14px; }
.rp-opened { font-size: 15px; color: var(--ink-3); }
.rp-verdict-label { font-size: 40px; line-height: 1.1; font-weight: 700; }
.rp-lead { font-size: 18px; line-height: 1.55; max-width: 62ch; }
.rp-about { font-size: 16px; color: var(--ink-2); }
.rp-ai-note { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); }
.rp-paused {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px;
  background: var(--ac-soft); border: 1px solid var(--ac-border); font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.rp-paused .rp-tag { flex: none; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.rp-actions form { display: contents; }

.rp-index { display: flex; align-items: baseline; gap: 10px; }
.rp-index-number { font-size: 88px; font-weight: 700; line-height: .9; }
.rp-index-label { font-size: 18px; color: var(--ink-3); }
.rp-scale { position: relative; padding-top: 18px; }
/* zones follow scoring/rules.py: medium from 30, high from 60 */
.rp-scale-track { display: grid; grid-template-columns: 30fr 30fr 40fr; height: 14px; border: 1px solid var(--ink); }
.rp-zone-low { background: var(--zone-low); }
.rp-zone-medium { background: var(--zone-medium); border-left: 1px solid var(--ink); }
.rp-zone-high { background: var(--zone-high); border-left: 1px solid var(--ink); }
.rp-scale-mark { position: absolute; left: 0; top: 0; width: 100%; height: 34px; overflow: visible; }
.rp-scale-mark line { stroke: var(--ink); stroke-width: 2; }
.rp-scale-labels { display: grid; grid-template-columns: 30fr 30fr 40fr; margin-top: 6px; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.rp-scale-labels span:last-child { text-align: right; }
.page-report a.rp-money-line {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--ac-soft); color: var(--ink); text-decoration: none; transition: background .45s var(--ease-soft);
}
.page-report a.rp-money-line:hover { background: var(--ac-fill); }
.rp-money-line-title { font-weight: 700; }
.rp-money-line-text { font-size: 15px; color: var(--ink-3); }
.page-report a.rp-money-line.is-wallet { border-color: var(--bad-edge); background: var(--bad-soft); }
.page-report a.rp-money-line.is-wallet:hover { background: var(--bad-bg); }
.rp-money-line.is-wallet .rp-money-line-title { color: var(--bad-ink); }
.page-report a.rp-mistake-link { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); }
.rp-mistake-link .icon { width: 15px; height: 15px; }

/* notices under the verdict */
.rp-notices { display: flex; flex-direction: column; gap: 10px; padding: 16px 32px; border-bottom: 1px solid var(--rule); background: var(--ac-soft); }
.rp-notice { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.rp-notice .icon { width: 18px; height: 18px; margin-top: 2px; }
.rp-notice.is-warn { color: var(--bad-ink); }
.rp-notice-box { padding: 12px 14px; border-radius: 8px; background: var(--ac-soft); border: 1px solid var(--ac-border); margin-bottom: 12px; }
.rp-contract-form {
  display: flex; flex-direction: column; gap: 8px; max-width: 620px; padding: 14px 16px; border-radius: 10px;
  background: #FFFFFF; border: 1px solid var(--ac-border);
}
.rp-contract-form label { font-size: 15px; font-weight: 700; }
.rp-field { display: flex; gap: 8px; }
.rp-field input { flex: 1; min-width: 0; }

/* body: main column and the side */
.rp-body { display: flex; flex-wrap: wrap; align-items: flex-start; }
.rp-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; }
.rp-side { flex: 1 1 320px; min-width: 0; border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.rp-section { padding: 32px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.rp-section-last { border-bottom: 0; }
.rp-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.rp-head-stack { flex-direction: column; align-items: flex-start; gap: 14px; }
.rp-head h2 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.rp-head h3 { font-size: 20px; font-weight: 700; }
.rp-head-note { font-size: 14px; color: var(--ink-3); }
.rp-side-section { padding: 28px 24px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.rp-side-section:last-child { border-bottom: 0; }
.rp-side-section h2 { font-size: 20px; font-weight: 700; }
.rp-side-note { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.rp-side-list li { padding: 10px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.45; }
.rp-side-list h3 { font-size: 15px; font-weight: 700; }
.rp-pass { color: var(--ok-ink); }
.rp-skip { color: var(--ink-3); }
.rp-team-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 15px; }

/* --- accordions: red flags and the money rows --- */
.rp-acc.rp-flags { border: 1px solid var(--ac-border); border-radius: 12px; overflow: hidden; background: #FFFFFF; }
.rp-flags .rp-acc-item + .rp-acc-item { border-top: 1px solid var(--ac-border); }
.rp-acc-row {
  position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 24px;
  border: 0; background: #FFFFFF; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: background .45s var(--ease-soft);
}
.rp-acc-row:hover, .rp-acc-row:focus-visible { background: var(--ac-soft); }
.is-open > .rp-acc-row { background: var(--ac-soft); }
.rp-acc-main { flex: 1 1 auto; min-width: 0; }
.rp-acc-title { display: block; font-size: 17px; font-weight: 700; }
.rp-acc-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.rp-flag-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bad-line); opacity: .55; transition: opacity .45s var(--ease-soft); }
.is-open > .rp-acc-row .rp-flag-bar { opacity: 1; }
.rp-weight { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--bad-bg); color: var(--bad-ink); font-size: 15px; font-weight: 700; }
.rp-chev {
  flex: 0 0 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ac-fill); color: var(--ac-ink);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.rp-chev .icon { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .5s var(--ease-soft); }
.rp-acc-row:hover .rp-chev, .rp-acc-row:focus-visible .rp-chev { transform: translateY(1px); box-shadow: 0 0 0 4px rgba(27, 34, 48, .05); }
.is-open > .rp-acc-row .rp-chev .icon { transform: rotate(180deg); }
.rp-acc-panel { animation: rp-open .55s var(--ease-soft) both; }
.rp-acc-panel[hidden] { display: none; }
.rp-flag-panel { display: flex; flex-direction: column; gap: 16px; padding: 16px 20px 20px 24px; background: #FFFFFF; }
@keyframes rp-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* grids: a head row then rows with a hairline */
.rp-grid-head, .rp-grid-row { display: grid; gap: 12px; align-items: center; }
.rp-grid-head { padding: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.rp-grid-row { padding: 10px 0; border-top: 1px solid var(--ac-border); }
.rp-grid-flag .rp-grid-head, .rp-grid-flag .rp-grid-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .9fr) minmax(0, .9fr); }
.rp-grid-flag .rp-grid-row { font-size: 14px; }
.rp-grid-flag .rp-grid-row > .rp-strong { font-size: 15px; }
.rp-cell-name { display: flex; flex-direction: column; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.rp-cell-name a, .rp-cell-name .rp-faint { font-size: 13px; }
.rp-more { padding-top: 8px; }
.rp-found { padding-top: 14px; border-top: 1px solid var(--ac-border); display: grid; grid-template-columns: 88px minmax(0, 72ch); gap: 10px 16px; font-size: 15px; line-height: 1.5; }
.rp-found dt { font-size: 13px; font-weight: 700; padding-top: 2px; }
.rp-found-what { color: var(--bad); }
.rp-found-you { color: var(--ac-ink); }

/* --- who can move the money --- */
.rp-switch { display: inline-flex; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.rp-switch button { min-height: 40px; padding: 0 14px; border: 0; background: #FFFFFF; color: var(--ink); font: inherit; cursor: pointer; transition: background .35s var(--ease-soft); }
.rp-switch button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; font-weight: 700; }
.rp-switch button[aria-pressed="false"]:hover { background: var(--ac-soft); }
#money-top, #money-full { display: flex; flex-direction: column; gap: 18px; }
#money-top[hidden], #money-full[hidden] { display: none; }
.rp-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.rp-tab {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 0; border-right: 1px solid var(--rule);
  background: #FFFFFF; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background .4s var(--ease-soft);
}
.rp-tab:last-child { border-right: 0; }
.rp-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background .4s var(--ease-soft); }
.rp-tab[aria-selected="true"] { background: var(--ac-fill); }
.rp-tab[aria-selected="true"]::after { background: var(--ac-main); }
.rp-tab.is-wallet[aria-selected="true"]::after { background: var(--bad-line); }
.rp-tab[aria-selected="false"]:hover { background: var(--ac-soft); }
.rp-tab-label { font-size: 14px; color: var(--ink-3); }
.rp-tab-usd { font-size: 24px; font-weight: 700; }
.rp-tab.is-wallet .rp-tab-usd { color: var(--bad); }
.rp-tab.is-wallet { background: var(--bad-soft); }
.rp-tab.is-wallet[aria-selected="true"] { background: var(--bad-soft); }
.rp-tab-panel { display: flex; flex-direction: column; gap: 14px; animation: rp-open .55s var(--ease-soft) both; }
.rp-tab-panel[hidden] { display: none; }
.rp-tab-empty { padding: 22px 20px; border: 1px dashed var(--ac-line); border-radius: 6px; font-size: 15px; color: var(--ink-3); }
.rp-key { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.rp-key-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid var(--hair); }
.rp-key-head h3 { font-size: 18px; font-weight: 700; }
.rp-key-head a, .rp-key-head .rp-muted { font-size: 14px; }
.rp-key-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-key-usd { font-size: 28px; font-weight: 700; }
.rp-key-usd-sm { font-size: 22px; }
.rp-key-powers { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--hair); align-items: center; font-size: 14px; }
.rp-power { padding: 5px 10px; border-radius: 4px; background: #EEF1F5; color: var(--ink-2); }
.rp-power.is-moves { background: var(--bad-bg); color: #7A2A06; font-weight: 700; }
.rp-key-idle { padding: 12px 20px; font-size: 15px; color: var(--ink-2); }
.rp-key-chips { padding: 0 20px 16px; }
.rp-key > .rp-key-head:last-child, .rp-key-head.is-plain { border-bottom: 0; }
.rp-key-head.is-plain { padding: 16px 20px 12px; gap: 8px 24px; }
.rp-money-rows .rp-acc-item { border-bottom: 1px solid var(--hair); }
.rp-money-row { padding: 14px 20px; }
.rp-money-row.is-static { cursor: default; }
.rp-money-row.is-static:hover { background: #FFFFFF; }
.rp-money-row .rp-acc-title { font-size: 16px; }
.rp-acc-short { font-weight: 400; font-size: 14px; color: var(--ink-3); }
.rp-money-row .rp-acc-sub { color: var(--ink-2); }
.rp-acc-usd { flex: none; font-size: 18px; font-weight: 700; }
.rp-stack { flex: none; display: inline-flex; align-items: center; padding-left: 10px; }
.rp-stack .rp-token-mark {
  width: 32px; height: 32px; margin-left: -10px; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--ac-border);
  transition: transform .6s var(--ease-soft);
}
.rp-stack-1 { z-index: 4; } .rp-stack-2 { z-index: 3; transition-delay: 40ms; } .rp-stack-3 { z-index: 2; transition-delay: 80ms; } .rp-stack-4 { z-index: 1; transition-delay: 120ms; }
.rp-acc-row:hover .rp-stack-2, .rp-acc-row:focus-visible .rp-stack-2 { transform: translateX(6px); }
.rp-acc-row:hover .rp-stack-3, .rp-acc-row:focus-visible .rp-stack-3 { transform: translateX(12px); }
.rp-acc-row:hover .rp-stack-4, .rp-acc-row:focus-visible .rp-stack-4 { transform: translateX(18px); }
/* a red flag's contracts as pictures (28.10): the stack pops in one picture after another and fans out on
   hover like the token stack; a row's picture tilts a little under the pointer */
.rp-fstack { margin-left: -4px; }
.rp-stack .rp-fpic {
  position: relative; flex: none; width: 34px; height: 34px; margin-left: -10px; border-radius: 8px; overflow: hidden; background: #F3F4F6;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--ac-border);
  transition: transform .6s var(--ease-soft); animation: rp-fpic-in .5s var(--ease-soft) backwards;
}
.rp-fpic img, .rp-fthumb img, .rp-fkey img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-fstack .rp-stack-2 { animation-delay: .07s; } .rp-fstack .rp-stack-3 { animation-delay: .14s; } .rp-fstack .rp-stack-4 { animation-delay: .21s; }
@keyframes rp-fpic-in { from { opacity: 0; transform: scale(.6) translateY(4px); } to { opacity: 1; transform: none; } }
.rp-grid-flag .rp-grid-head-pic { padding-left: 50px; }
.rp-cell-pic { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rp-fthumb { flex: none; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; background: #F3F4F6; box-shadow: 0 0 0 1px var(--ac-border); transition: transform .35s var(--ease-soft), box-shadow .35s ease; }
.rp-grid-row:hover .rp-fthumb { transform: scale(1.08) rotate(-3deg); box-shadow: 0 4px 10px rgba(27, 34, 48, .16); }
.rp-cell-key { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-fkey { flex: none; width: 22px; height: 22px; border-radius: 5px; overflow: hidden; background: #F3F4F6; }
.rp-fkey.is-round img { transform: scale(1.45); }
.is-open .rp-flag-panel .rp-grid-row { animation: rp-open .45s var(--ease-soft) backwards; }
.is-open .rp-flag-panel .rp-grid-row:nth-child(3) { animation-delay: .05s; }
.is-open .rp-flag-panel .rp-grid-row:nth-child(4) { animation-delay: .1s; }
.is-open .rp-flag-panel .rp-grid-row:nth-child(n+5) { animation-delay: .15s; }
@media (max-width: 560px) { .rp-fstack { display: none; } } /* a phone: the title needs the room */
@media (prefers-reduced-motion: reduce) {
  .rp-stack .rp-fpic, .is-open .rp-flag-panel .rp-grid-row { animation: none; }
  .rp-fthumb { transition: none; }
}
.rp-token-mark {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; background: var(--ac-fill); color: var(--ac-ink);
  box-shadow: 0 0 0 1px var(--ac-border); font-size: 13px; font-weight: 700;
}
.rp-token-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease-soft); }
.rp-token-mark.has-icon img { opacity: 1; }
.rp-token-mark.has-icon .rp-token-letter { visibility: hidden; }
.rp-tokens { padding: 12px 20px 16px 76px; }
.rp-grid-tokens .rp-grid-head, .rp-grid-tokens .rp-grid-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .8fr); }
.rp-grid-tokens .rp-grid-head { padding-bottom: 10px; }
.rp-grid-tokens .rp-grid-row { border-top-color: var(--hair); }
.rp-grid-tokens .rp-grid-row .rp-num { font-size: 17px; }
.rp-grid-row.is-own { opacity: .7; }
.rp-token { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rp-token > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.rp-token-symbol { font-size: 16px; }
.rp-token .rp-tag { font-size: 11px; padding: 1px 7px; }
.rp-share { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rp-share-value { font-size: 15px; font-weight: 700; color: var(--ac-ink); }
.rp-share-bar, .rp-progress { display: block; height: 6px; border-radius: 3px; background: var(--ac-fill); overflow: hidden; }
.rp-share-bar span, .rp-progress span { display: block; width: 0; height: 6px; border-radius: 3px; background: var(--ac-main); transition: width .9s cubic-bezier(.3, .7, .2, 1); }

/* chips */
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--ac-border);
  font-size: 13px; color: var(--ink); background: #FFFFFF; transition: background .2s ease, border-color .2s ease;
}
.page-report a.rp-chip { text-decoration: none; }
.page-report a.rp-chip:hover { background: rgba(27, 34, 48, .05); border-color: rgba(27, 34, 48, .45); }
.rp-chip-lg { padding: 5px 10px; font-size: 14px; border-color: var(--rule); max-width: 100%; overflow-wrap: anywhere; }
.rp-side .rp-chip { padding: 5px 9px; border-radius: 4px; border-color: var(--rule); font-size: 14px; }

/* --- how it is connected (28.10): an investigation graph (after MetaSleuth / Arkham). Small tags with real
   pictures, thin right-angled lines with arrows, the fact on the line. app.js places the tags, draws the
   lines, scales the stage into the window and fills the details. --- */
.rp-cg { container: cgraph / inline-size; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.rp-cg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid #E5E7EB; }
.rp-cg-summary { flex: 1 1 auto; font-size: 13px; color: var(--ink-3); }
.rp-cg-find { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid #D5DAE1; border-radius: 6px; font-size: 13px; color: var(--ink-3); }
.rp-cg-find:focus-within { border-color: var(--ink); }
.rp-cg-find input { width: 150px; border: 0; outline: 0; font: inherit; font-size: 13px; background: transparent; color: var(--ink); }
.rp-cg:not(.is-js) .rp-cg-find { display: none; }
.rp-cg-body { position: relative; display: flex; }
.rp-cg-view {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  background-color: #FCFCFB; background-image: radial-gradient(#E4E7EB 1px, transparent 1px); background-size: 16px 16px;
}
.rp-cg.is-js .rp-cg-view { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.rp-cg.is-dragging .rp-cg-view { cursor: grabbing; }
.rp-cg-stage { position: relative; transform-origin: 0 0; }
.rp-cg-col { position: absolute; top: 18px; margin: 0; font-family: var(--rp-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; white-space: nowrap; }
.rp-cg-col[hidden] { display: none; }
.rp-cg-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }

/* a tag: 44px tall, a coloured bar on the left, a picture, the name and one line under it */
.rp-cg-node {
  position: absolute; height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px;
  border: 1px solid #D5DAE1; border-left: 3px solid #D5DAE1; border-radius: 6px; background: #FFFFFF;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, opacity .25s ease;
}
.rp-cg-node[hidden] { display: none; }
.rp-cg-node:hover { border-color: var(--ac-main); box-shadow: 0 2px 8px rgba(27, 34, 48, .08); }
.rp-cg-node.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 34, 48, .12); }
.rp-cg-node.is-bar-money { border-left-color: var(--ac-main); }
.rp-cg-node.is-bar-dep { border-left-color: #C9BBA4; }
.rp-cg-node.is-bar-multisig { border-left-color: #12C26A; }
.rp-cg-node.is-bar-timelock { border-left-color: #5B7395; }
.rp-cg-node.is-bar-wallet { border-left-color: var(--bad); }
.rp-cg-node.is-bar-unknown { border-left-color: #A0A8B3; }
.rp-cg-node.is-bar-nobody { border-left-color: var(--ok); }
.rp-cg-node.is-bar-plain.is-key { border-left-color: #64748B; }
.rp-cg-node.is-stack { box-shadow: 3px 3px 0 -1px #FFFFFF, 3px 3px 0 0 #D5DAE1, 6px 6px 0 -1px #FFFFFF, 6px 6px 0 0 #E5E7EB; }
.rp-cg-node.is-more { border-style: dashed; border-left-style: solid; }
.rp-cg-node.is-dim { opacity: .55; }
.rp-cg-node.is-faded { opacity: .35; }
.rp-cg-node.is-match { border-color: var(--ac-main); box-shadow: 0 0 0 3px rgba(138, 109, 70, .25); }
.rp-cg-pic { flex: none; width: 24px; height: 24px; border-radius: 5px; overflow: hidden; background: #F3F4F6; }
.rp-cg-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-cg-pic.is-round img { transform: scale(1.45); } /* a round logo fills its square */
.rp-cg-pic.is-big { width: 36px; height: 36px; border-radius: 8px; }
.rp-cg-text { flex: 1; min-width: 0; }
.rp-cg-title { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; }
.rp-cg-title > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.rp-cg-usd { flex: none; margin-left: auto; color: var(--ac-main); }
.rp-cg-sub { display: block; font-family: var(--rp-mono); font-size: 10.5px; line-height: 1.4; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the lines: right angles, rounded corners, an arrow at the block they reach */
.rp-cg-edge { fill: none; stroke-linejoin: round; transition: opacity .25s ease; }
.rp-cg-edge.is-ctl { stroke: #64748B; stroke-width: 1.25; }
.rp-cg-edge.is-run { stroke: var(--ac-main); stroke-width: 1.75; stroke-dasharray: 6 4; animation: rp-cg-run 1.2s linear infinite; }
.rp-cg-edge.is-dot { stroke: #A0A8B3; stroke-width: 1; stroke-dasharray: 2 3; }
.rp-cg-edge.is-dep { stroke: #A0A8B3; stroke-width: 1; stroke-dasharray: 3 3; }
.rp-cg-arrow { stroke: none; transition: opacity .25s ease; }
.rp-cg-arrow.is-ctl { fill: #64748B; }
.rp-cg-arrow.is-run { fill: var(--ac-main); }
.rp-cg-arrow.is-dot, .rp-cg-arrow.is-dep { fill: #A0A8B3; }
.rp-cg-edge.is-other, .rp-cg-arrow.is-other { opacity: .5; }
.rp-cg-edge.is-faded, .rp-cg-arrow.is-faded { opacity: .35; }
@keyframes rp-cg-run { to { stroke-dashoffset: -20; } }

/* on a line: where the key was read (above it), what the key can do (under it) */
.rp-cg-label, .rp-cg-power { position: absolute; font-size: 10.5px; white-space: nowrap; transition: opacity .25s ease; }
.rp-cg-label { transform: translateY(-100%); padding: 0 4px; border-radius: 3px; background: rgba(252, 252, 251, .94); font-family: var(--rp-mono); line-height: 15px; color: #4B5563; }
.rp-cg-power { padding: 0 5px; border: 1px solid #F1CDB8; border-radius: 3px; background: var(--bad-soft); color: var(--bad-ink); line-height: 14px; }
.rp-cg-label[hidden], .rp-cg-power[hidden] { display: none; }
.rp-cg-label.is-faded, .rp-cg-power.is-faded { opacity: .35; }

.rp-cg-morekeys {
  position: absolute; display: flex; flex-direction: column; justify-content: center; height: 44px; box-sizing: border-box; padding: 0 12px;
  border: 1px dashed #A0A8B3; border-radius: 6px; background: #FFFFFF; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.rp-cg-morekeys[hidden] { display: none; }
.rp-cg-morekeys:hover { border-color: var(--ac-main); }
.rp-cg-morekeys b { font-size: 12.5px; }
.rp-cg-morekeys span { font-size: 10.5px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the window's furniture: a minimap, the zoom buttons, the hint */
.rp-cg-mini, .rp-cg-tools, .rp-cg-hint { display: none; }
.rp-cg.is-js .rp-cg-mini { display: block; position: absolute; left: 14px; bottom: 14px; width: 168px; height: 128px; border: 1px solid #D5DAE1; border-radius: 6px; background: rgba(255, 255, 255, .92); overflow: hidden; cursor: pointer; }
.rp-cg-mini i { position: absolute; height: 5px; border-radius: 1px; background: #C2C8D0; }
.rp-cg-mini i.is-bar-money { background: var(--ac-main); }
.rp-cg-mini i.is-bar-dep { background: #C9BBA4; }
.rp-cg-mini i.is-bar-multisig { background: #12C26A; }
.rp-cg-mini i.is-bar-timelock { background: #5B7395; }
.rp-cg-mini i.is-bar-wallet { background: var(--bad); }
.rp-cg-mini i.is-bar-nobody { background: var(--ok); }
.rp-cg-mini-view { position: absolute; border: 1.5px solid var(--ac-main); border-radius: 3px; background: rgba(138, 109, 70, .06); }
.rp-cg.is-js .rp-cg-tools { display: flex; flex-direction: column; position: absolute; right: 14px; bottom: 14px; border: 1px solid #D5DAE1; border-radius: 6px; background: #FFFFFF; overflow: hidden; }
.rp-cg-tools button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-bottom: 1px solid #E5E7EB; background: #FFFFFF; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.rp-cg-tools button:last-child { border-bottom: 0; }
.rp-cg-tools button:hover { background: var(--ac-soft); }
.rp-cg.is-js .rp-cg-hint { display: block; position: absolute; left: 196px; bottom: 18px; margin: 0; font-family: var(--rp-mono); font-size: 11px; color: #6B7280; pointer-events: none; }

/* the details: beside the graph when the section is wide, over its right side when it is not */
.rp-cg-insp { flex: none; width: 264px; box-sizing: border-box; padding: 18px 18px 24px; border-left: 1px solid #E5E7EB; background: #FFFFFF; overflow-y: auto; }
.rp-cg-insp.is-new [data-cg-insp-body] { animation: rp-cg-insp .3s var(--ease-soft) backwards; }
@keyframes rp-cg-insp { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.rp-cg-close { display: none; }
.rp-cg-empty { font-size: 13px; color: var(--ink-3); }
.rp-cg-kind { margin: 0 0 10px; font-family: var(--rp-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6B7280; }
.rp-cg-who { display: flex; align-items: center; gap: 10px; }
.rp-cg-who > div { min-width: 0; }
.rp-cg-who-title { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.rp-cg-who-addr { font-family: var(--rp-mono); font-size: 11.5px; color: #6B7280; overflow-wrap: anywhere; }
.rp-cg-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.rp-cg-badge { padding: 2px 8px; border-radius: 999px; background: var(--ac-fill); color: var(--ac-ink); font-size: 12px; font-weight: 700; }
.rp-cg-badge.is-hot { background: var(--bad-soft); color: var(--bad-ink); }
.rp-cg-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 10px; margin: 16px 0 0; font-size: 13px; }
.rp-cg-facts dt { color: #6B7280; }
.rp-cg-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.rp-cg-items { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; }
.rp-cg-items li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #E5E7EB; }
.rp-cg-items li[hidden] { display: none; }
.rp-cg-items li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rp-cg-items li > :last-child { flex: none; color: #6B7280; }
.rp-cg-later { margin-top: 6px; padding: 6px 10px; border: 1px dashed #A0A8B3; border-radius: 6px; background: #FFFFFF; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.rp-cg-later:hover { border-color: var(--ac-main); }
.rp-cg-links { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #E5E7EB; font-size: 13px; font-weight: 700; }

.rp-cg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12px; color: var(--ink-3); }
.rp-cg-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rp-cg-legend .rp-cg-edge.is-run { animation: none; }

/* no script: the tags as a plain list */
.rp-cg:not(.is-js) .rp-cg-stage { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.rp-cg:not(.is-js) .rp-cg-node { position: static; width: 100%; max-width: 360px; }
.rp-cg:not(.is-js) .rp-cg-col, .rp-cg:not(.is-js) .rp-cg-lines, .rp-cg:not(.is-js) .rp-cg-label, .rp-cg:not(.is-js) .rp-cg-power,
.rp-cg:not(.is-js) .rp-cg-insp, .rp-cg:not(.is-js) .rp-cg-morekeys { display: none; }

@container cgraph (max-width: 979px) {
  .rp-cg-insp { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: min(300px, 88%); border-left: 1px solid #D5DAE1; box-shadow: -8px 0 24px rgba(27, 34, 48, .1); }
  .rp-cg-insp:not(.is-open) { display: none; }
  .rp-cg-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 1px solid #E5E7EB; border-radius: 6px; background: #FFFFFF; color: var(--ink-3); cursor: pointer; }
  .rp-cg-kind { padding-right: 40px; }
}
@container cgraph (max-width: 560px) {
  .rp-cg.is-js .rp-cg-mini, .rp-cg.is-js .rp-cg-hint { display: none; }
  .rp-cg-find { flex: 1 1 100%; }
  .rp-cg-find input { width: 100%; }
  .rp-cg-insp { top: auto; left: 0; width: auto; max-height: 75%; border-left: 0; border-top: 1px solid #D5DAE1; box-shadow: 0 -8px 24px rgba(27, 34, 48, .1); }
}
@media (prefers-reduced-motion: reduce) {
  .rp-cg-edge.is-run, .rp-cg-insp.is-new [data-cg-insp-body] { animation: none; }
  .rp-cg-node, .rp-cg-edge, .rp-cg-arrow, .rp-cg-label, .rp-cg-power { transition: none; }
}

/* --- code versions --- */
.rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--rule); }
.rp-stat { padding: 14px 16px; border-right: 1px solid var(--rule); }
.rp-stat:last-child { border-right: 0; }
.rp-stat-value { font-size: 28px; font-weight: 700; }
.rp-stat-label { margin-top: 2px; font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.rp-stat.is-fresh .rp-stat-value, .rp-stat.is-wallet .rp-stat-value { color: var(--bad); }
.rp-deep-stats .rp-stat-value { font-size: 24px; }
.rp-log { display: flex; flex-direction: column; }
.rp-log-item { display: grid; grid-template-columns: 120px 28px minmax(0, 1fr); gap: 0 14px; }
.rp-log-when { padding-top: 2px; font-size: 14px; text-align: right; }
.rp-log-rail { display: flex; flex-direction: column; align-items: center; }
.rp-log-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.rp-log-line { flex: 1; width: 2px; background: var(--rule); }
.rp-log-body { padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.rp-log-title { font-size: 16px; font-weight: 700; }
.rp-log-text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rp-log-by { font-size: 13px; color: var(--ink-3); }
.rp-log-today .rp-log-body { gap: 4px; }
.rp-log-today .rp-log-dot { width: 14px; height: 14px; background: #FFFFFF; border: 3px solid #1F6A45; }
.rp-log-today .rp-log-line { background: repeating-linear-gradient(180deg, #1F6A45 0 6px, transparent 6px 11px); }
.rp-log-today .rp-log-title { color: #1F6A45; }
.rp-log-today.is-fresh .rp-log-dot { border-color: var(--bad-line); }
.rp-log-today.is-fresh .rp-log-line { background: repeating-linear-gradient(180deg, var(--bad-line) 0 6px, transparent 6px 11px); }
.rp-log-today.is-fresh .rp-log-title { color: var(--bad); }
.rp-log-item.is-fresh:not(.rp-log-today) .rp-log-dot { background: var(--bad-line); }
.rp-log-never .rp-log-rail { justify-content: flex-start; }
.rp-log-dot.is-hollow { width: 14px; height: 14px; background: transparent; border: 2px solid var(--tagline); }

/* --- what this site asks you to sign --- */
.rp-sign-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.rp-sign-note .icon { width: 16px; height: 16px; margin-top: 2px; }
.rp-signs { display: flex; flex-direction: column; }
.rp-sign { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--hair); }
.rp-sign-badge { margin-top: 2px; }
.rp-sign-tile { flex: 0 0 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--ac-fill); color: var(--ac-ink); }
.rp-sign-tile .icon { width: 18px; height: 18px; }
.rp-sign-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rp-sign-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rp-sign-head h3 { font-size: 17px; font-weight: 700; }
.rp-sign-meaning { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.rp-sign-badge { flex: none; display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--ac-fill); color: var(--ac-ink); font-size: 13px; font-weight: 700; }
.rp-sign.tone-high > .rp-sign-tile, .rp-sign.tone-high > .rp-sign-badge { background: var(--bad-bg); color: var(--bad); }
.rp-sign.tone-high > .rp-sign-badge { color: var(--bad-ink); }
.rp-sign.tone-medium > .rp-sign-tile, .rp-sign.tone-medium > .rp-sign-badge { background: #FDF0DF; color: #8A5A12; }
.rp-sign .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.rp-sign .facts > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp-sign .facts dt { color: var(--ink-3); }
.rp-sign .facts dd { color: var(--ink); }
.rp-sign .facts .quote { font-style: italic; }
.rp-sign .chip { padding: 1px 8px; border-radius: 6px; border: 1px solid var(--ac-border); background: #FFFFFF; font-size: 13px; text-decoration: none; }
.rp-sign .chip .icon { width: 12px; height: 12px; }
.rp-sign .ext { font-size: 12px; }
.rp-sign .ext .icon { width: 11px; height: 11px; }
.rp-sign-calls { width: 100%; margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--ac-border); }
.rp-sign-calls .rp-sign { padding: 10px 0; }
.rp-tech { margin-top: 4px; font-size: 13px; }
.rp-tech summary, .rp-more-details summary { cursor: pointer; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-decoration-color: rgba(27, 34, 48, .35); }
.rp-tech .facts { margin-top: 6px; }
.rp-in { animation: rp-open .5s var(--ease-soft) both; }
.rp-signs .rp-sign:nth-child(2) { animation-delay: .08s; }
.rp-signs .rp-sign:nth-child(3) { animation-delay: .16s; }
.rp-signs .rp-sign:nth-child(n+4) { animation-delay: .24s; }

/* --- contracts --- */
.rp-table-wrap { overflow-x: auto; }
.rp-contracts { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-contracts thead tr { text-align: left; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.rp-contracts th { padding: 8px 10px; font-weight: 700; }
.rp-contracts th:first-child { padding-left: 0; }
.rp-contracts th:last-child { padding-right: 0; }
.rp-contracts tbody tr { border-bottom: 1px solid var(--hair); vertical-align: top; }
.rp-contracts td { padding: 14px 10px; }
.rp-contracts td:first-child { padding-left: 0; max-width: 440px; }
.rp-contracts td:last-child { padding-right: 0; white-space: nowrap; color: var(--ink-2); }
@media (max-width: 720px) {
  /* a card per contract: the name on its own line, the code, keys and age badges under it */
  .rp-contracts thead { display: none; }
  .rp-contracts, .rp-contracts tbody { display: block; }
  .rp-contracts tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 0; }
  .rp-contracts td, .rp-contracts td:first-child, .rp-contracts td:last-child { display: block; padding: 0; max-width: none; }
  .rp-contracts td:first-child { flex: 1 1 100%; margin-bottom: 4px; }
}
.rp-c-wrap { display: flex; gap: 12px; align-items: flex-start; }
.rp-role { flex: 0 0 36px; height: 36px; border-radius: 9px; background: var(--ac-fill); color: var(--ac-ink); display: flex; align-items: center; justify-content: center; }
.rp-role .icon { width: 18px; height: 18px; }
.rp-c-text { min-width: 0; overflow-wrap: anywhere; }
.rp-c-ref { margin-top: 2px; font-size: 14px; }
.rp-c-desc { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rp-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; box-sizing: border-box; width: 116px; padding: 3px 8px;
  border-radius: 999px; background: var(--ac-fill); color: var(--ac-ink); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.rp-badge .icon { width: 15px; height: 15px; }
.rp-badge.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.rp-badge.is-bad { background: var(--bad-bg); color: var(--bad-ink); }
.rp-badge.is-soft { background: var(--ac-soft); color: var(--ink-2); }
.rp-badge-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 2px; padding: 0 4px;
  box-sizing: border-box; border-radius: 999px; background: #FFFFFF; color: var(--ac-ink); font-size: 11px; font-weight: 700;
}
.rp-age { display: inline-flex; align-items: center; gap: 5px; }
.rp-age .icon { width: 14px; height: 14px; }

/* --- contracts, one list (28.10): the top ones and the full check's groups; a row opens in place --- */
.rp-cl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.rp-cl-head .rp-sub { margin-top: 4px; }
.rp-cl-find { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; color: var(--ink-3); background: #FFFFFF; }
.rp-cl-find:focus-within { border-color: var(--ink); }
.rp-cl-find .icon { width: 15px; height: 15px; }
.rp-cl-find input { width: 180px; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.rp-cl { display: flex; flex-direction: column; gap: 14px; }
.rp-cl-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.rp-cl-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; color: var(--ink); text-decoration: none; font-size: 14px; transition: background .35s var(--ease-soft); }
.rp-cl-switch a + a { border-left: 1px solid var(--ink); }
.rp-cl-switch a span { opacity: .75; }
.rp-cl-switch a[aria-current] { background: var(--ink); color: #FFFFFF; font-weight: 700; }
.rp-cl-switch a:not([aria-current]):hover { background: var(--ac-soft); color: var(--ink); }
.page-report a.rp-cl-other { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.rp-cl-toggle { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: #C9D1DB; transition: background .3s ease; }
.rp-cl-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(27, 34, 48, .25); transition: left .3s var(--ease-soft); }
.rp-cl-other.is-on .rp-cl-toggle { background: var(--ink); }
.rp-cl-other.is-on .rp-cl-toggle::after { left: 18px; }
.rp-cl-box { border: 1px solid var(--ac-border); border-radius: 12px; overflow: hidden; background: #FFFFFF; }
.rp-cl-cols, .rp-cl-sum { display: grid; grid-template-columns: minmax(0, 1fr) 112px 132px 92px 28px; gap: 12px; align-items: center; padding: 10px 16px; }
.rp-cl-cols { background: var(--ac-soft); border-bottom: 1px solid var(--ac-border); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.rp-cl-cols > :first-child { padding-left: 50px; }
.rp-cl-part { padding: 14px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-main); }
.rp-cl-part span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rp-cl-row + .rp-cl-part { border-top: 1px solid var(--ac-border); }
.rp-cl-row { border-top: 1px solid #EEE9E1; }
.rp-cl-part + .rp-cl-row { border-top: 0; }
.rp-cl-row.is-other { opacity: .75; }
.rp-cl-sum { cursor: pointer; list-style: none; transition: background .3s var(--ease-soft); animation: rp-open .4s var(--ease-soft) backwards; }
.rp-cl-sum::-webkit-details-marker { display: none; }
.rp-cl-sum:hover, .rp-cl-row[open] > .rp-cl-sum { background: var(--ac-soft); }
.rp-cl-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rp-cl-meta { display: contents; } /* its three cells are the grid's; on a phone they wrap under the name */
.rp-cl-pic { position: relative; flex: none; width: 38px; height: 38px; border-radius: 9px; background: #F3F4F6; transition: transform .35s var(--ease-soft); }
.rp-cl-pic img { position: relative; z-index: 1; display: block; width: 38px; height: 38px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--ac-border); }
.rp-cl-pic.is-stack::after { content: ""; position: absolute; inset: 0; border-radius: 9px; background: #FFFFFF; box-shadow: 0 0 0 1px #D5DAE1; transform: translate(4px, 4px); transition: transform .35s var(--ease-soft); }
.rp-cl-sum:hover .rp-cl-pic { transform: scale(1.08) rotate(-3deg); }
.rp-cl-sum:hover .rp-cl-pic.is-stack::after { transform: translate(6px, 6px); }
.rp-cl-text { min-width: 0; display: flex; flex-direction: column; }
.rp-cl-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 15px; }
.rp-cl-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cl-title .rp-tag { flex: none; font-size: 11px; padding: 0 6px; }
.rp-cl-copies { flex: none; color: var(--ac-main); font-weight: 700; font-size: 14px; }
.rp-cl-where { font-family: var(--rp-mono); font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cl-code { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.rp-cl-code i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.rp-cl-code.is-bad { color: var(--bad); font-weight: 700; }
.rp-cl-code.is-bad i { background: var(--bad-line); }
.rp-cl-key { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.rp-cl-key > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cl-key.is-bad { color: var(--bad); font-weight: 700; }
.rp-cl-issues { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.rp-cl-issues .icon { width: 15px; height: 15px; flex: none; color: var(--ok); stroke-width: 2.4; }
.rp-cl-issues.is-bad { color: var(--bad); font-weight: 700; }
.rp-cl-issues.is-bad .icon { color: var(--bad-line); stroke-width: 2.2; }
.rp-cl-chev { flex: 0 0 28px; width: 28px; height: 28px; }
.rp-cl-chev .icon { width: 15px; height: 15px; }
.rp-cl-row[open] .rp-cl-chev .icon { transform: rotate(180deg); }
.rp-cl-body { padding: 4px 16px 16px 66px; background: var(--ac-soft); display: flex; flex-direction: column; gap: 10px; animation: rp-open .45s var(--ease-soft) backwards; }
.rp-cl-desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rp-cl-found { font-size: 14px; color: var(--ink-2); }
.rp-cl-found span { display: block; font-size: 12px; font-weight: 700; color: var(--bad); }
.rp-cl-facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.rp-cl-facts dt { color: var(--ink-3); }
.rp-cl-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.rp-cl-members { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rp-cl-empty { padding: 16px; }
.rp-cl-offer { padding: 0 16px 16px; }
.rp-cl-offer .rp-deep-offer { margin-top: 10px; }
.rp-cl-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--ac-border); background: var(--ac-soft); font-size: 14px; }
.rp-cl-pages { display: inline-flex; align-items: center; gap: 6px; }
.page-report a.rp-cl-page, .rp-cl-page { display: inline-grid; place-items: center; min-width: 34px; height: 34px; box-sizing: border-box; padding: 0 8px; border: 1px solid #C9D1DB; border-radius: 6px; background: #FFFFFF; color: var(--ink); font-weight: 700; text-decoration: none; }
.page-report a.rp-cl-page:hover { border-color: var(--ink); }
.page-report a.rp-cl-page[aria-current] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.rp-cl-page.is-off { border-color: var(--hair); color: var(--tagline); }
.rp-cl-gap { width: 20px; text-align: center; color: var(--ink-3); }
@media (max-width: 760px) {
  .rp-cl-cols { display: none; }
  /* a phone: the name and the arrow on the first line, code, key and issues wrapping under the name */
  .rp-cl-sum { grid-template-columns: minmax(0, 1fr) 28px; row-gap: 6px; }
  .rp-cl-chev { grid-row: 1; grid-column: 2; }
  .rp-cl-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-left: 50px; }
  .rp-cl-body { padding-left: 16px; }
  .rp-cl-find, .rp-cl-find input { width: 100%; }
  .rp-cl-find { box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-cl-sum, .rp-cl-body { animation: none; }
  .rp-cl-pic, .rp-cl-pic.is-stack::after, .rp-cl-toggle, .rp-cl-toggle::after { transition: none; }
}

/* full check */
.rp-deep { display: flex; flex-direction: column; gap: 14px; }
.rp-deep-offer { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 18px 20px; border: 1px dashed var(--tagline); border-radius: 6px; }
.rp-deep-offer-text { flex: 1 1 320px; }
.rp-deep-offer-text .rp-muted { margin-top: 4px; font-size: 14px; }
.rp-deep-progress { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--ac-border); border-radius: 6px; background: var(--ac-soft); }
.rp-deep-progress p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.rp-deep-progress p.rp-muted { font-size: 14px; }
.rp-pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: rp-pulse 2.4s ease-out infinite; }
@keyframes rp-pulse { 0% { box-shadow: 0 0 0 0 rgba(27, 34, 48, .5); } 100% { box-shadow: 0 0 0 20px rgba(27, 34, 48, 0); } }
.rp-deep-result { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.rp-deep-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.rp-deep-filter .rp-input { flex: 0 1 360px; }
.rp-check-label { font-size: 14px; }
.rp-grid-deep .rp-grid-head, .rp-grid-deep .rp-grid-row { grid-template-columns: minmax(0, 1.6fr) 110px minmax(0, 1fr) 90px; align-items: start; }
.rp-grid-deep .rp-grid-row { border-top-color: var(--hair); font-size: 14px; }
.rp-deep-group .rp-cell-name { gap: 2px; }
.rp-deep-ref { font-size: 13px; }
.rp-deep-issues { font-size: 14px; color: var(--ink-2); }
.rp-more-details ul { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rp-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rp-pages { display: inline-flex; align-items: center; gap: 10px; }

/* --- side: links --- */
.rp-links { display: flex; flex-direction: column; gap: 8px; }
.page-report a.rp-link-card {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--ac-border);
  color: var(--ink); text-decoration: none; font-size: 15px; transition: background .2s ease, border-color .2s ease;
}
.page-report a.rp-link-card:hover { background: rgba(27, 34, 48, .05); border-color: rgba(27, 34, 48, .45); }
.rp-link-icon { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--ac-fill); color: var(--ac-ink); display: flex; align-items: center; justify-content: center; }
.rp-link-icon .icon { width: 16px; height: 16px; }
.rp-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-link-text .rp-muted { font-size: 13px; }
.rp-link-card > .icon { width: 14px; height: 14px; color: var(--ink-3); }

/* --- the sheet's footer --- */
.rp-feedback { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding: 20px 32px; border-top: 1px solid var(--rule); background: var(--ac-soft); }
.rp-feedback > p { flex: 1 1 480px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.rp-mistake { flex: 1 1 100%; }
.rp-mistake summary { cursor: pointer; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(27, 34, 48, .35); }
.rp-mistake-form { display: grid; gap: 8px; max-width: 520px; margin-top: 14px; }
.rp-mistake-form label { font-size: 14px; font-weight: 700; }
.rp-mistake-form label .rp-muted { font-weight: 400; }
.rp-mistake[open] .rp-mistake-form { animation: rp-open .45s var(--ease-soft) both; }

/* --- narrow screens --- */
@media (max-width: 720px) {
  .rp-meta, .rp-verdict, .rp-notices, .rp-section, .rp-feedback { padding-left: 16px; padding-right: 16px; }
  .rp-verdict { padding-top: 24px; padding-bottom: 24px; }
  .rp-verdict-label { font-size: 32px; }
  .rp-index-number { font-size: 72px; }
  .rp-side { border-left: 0; border-top: 1px solid var(--rule); }
  .rp-side-section { padding-left: 16px; padding-right: 16px; }
  .rp-acc-row { padding-left: 18px; padding-right: 14px; gap: 10px; }
  .rp-flag-panel { padding-left: 18px; padding-right: 14px; }
  .rp-tokens { padding-left: 16px; padding-right: 16px; }
  .rp-grid-head { display: none; }
  .rp-grid-flag .rp-grid-row, .rp-grid-tokens .rp-grid-row, .rp-grid-deep .rp-grid-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .rp-grid-row > :first-child { grid-column: 1 / -1; }
  .rp-grid-row [data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 400; font-size: 12px; }
  .rp-grid-row .rp-num { text-align: left; }
  .rp-found { grid-template-columns: 1fr; gap: 2px; }
  .rp-found dd + dt { margin-top: 10px; }
  .rp-log-item { grid-template-columns: 76px 22px minmax(0, 1fr); gap: 0 10px; }
  .rp-stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .rp-stat:last-child { border-bottom: 0; }
  .rp-tab { border-right: 0; border-bottom: 1px solid var(--rule); }
  .rp-key-usd { font-size: 22px; }
  .page-report .nav-scan { order: 3; flex-basis: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-acc-panel, .rp-tab-panel, .rp-edge.is-flow, .rp-edges, .rp-pop, .rp-node-pulse, .rp-map-panel.is-shown,
  .rp-map-panel.is-shown .rp-map-tile .icon, .rp-map-tile::after, .rp-pulse-dot, .rp-in, .rp-mistake[open] .rp-mistake-form { animation: none; }
  .rp-acc-row, .rp-acc-row *, .rp-tab, .rp-share-bar span, .rp-progress span, .rp-stack .rp-token-mark { transition: none; }
}

/* --- the progress page (scan in progress, 24.10): the report's sheet while it is made. The card holds the
   stage now running, a six-part bar and the stages as a log; the Risk Index waits; the report's parts and
   checklist rows below fill in stage by stage (swapped out of band by the poll). Markup: progress.html,
   _progress.html, _scan_parts.html. The bar's sweep and fill animations live in app.css. --- */
.rp-scan-chip .rp-scan-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-main); animation: rp-scan-pulse 1.6s var(--ease-soft) infinite; }
.rp-scan-chip-state { color: var(--ink-3); }
@keyframes rp-scan-pulse { from { box-shadow: 0 0 0 0 rgba(138, 109, 70, .45); } to { box-shadow: 0 0 0 9px rgba(138, 109, 70, 0); } }
.rp-scan-card .rp-verdict-main { flex-basis: 520px; gap: 16px; }
.page-scan .scan-live { gap: 16px; max-width: 620px; }
.page-scan .scan-now { gap: 8px; }
.page-scan .scan-now.is-new { animation: rp-scan-in .5s var(--ease-soft) backwards; }
@keyframes rp-scan-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-scan .scan-now-label { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.page-scan .scan-now-text { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.page-scan .seg { height: 6px; border-radius: 3px; background-color: var(--ac-fill); }
.page-scan .seg-done { background-color: var(--ac-main); }
.page-scan .seg-just-done { background: linear-gradient(var(--ac-main), var(--ac-main)) no-repeat 0 0 / 100% 100%, var(--ac-line); }
.page-scan .seg-active {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent) no-repeat, var(--ac-line);
  background-size: 45% 100%, auto;
}
.page-scan .steps { margin-top: 4px; border-top: 0; }
.page-scan .step { grid-template-columns: 20px minmax(0, 1fr) auto; align-items: start; gap: 0 12px; padding: 0; border: 0; font-size: 16px; color: var(--ink-3); }
.page-scan .step-done, .page-scan .step-active { color: var(--ink); }
.page-scan .step-active .step-label { font-weight: 700; }
.page-scan .step-icon { display: flex; flex-direction: column; align-items: center; align-self: stretch; width: 20px; height: auto; padding-top: 4px; }
.page-scan .step-dot { flex: 0 0 14px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--ac-line); }
.page-scan .step-done .step-dot { background: var(--ac-main); border-color: var(--ac-main); }
.page-scan .step-active .step-dot { border-color: var(--ac-main); animation: rp-scan-pulse 1.6s var(--ease-soft) infinite; }
.page-scan .just-done .step-dot { animation: rp-scan-pop .5s var(--ease-soft) both; }
@keyframes rp-scan-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.page-scan .step-rail { flex: 1; width: 2px; background: var(--ac-border); }
.page-scan .step-done .step-rail { background: var(--ac-main); }
.page-scan .step:last-child .step-rail { background: transparent; }
.page-scan .step-label { padding-bottom: 14px; }
.page-scan .step-detail { padding-top: 1px; font-size: 14px; color: var(--ac-ink); white-space: nowrap; }
.rp-scan-note { font-size: 14px; color: var(--ink-3); }
.rp-scan-number { display: flex; align-items: baseline; gap: 10px; font-size: 18px; color: var(--ink-3); }
.rp-scan-dash { font-size: 64px; line-height: .9; font-weight: 700; color: var(--ac-faint); }
.rp-scan-scale { position: relative; padding-top: 18px; }
.rp-scan-track { display: grid; grid-template-columns: 30fr 30fr 40fr; height: 14px; border: 1px solid var(--ac-faint); opacity: .55; }
.rp-scan-track span:nth-child(1) { background: var(--zone-low); }
.rp-scan-track span:nth-child(2) { background: var(--zone-medium); border-left: 1px solid var(--ac-faint); }
.rp-scan-track span:nth-child(3) { background: var(--zone-high); border-left: 1px solid var(--ac-faint); }
.rp-scan-sweep { position: absolute; top: 0; left: 4%; width: 2px; height: 34px; background: var(--ac-main); opacity: .7; animation: rp-scan-sweep 3.2s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes rp-scan-sweep { 0%, 100% { left: 4%; } 50% { left: 92%; } }
.rp-scan-labels { display: grid; grid-template-columns: 30fr 30fr 40fr; margin-top: 6px; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.rp-scan-labels span:last-child { text-align: right; }
.rp-scan-how { padding: 12px 14px; border-radius: 6px; border: 1px solid var(--ac-border); background: var(--ac-soft); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rp-scan-parts { align-items: stretch; }
.rp-scan-part { padding: 28px 32px; }
.rp-scan-part h2 { font-size: 22px; }
.rp-scan-part.is-waiting h2 { color: var(--ink-3); }
.rp-scan-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--ac-soft); color: var(--ink-3); font-size: 13px; font-weight: 700;
}
.rp-scan-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ac-line); }
.is-running .rp-scan-dot { background: var(--ac-main); animation: rp-scan-pulse 1.6s var(--ease-soft) infinite; }
.is-ready .rp-scan-dot { background: var(--ok); }
.rp-scan-part.is-running .rp-scan-status { background: var(--ac-fill); color: var(--ac-ink); }
.rp-scan-part.is-ready .rp-scan-status { background: var(--ok-bg); color: var(--ok-ink); }
.rp-scan-skeleton { display: flex; flex-direction: column; gap: 10px; }
.rp-scan-skeleton span {
  height: 18px; border-radius: 6px;
  background: linear-gradient(90deg, var(--ac-fill) 0, var(--ac-soft) 50%, var(--ac-fill) 100%) 0 0 / 200px 100% no-repeat, var(--ac-fill);
  animation: rp-scan-shimmer 1.6s ease-in-out infinite;
}
.rp-scan-skeleton span:nth-child(1) { width: 72%; }
.rp-scan-skeleton span:nth-child(2) { width: 54%; }
.rp-scan-skeleton span:nth-child(3) { width: 63%; }
.is-waiting .rp-scan-skeleton { opacity: .55; }
@keyframes rp-scan-shimmer { from { background-position: -200px 0, 0 0; } to { background-position: calc(200px + 100%) 0, 0 0; } }
.rp-scan-checks li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.rp-scan-checks .rp-scan-dot { width: 8px; height: 8px; }
.rp-scan-check-title { flex: 1; }
.rp-scan-checks .is-waiting .rp-scan-check-title { color: var(--ink-3); }
.rp-scan-check-state { font-size: 13px; color: var(--ink-3); }
/* live findings (D13): what the pipeline has found so far, newest first */
.rp-scan-feed { padding: 28px 32px; }
.rp-scan-feed h2 { font-size: 22px; }
.rp-scan-feed .rp-scan-status { background: var(--ac-fill); color: var(--ac-ink); }
.rp-scan-feed .rp-scan-dot { background: var(--ac-main); animation: rp-scan-pulse 1.6s var(--ease-soft) infinite; }
.rp-feed { margin-top: 4px; }
.rp-feed-item { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.45; }
.rp-feed-item:first-child { border-top: 0; }
.rp-feed-item.is-new { animation: rp-scan-in .5s var(--ease-soft) backwards; }
.rp-feed-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ac-line); transform: translateY(-1px); }
.rp-feed-text { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.rp-feed-at { flex: none; font-size: 13px; color: var(--ink-3); }
.tone-bad .rp-feed-dot { background: var(--bad); }
.tone-bad .rp-feed-text { color: var(--bad-ink); font-weight: 700; }
.tone-ok .rp-feed-dot { background: var(--ok); }
.rp-feed-empty { font-size: 15px; color: var(--ink-3); }
@media (max-width: 720px) {
  .page-scan .scan-now-label { font-size: 30px; }
  .page-scan .scan-now-text { font-size: 16px; }
  .rp-scan-part, .rp-scan-feed { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-scan-chip .rp-scan-live, .page-scan .scan-now.is-new, .page-scan .step-active .step-dot, .page-scan .just-done .step-dot,
  .rp-scan-sweep, .is-running .rp-scan-dot, .rp-scan-skeleton span, .rp-feed-item.is-new, .rp-scan-feed .rp-scan-dot { animation: none; }
}

/* --- the other public pages on the report's sheet (24.10): address profile, messages, roadmap, terms.
   Markup: address.html, message.html, roadmap.html, terms.html; classes start with pg-. --- */
.pg-tone { flex: none; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ac-fill); color: var(--ac-ink); white-space: nowrap; }
.pg-tone-clean { background: var(--ok-bg); color: var(--ok-ink); }
.pg-tone-medium { background: #FDF0DF; color: #8A5A12; }
.pg-tone-high { background: var(--bad-bg); color: var(--bad-ink); }
.pg-tone-unknown, .pg-tone-none { background: var(--ac-fill); color: var(--ac-ink); }

/* address profile */
.pg-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; padding: 32px; border-bottom: 1px solid var(--rule); }
.pg-head-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pg-head-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pg-kind { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--ac-fill); color: var(--ac-ink); }
.pg-kind .icon { width: 17px; height: 17px; }
.pg-title { font-size: 40px; line-height: 1.1; font-weight: 700; }
.pg-address { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; color: var(--ink-2); }
.pg-notice { margin-top: 6px; padding: 12px 14px; border-radius: 8px; background: var(--ac-soft); border: 1px solid var(--ac-border); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pg-body { align-items: stretch; }
.pg-body .rp-section { padding: 28px 32px; gap: 12px; }
.pg-body .rp-head h2 { font-size: 22px; }
.pg-path { background: var(--bad-soft); }
.pg-path .rp-head h2 { color: var(--bad-ink); }
.pg-chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.pg-step { padding: 6px 10px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--bad-edge); }
.page-report a.pg-step-scam { background: var(--bad-bg); color: var(--bad-ink); font-weight: 700; text-decoration: none; }
.pg-arrow { color: var(--bad); }
.pg-list li { border-top: 1px solid var(--hair); }
.page-report .pg-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 16px; gap: 14px; align-items: center;
  padding: 12px; margin: 0 -12px; color: var(--ink); text-decoration: none; transition: background .45s var(--ease-soft);
}
.page-report .pg-row:hover { background: var(--ac-soft); color: var(--ink); }
.pg-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-row-sub { font-size: 14px; color: var(--ink-3); }
.pg-go { display: inline-flex; color: var(--ink-3); transition: transform .4s var(--ease-soft), color .4s ease; }
.pg-go .icon { width: 16px; height: 16px; }
.pg-row:hover .pg-go { transform: translateX(3px); color: var(--ink); }
.pg-domain { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 0; }
.pg-labels li { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.45; }
.pg-label-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* messages */
.pg-message { max-width: 640px; margin: 56px auto 80px; padding: 40px 40px 36px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; display: flex; flex-direction: column; gap: 16px; animation: rp-scan-in .55s var(--ease-soft) backwards; }
.pg-message-head { display: flex; align-items: center; gap: 16px; }
.pg-message-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bad-bg); color: var(--bad); }
.pg-message-icon .icon { width: 24px; height: 24px; }
.pg-message h1 { font-size: 32px; line-height: 1.15; font-weight: 700; }
.pg-message-text { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.pg-message-detail { padding: 10px 12px; border-radius: 6px; background: var(--ac-soft); border: 1px solid var(--ac-border); font-size: 14px; color: var(--ink-3); }

/* roadmap */
.pg-roadmap { margin-bottom: 72px; }
.pg-roadmap-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; padding: 24px 0 28px; }
.pg-roadmap-head > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.pg-roadmap-head h1 { font-size: 48px; line-height: 1.05; font-weight: 400; letter-spacing: -.015em; }
.pg-roadmap-head p { max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.pg-accent { color: var(--ac-main); }
.pg-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 28px; }
.page-report .pg-strip-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--hair);
  color: var(--ink); text-decoration: none; transition: border-color .35s ease, transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.page-report .pg-strip-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27, 34, 48, .08); color: var(--ink); }
.page-report .pg-strip-card.is-next { background: var(--ac-soft); border: 2px solid var(--ac-main); padding: 13px 13px 15px; }
.pg-strip-bar { display: block; height: 6px; border-radius: 3px; background: var(--ac-border); }
.is-done .pg-strip-bar { background: var(--ac-main); }
.is-next .pg-strip-bar {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent) no-repeat, var(--ac-main);
  background-size: 40% 100%, auto; animation: pg-bar 1.8s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes pg-bar { from { background-position: -120% 0, 0 0; } to { background-position: 220% 0, 0 0; } }
.pg-strip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pg-strip-version { font-size: 16px; font-weight: 700; }
.pg-strip-state { font-size: 12px; font-weight: 700; color: var(--ac-main); }
.is-done .pg-strip-state { color: var(--ok-ink); }
.pg-strip-label { font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.is-planned .pg-strip-version, .is-planned .pg-strip-label { color: var(--ink-3); }
.pg-strip-when { font-size: 12px; color: var(--ink-3); }
.pg-phases { display: flex; flex-direction: column; gap: 16px; }
.pg-phase { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 18px; scroll-margin-top: 24px; }
.pg-phase-rail { display: flex; flex-direction: column; align-items: center; padding-top: 30px; }
.pg-phase-node { flex: 0 0 18px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--ac-line); }
.is-done .pg-phase-node { background: var(--ac-main); border-color: var(--ac-main); }
.is-next .pg-phase-node { border-color: var(--ac-main); }
.pg-phase-line { flex: 1; width: 2px; margin-top: 6px; background: var(--ac-border); }
.is-done .pg-phase-line { background: var(--ac-main); }
.pg-phase:last-child .pg-phase-line { background: transparent; }
.pg-phase-card { background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.is-next .pg-phase-card { border: 2px solid var(--ac-main); padding: 25px 27px; }
.pg-phase-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.pg-phase-version { font-size: 15px; font-weight: 700; }
.pg-phase-tag { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--ac-soft); color: var(--ink-3); }
.is-done .pg-phase-tag { background: var(--ok-bg); color: var(--ok-ink); }
.is-next .pg-phase-tag { background: var(--ac-fill); color: var(--ac-ink); }
.pg-phase .pg-phase-pro { background: var(--ink); color: #FFFFFF; }
.pg-phase-when { font-size: 14px; color: var(--ink-3); }
.pg-phase-card h2 { font-size: 24px; font-weight: 700; }
.pg-phase-summary { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pg-phase-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; margin-top: 4px; }
.pg-phase-items li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.45; }
.pg-phase-mark { flex: none; margin-top: 1px; font-weight: 700; color: var(--ac-faint); }
.is-done .pg-phase-mark { color: var(--ok-ink); }
.is-next .pg-phase-mark { color: var(--ac-main); }
.pg-phase-join { margin-top: 6px; padding: 18px; border-radius: 8px; background: var(--ac-soft); border: 1px solid var(--ac-border); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.pg-phase-join p span { color: var(--ink-3); }
.pg-phase-join .waitlist-form { margin-top: 0; }
.pg-phase-join .field { flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 0; border: 0; background: none; }
.pg-phase-join .field-main { flex: 1 1 420px; align-items: flex-end; gap: 10px; border: 0; }
.pg-phase-join .waitlist-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.pg-phase-join .channel-pick { flex: 0 0 190px; flex-direction: column; gap: 6px; border-right: 0; }
.pg-phase-join .channel-pick select, .pg-phase-join .channel-button {
  width: 100%; height: 40px; box-sizing: border-box; border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF; font-size: 15px;
}
.pg-phase-join .channel-pick:not(.is-enhanced)::after { top: auto; bottom: 17px; }
.pg-phase-join .channel-menu { top: calc(100% + 6px); background: #FFFFFF; border-color: var(--rule); box-shadow: 0 12px 28px rgba(27, 34, 48, .14); }
.pg-phase-join .field-main > .waitlist-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pg-phase-join .field input { flex: 1 1 200px; font-family: var(--rp-font); height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; background: #FFFFFF; font-size: 15px; }
.pg-phase-join .field input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.pg-phase-join .btn { height: 40px; padding: 0 18px; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-size: 15px; font-weight: 700; }
.pg-roadmap-note { margin: 24px 0 0 46px; font-size: 14px; color: var(--ink-3); }

/* terms */
.pg-doc { max-width: 920px; margin: 24px auto 72px; padding: 40px 48px 32px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; }
.pg-doc-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.pg-doc-head h1 { font-size: 40px; line-height: 1.1; font-weight: 700; }
.pg-doc-lede { font-size: 18px; color: var(--ink-2); }
.pg-doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.page-report .pg-doc-nav a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ac-border); background: var(--ac-soft); font-size: 14px; text-decoration: none; transition: border-color .3s ease, background .3s ease; }
.page-report .pg-doc-nav a:hover { border-color: var(--ink); background: #FFFFFF; }
.pg-doc-section { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--hair); scroll-margin-top: 24px; }
.pg-doc-section h2 { font-size: 22px; font-weight: 700; }
.pg-doc-body { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.pg-doc-list li { position: relative; padding: 8px 0 8px 18px; }
.pg-doc-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--ac-main); }
.pg-doc-box { padding: 12px 14px; border-radius: 6px; background: var(--ac-soft); border: 1px solid var(--ac-border); font-size: 15px; }
.pg-doc-foot { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-3); }

@media (max-width: 900px) {
  .pg-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pg-head { padding: 24px 16px; }
  .pg-title { font-size: 30px; }
  .pg-body .rp-section { padding: 22px 16px; }
  .page-report .pg-row { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .page-report .pg-row > .pg-row-sub { display: none; }
  .pg-message { margin-top: 24px; padding: 28px 20px; }
  .pg-message h1 { font-size: 26px; }
  .pg-roadmap-head h1 { font-size: 36px; }
  .pg-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-phase { grid-template-columns: 18px minmax(0, 1fr); gap: 0 10px; }
  .pg-phase-card { padding: 20px 16px; }
  .pg-phase-items { grid-template-columns: minmax(0, 1fr); }
  .pg-phase-join .field-main { flex-basis: 100%; flex-direction: column; align-items: stretch; }
  .pg-phase-join .channel-pick { flex-basis: auto; }
  .pg-phase-join .btn { width: 100%; }
  .pg-roadmap-note { margin-left: 0; }
  .pg-doc { padding: 28px 18px; }
  .pg-doc-section { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-message, .is-next .pg-strip-bar { animation: none; }
  .pg-row, .pg-go, .pg-strip-card { transition: none; }
}

/* --- All reports (D13): the latest report of every dApp; the rows are home.css's hp-recent rows --- */
.pg-reports { margin: 24px auto 72px; padding: 36px 40px 28px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 6px; }
.pg-reports-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; }
.pg-reports-title { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-reports-title h1 { font-size: 40px; line-height: 1.1; font-weight: 700; }
.pg-reports-count { font-weight: 400; color: var(--ink-3); }
.pg-reports-title p { max-width: 60ch; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.pg-reports-search { flex: 1 1 300px; max-width: 420px; display: flex; gap: 8px; }
.pg-reports-search .rp-input { flex: 1; min-width: 0; }
.pg-reports-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.page-report a.pg-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rule); background: #FFFFFF; color: var(--ink-2); font-size: 15px; text-decoration: none;
  transition: border-color .3s ease, background .3s ease;
}
.page-report a.pg-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.page-report a.pg-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pg-chip-count { font-size: 13px; opacity: .8; }
.pg-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-faint); }
.pg-chip-high .pg-chip-dot { background: var(--bad); }
.pg-chip-medium .pg-chip-dot { background: var(--zone-medium); }
.pg-chip-clean .pg-chip-dot { background: var(--ok); }
.page-reports .hp-recent-list a:hover { background: var(--ac-soft); color: var(--ink); }
.pg-reports-pager { padding-top: 20px; }
.pg-reports-empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 32px; border: 1px dashed var(--ac-line); border-radius: 10px; background: var(--ac-soft); }
.pg-reports-empty .rp-strong { font-size: 18px; }
.pg-reports-empty p { color: var(--ink-3); }
@media (max-width: 720px) {
  .pg-reports { padding: 24px 16px; margin-top: 12px; }
  .pg-reports-title h1 { font-size: 30px; }
  .pg-reports-title p { font-size: 16px; }
  .pg-reports-search { max-width: none; }
}

/* Chain hubs, /chain/{slug} (2.11, SEO stage 4): "All reports" of one chain with totals and an explainer */
.pg-hub { display: flex; flex-direction: column; gap: 28px; }
.pg-hub-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); }
.pg-hub-crumbs a { color: var(--ink-3); text-decoration: none; }
.pg-hub-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pg-hub-crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.pg-hub-head { display: flex; flex-direction: column; gap: 12px; }
.pg-hub-head h1 { font-size: 40px; line-height: 1.1; font-weight: 700; }
.pg-hub-head p { max-width: 68ch; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.pg-hub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pg-hub-stats div { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 6px; }
.pg-hub-stats dt { font-size: 14px; color: var(--ink-3); }
.pg-hub-stats dd { order: -1; font-size: 30px; font-weight: 700; color: var(--ink); }
.pg-hub-stats .is-high dd { color: var(--bad-ink); }
.pg-hub-stats .is-medium dd { color: #8A5A12; }
.pg-hub-list { display: flex; flex-direction: column; gap: 14px; }
.pg-hub-list-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; }
.pg-hub-list-head h2, .pg-hub-two h2 { font-size: 24px; font-weight: 700; }
.pg-hub-list-head .pg-reports-chips { padding-bottom: 0; }
.pg-hub-note { font-size: 15px; color: var(--ink-3); }
.pg-hub-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.pg-hub-two section { display: flex; flex-direction: column; gap: 12px; }
.pg-hub-checks { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); list-style: disc; }
.pg-hub-faq { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.pg-hub-faq summary { display: flex; gap: 12px; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.pg-hub-faq summary::-webkit-details-marker { display: none; }
.pg-hub-faq summary .icon { flex: 0 0 16px; width: 16px; height: 16px; transition: transform .3s ease; }
.pg-hub-faq[open] summary .icon { transform: rotate(45deg); }
.pg-hub-faq p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pg-hub-others { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -48px auto 72px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 720px) {
  .pg-hub-head h1 { font-size: 30px; }
  .pg-hub-head p { font-size: 16px; }
  .pg-hub-stats { grid-template-columns: 1fr 1fr; }
  .pg-hub-two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pg-hub-faq summary .icon { transition: none; } }

/* Explainers, /learn/{slug} (4.11, SEO stage 4): one reading column inside the report sheet */
.pg-learn { padding: 40px 40px 36px; }
.pg-learn-col { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.pg-learn .tone-high { --lt-ink: #8A2E08; --lt-dot: #A33A0C; }
.pg-learn .tone-medium { --lt-ink: #8A5A12; --lt-dot: #E8C766; }
.pg-learn .tone-clean { --lt-ink: #1E6543; --lt-dot: #4FA97A; }
.pg-learn .tone-unknown { --lt-ink: #55432A; --lt-dot: #C7B597; }
.pg-learn-head { display: flex; flex-direction: column; gap: 14px; }
.pg-learn-head h1 { font-size: 40px; line-height: 1.12; font-weight: 700; }
.pg-learn-lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.pg-learn-meta { font-size: 14px; color: var(--ink-3); }
.pg-learn-short { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--ac-soft); border: 1px solid var(--ac-line); border-radius: 8px; }
.pg-learn-short h2 { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #55432A; }
.pg-learn-short p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.pg-learn-section { display: flex; flex-direction: column; gap: 12px; }
.pg-learn-section h2 { font-size: 26px; font-weight: 700; }
.pg-learn-section > p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.pg-learn-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pg-learn-kinds > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pg-learn-kind { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--lt-ink); }
.pg-learn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lt-dot); }
.pg-learn-steps { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 18px 40px; background: var(--ac-soft); border-radius: 8px; font-size: 16px; line-height: 1.5; list-style: decimal; }
.pg-learn-table { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; }
.pg-learn-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.pg-learn-table thead { background: var(--ac-soft); text-align: left; }
.pg-learn-table thead th, .pg-learn-table thead td { padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.pg-learn-table tbody th, .pg-learn-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.pg-learn-table tbody th { width: 28%; font-weight: 700; }
.pg-learn-table tbody td { color: var(--ink-2); }
.pg-learn-example { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 8px; }
.pg-learn-example-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.pg-learn-example-head h2 { font-size: 20px; font-weight: 700; }
.pg-learn-example-head span { font-size: 14px; color: var(--ink-3); }
.pg-learn-example dl { display: flex; flex-direction: column; gap: 10px; }
.pg-learn-example dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.pg-learn-example dt { font-size: 20px; font-weight: 700; color: var(--lt-ink); }
.pg-learn-example dd { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pg-learn-example > a { align-self: flex-start; font-size: 15px; font-weight: 700; }
.pg-learn-cta { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--ink); color: #FFFFFF; border-radius: 8px; }
.pg-learn-cta h2 { font-size: 22px; font-weight: 700; color: #FFFFFF; }
.pg-learn-cta p { font-size: 16px; line-height: 1.55; color: #D9DEE5; }
.pg-learn-cta form { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-learn-cta input { flex: 1 1 240px; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: #FFFFFF; font: inherit; font-size: 16px; color: var(--ink); }
.pg-learn-cta button { height: 44px; padding: 0 20px; border: 1px solid #FFFFFF; border-radius: 6px; background: transparent; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .3s ease, color .3s ease; }
.pg-learn-cta button:hover { background: #FFFFFF; color: var(--ink); }
.pg-learn-cta :focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.pg-learn-next { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.pg-learn-next > span { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.pg-learn-next > div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .pg-learn { padding: 24px 16px; }
  .pg-learn-head h1 { font-size: 30px; }
  .pg-learn-kinds { grid-template-columns: 1fr; }
  .pg-learn-table table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pg-learn-cta button { transition: none; } }

/* "Who can move the money" when the top contracts hold $0 (25.10) */
.rp-money-empty { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.rp-money-empty-sum { display: flex; flex-direction: column; gap: 2px; min-width: 150px; font-size: 14px; }
.rp-money-empty-usd { font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.rp-money-empty-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.rp-money-empty-others .rp-chip .rp-muted { font-weight: 400; }
.rp-money-empty-next {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--ac-border); border-radius: 8px; background: var(--ac-soft); font-size: 15px; color: var(--ink-2);
}
.rp-money-empty-next > span { flex: 1 1 320px; min-width: 0; }
@media (max-width: 480px) {
  /* Code versions on a phone: a narrow date column leaves the changes room to wrap */
  .rp-log-item { grid-template-columns: 76px 22px minmax(0, 1fr); gap: 0 10px; }
  .rp-log-when { font-size: 13px; }
}

/* Code versions (26.10): the newest days, then a break in the rail and "… N earlier code changes" */
.rp-log.is-folded .rp-log-later { display: none; }
.rp-log-later.is-new { animation: rp-open .45s var(--ease-soft) backwards; }
.rp-log-earlier .rp-log-body { padding-bottom: 22px; }
.rp-log-gap { justify-content: flex-start; gap: 5px; padding-top: 4px; }
.rp-log-gap span { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }
.rp-log-show {
  align-self: flex-start; margin-left: -10px; padding: 2px 10px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink-3); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: background .3s ease, color .3s ease;
}
.rp-log-show:hover { background: var(--ac-soft); color: var(--ink); text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .rp-log-later.is-new { animation: none; } }

/* The full check at the top of the report (26.10): its progress while it runs, "done" a moment after */
.rp-deep-top { padding: 20px 32px 0; }
.page-report a.rp-deep-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 32px 12px;
  border-bottom: 1px solid var(--ok-edge); background: var(--ok-bg); color: var(--ink); text-decoration: none;
  animation: rp-strip-out .6s var(--ease-soft) 8s forwards;
}
.rp-deep-strip-text { flex: 1 1 260px; min-width: 0; font-size: 15px; }
.rp-deep-strip-go { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(27, 34, 48, .35); text-underline-offset: 2px; }
@keyframes rp-strip-out { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; } }
@media (max-width: 720px) { .rp-deep-top { padding: 16px 16px 0; } .page-report a.rp-deep-strip { padding: 12px 16px 10px; } }
@media (prefers-reduced-motion: reduce) { .page-report a.rp-deep-strip { animation: none; } }
