:root {
  --ink: #1b2140; --soft: #5d6380; --line: #dfdccf; --paper: #fffdf7; --page: #f5f1e6; --navy: #1f2a5c; --coral: #c9472a;
  --coral-dark: #a93820; --good: #1c7048; --good-bg: #e4f3ea; --warn: #805300; --warn-bg: #fff1cf; --bad: #a32929;
  --bad-bg: #fde8e5; --focus: #2b62d9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--navy); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; margin-top: 22px; }
.card > div > h3:first-child { margin-top: 0; }
h1, .brand, .verdict strong { font-family: Georgia, "Times New Roman", serif; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(920px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 5; background: #fff; padding: 10px 14px; border-radius: 8px; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 4px; }
nav a { padding: 10px 12px; border-radius: 8px; color: var(--soft); font-weight: 600; font-size: 15px; text-decoration: none; }
nav a:hover { background: var(--page); }
nav a[aria-current] { color: var(--navy); background: #e9ebf6; }
.hero { padding: 48px 0 26px; max-width: 720px; }
.hero h1 { font-size: clamp(38px, 7vw, 62px); margin-bottom: 16px; }
.hero em { color: var(--coral); font-style: italic; }
.lead { font-size: 18px; color: var(--soft); margin: 0; }
.kicker { margin: 0 0 10px; color: var(--coral); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 18px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 9px; padding-top: 11px; border-top: 4px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 600; }
.steps span { display: grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 13px; }
.steps [aria-current] { color: var(--ink); border-color: var(--coral); }
.steps [aria-current] span { background: var(--coral); color: #fff; }
.steps .done { border-color: var(--good); }
.steps .done span { background: var(--good); color: #fff; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 0 0 18px; box-shadow: 0 10px 28px rgba(31, 42, 92, .06); }
.center { text-align: center; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #918f9e; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
#wallet, textarea, .mono { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.joined { display: flex; gap: 10px; }
.joined input { min-width: 0; }
.joined .button { flex: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid > * { min-width: 0; }
.hint { margin: 6px 0 0; color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.block { display: block; }
.warn { margin: 6px 0 0; color: var(--warn); font-size: 14px; }
.source { margin: 18px 0 0; color: var(--soft); font-size: 14px; }
.more { margin: 4px 0 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.more .field { margin-top: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--coral); border-radius: 10px; background: var(--coral); color: #fff; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--coral-dark); }
.button.quiet { background: #fff; color: var(--navy); border-color: #b5b5c6; }
.button.quiet:hover { background: #eef0fa; }
.button:disabled { opacity: .55; cursor: wait; }
.button.big { min-height: 54px; font-size: 17px; }
#find .big { width: 100%; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link { min-height: 40px; border: 0; background: none; color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
input[type=checkbox] { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--good); }
.alert { margin: 0 0 18px; padding: 15px 18px; border: 1px solid #e2aaa4; border-radius: 12px; background: var(--bad-bg); color: #7c1e1e; font-weight: 600; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 16px 18px; border-radius: 12px; background: var(--warn-bg); color: #573a00; }
.callout p { margin: 2px 0 0; font-size: 15px; }
.callout.good { background: var(--good-bg); color: #0f4a2d; }
.callout .button { flex: none; }
progress { width: 100%; height: 14px; margin: 8px 0; accent-color: var(--coral); }
.split { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.split.tight { align-items: center; border-bottom: 1px solid var(--line); }
.split.tight h3 { margin: 12px 0; }
.total { flex: none; text-align: right; }
.total span { display: block; color: var(--soft); font-size: 13px; }
.total strong { display: block; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.payments, .checks, .plain { list-style: none; margin: 0; padding: 0; }
.payments li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.payments li:last-child { border-bottom: 0; }
.empty { color: var(--soft); }
.pay { flex: 1; min-width: 0; }
.pay-top { display: flex; justify-content: space-between; gap: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pay .label { min-height: 42px; margin-top: 10px; padding: 8px 11px; font-size: 15px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--soft); }
.paper { border-top: 7px solid var(--navy); }
.paper-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.paper-top h2 { font-size: 27px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 18px 0; font-size: 14px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; min-width: 0; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 76px 1fr max-content; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 14px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { color: var(--soft); font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th.num, td.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
td small { display: block; color: var(--soft); font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
.drop { display: grid; place-content: center; gap: 6px; min-height: 160px; padding: 20px; border: 2px dashed #8d93b5; border-radius: 14px; background: #fff; text-align: center; cursor: pointer; }
.drop strong { font-size: 19px; }
.drop span { color: var(--soft); }
.drop.over, .drop:hover { border-color: var(--coral); background: #fff6f2; }
.away { position: absolute; width: 1px !important; min-height: 1px !important; height: 1px; padding: 0 !important; opacity: 0; overflow: hidden; }
.card:has(.away:focus-visible) .drop { outline: 3px solid var(--focus); outline-offset: 3px; }
.verdict { margin-bottom: 18px; padding: 26px 28px; border-radius: 18px; border: 2px solid; }
.verdict strong { font-size: 31px; line-height: 1.15; }
.verdict p { margin: 6px 0 0; }
.verdict.verified { background: var(--good-bg); border-color: var(--good); color: #0f4a2d; }
.verdict.problem { background: var(--bad-bg); border-color: var(--bad); color: #7c1e1e; }
.verdict.incomplete { background: var(--warn-bg); border-color: #b98a1f; color: #573a00; }
.checks li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks p { margin: 2px 0 0; color: var(--soft); font-size: 15px; }
.mark { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--warn); color: #fff; font-weight: 700; }
.pass .mark { background: var(--good); }
.fail .mark { background: var(--bad); }
.plain li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose h2:not(:first-child) { margin-top: 32px; }
.prose li { margin: 7px 0; }
footer { padding: 20px 0 42px; color: var(--soft); font-size: 14px; }
footer p { margin: 6px 0; }

@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; padding: 10px 0; gap: 4px; }
  nav { width: 100%; margin-inline: -8px; }
  nav a { padding: 10px 8px; }
  .hero { padding: 30px 0 14px; }
  .card { padding: 20px 18px; border-radius: 14px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .joined, .callout, .split:not(.tight), .paper-top { flex-direction: column; align-items: stretch; }
  .total { text-align: left; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
  .buttons .button { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .facts dd { margin-bottom: 9px; }
  .lines thead { display: none; }
  .lines tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lines td { border: 0; padding: 2px 0; }
  .lines td:nth-child(1) { grid-column: 1 / -1; font-weight: 600; }
  .lines td:nth-child(2)::before { content: "From "; color: var(--soft); }
  .lines td:nth-child(4)::before { content: "Price "; color: var(--soft); }
  .lines td:nth-child(5) { grid-column: 2; font-weight: 700; }
  .lines td:nth-child(4) { text-align: left; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  @page { margin: 14mm; }
  body, .card { background: #fff; }
  .top, .steps, .hero, footer, .screen-only, .alert, .skip { display: none !important; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .wrap { width: 100%; }
  .scroll { overflow: visible; }
  tr, .bars li { break-inside: avoid; }
  .lines tbody tr:last-child, .paper .scroll, .paper .source { break-after: avoid; }
  .paper .source, .paper .hint { break-inside: avoid; }
  th, td { padding: 6px 8px; }
  thead { display: table-header-group; }
  a { color: inherit; text-decoration: none; }
  table, th { font-size: 11px; }
  td small { font-size: 10px; }
  .hint, .source { font-size: 12px; }
}
