:root {
  color-scheme: light;
  --paper: #f5f0e5;
  --white: #fcf8ef;
  --ink: #192f25;
  --forest: #173e30;
  --muted: #58645a;
  --gold: #896333;
  --brass: #d4a86a;
  --line: #d9d0bd;
  --serif: "Audit Serif", "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --number: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, Consolas, monospace;
}
@font-face {
  font-family: "Audit Serif";
  src: url("../assets/audit-serif.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 23% 1%, #faf6ed 0, #f5f0e5 58%, #eee7d8 100%) fixed;
  font: 15px/1.6 var(--sans);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #a06724;
  outline-offset: 4px;
}
p, h1, h2, h3, figure { margin: 0; }
svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { width: min(1220px, calc(100% - 112px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner, .top-actions, .brand { display: flex; align-items: center; }
.topbar-inner { justify-content: space-between; height: 74px; }
.brand { gap: 12px; border: 0; background: none; padding: 0; text-align: left; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #e7c693; box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px #82683f; }
.brand-mark svg { width: 28px; height: 28px; stroke-width: 1.1; }
.brand b, .brand small { display: block; line-height: 1.25; }
.brand b { font-family: var(--serif); font-weight: 750; font-size: 21px; letter-spacing: .07em; }
.brand small { color: var(--muted); margin-top: 4px; font-size: 10px; letter-spacing: .16em; }
.top-actions { gap: 12px; }
.privacy-button, .sound-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--forest); background: #f9f5eb; border: 1px solid var(--line); border-radius: 50px; min-height: 40px; }
.privacy-button { padding: 0 13px; font-size: 12px; font-weight: 650; }
.privacy-button svg { width: 15px; height: 15px; }
.sound-button, .icon-button { width: 42px; height: 42px; padding: 0; }
.sound-button:hover, .privacy-button:hover, .icon-button:hover { background: #eae6d8; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 310px); grid-template-areas: 'copy vault' 'receipt receipt'; gap: 16px 48px; align-items: center; padding-block: 28px 0; }
.hero-copy { grid-area: copy; min-width: 0; }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--gold); font: 650 11px/1.45 var(--mono); letter-spacing: .13em; }
.kicker > span { width: 7px; height: 7px; background: #a67c45; transform: rotate(45deg); flex: 0 0 auto; }
.hero h1 { margin: 11px 0 9px; font: 800 clamp(48px, 4.35vw, 66px)/1.13 var(--serif); letter-spacing: -.055em; }
.hero-description { max-width: 430px; color: #45574c; font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.import-box { margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 10px 10px 8px; border: 1px dashed #a69b82; background: #fbf8ee; border-radius: 6px; }
.import-box > svg { margin-left: 4px; width: 25px; height: 25px; color: #547157; }
.import-box > div { min-width: 0; }
.import-box strong, .import-box small { display: block; }
.import-box strong { font-size: 15px; font-weight: 750; }
.import-box small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.import-privacy { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: 7px; padding: 6px 4px 0; border-top: 1px solid #e5ddca; color: #294b37; font-size: 13px; line-height: 1.4; font-weight: 650; }
.import-privacy svg { width: 15px; height: 15px; }
.import-box.dragging { background: #e1eadc; border: 1px solid #40664c; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; min-height: 44px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: 13px; text-decoration: none; line-height: 1.4; }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--forest); color: #fff9eb; border-color: var(--forest); }
.primary:hover { background: #245842; }
.secondary { border-color: #b8ad96; background: #faf6eb; color: var(--forest); }
.secondary:hover { background: #ebe6d8; }
.text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; padding: 0; min-height: 36px; color: #31573f; font-weight: 700; font-size: 13px; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.text-button svg { width: 17px; height: 17px; }
.import-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.import-foot .text-button { user-select: none; -webkit-user-select: none; }
#try-sample { min-height: 44px; padding-inline: 10px; color: #604823; background: #f0e6d0; border: 1px solid #c7ad80; border-radius: 4px; font-size: 14px; white-space: nowrap; }
#try-sample:hover { background: #ebdfc5; }
.import-error { color: #913925; font-size: 13px; margin-top: 8px; }
.sample-receipt {
  --copper-ink: #6d411f;
  --copper-line: #a4693c;
  --copper-edge: #be8b58;
  --copper-paper: #f9ecda;
  grid-area: receipt;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 5px 13px;
  width: 100%;
  margin-top: 3px;
  padding: 15px 19px 13px;
  border: 1px solid #bdab85;
  border-left: 3px solid #a27b48;
  border-radius: 2px 5px 5px 2px;
  background: #fdf8ea;
  color: #244536;
  text-align: left;
  box-shadow: 0 4px 11px #5445240d;
}
.receipt-heading, .receipt-review { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.receipt-intro { display: flex; align-items: center; gap: 8px; }
.receipt-intro strong { color: var(--forest); font: 780 clamp(22px, 2.12vw, 33px)/1.27 var(--serif); }
.receipt-stamp { padding: 2px 5px; border: 1px solid #b79661; color: #715025; font-size: 10px; letter-spacing: .06em; line-height: 1.4; white-space: nowrap; }
.receipt-state { border: 1px solid #bfc7ac; padding: 3px 7px; color: #355541; background: #edf0e3; font-size: 14px; font-weight: 730; line-height: 1.45; white-space: nowrap; }
.receipt-review { justify-content: flex-start; gap: 14px; margin-top: 1px; }
#preview-transactions { min-height: 44px; color: var(--copper-ink); font-size: 14px; white-space: nowrap; }
.receipt-entries { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.receipt-entry { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 4px 9px; min-width: 0; padding: 9px 11px; border: 1px solid var(--copper-edge); border-top: 2px solid var(--copper-line); border-radius: 3px; background: linear-gradient(180deg, var(--copper-paper), #fffcf3 48%); }
.receipt-date { display: flex; align-items: center; gap: 6px; }
.receipt-entry time { color: var(--copper-ink); white-space: nowrap; font: 700 14px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.endpoint { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 100%; color: var(--copper-line); background: #fff8eb; }
.endpoint-end { background: currentColor; }
.receipt-entry strong { color: #213e30; font: 700 clamp(27px, 2.7vw, 40px)/1 var(--number); letter-spacing: -.055em; font-variant-numeric: lining-nums tabular-nums; }
.receipt-gap { display: grid; align-content: center; justify-items: center; padding: 0 8px; color: var(--copper-ink); white-space: nowrap; font-size: 14px; font-weight: 730; }
.receipt-bridge { position: relative; width: 100%; height: 1px; margin-top: 5px; background: var(--copper-line); }
.receipt-bridge::before, .receipt-bridge::after { content: ''; position: absolute; top: -2px; width: 5px; height: 5px; border: 1px solid var(--copper-line); border-radius: 50%; }
.receipt-bridge::before { left: 0; background: #fff8eb; }
.receipt-bridge::after { right: 0; background: var(--copper-line); }
.receipt-timeline { grid-column: 1 / -1; min-width: 0; margin-top: 3px; padding: 10px 11px 6px; background: #e9eddf; border: 1px solid #bfc8af; border-radius: 3px; }
.timeline-heading, .timeline-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.timeline-heading strong { font: 800 clamp(19px, 2.35vw, 34px)/1.2 var(--serif); color: #244936; }
.timeline-heading > span { color: #405c47; font-size: 14px; }
.intervals { display: grid; grid-template-columns: repeat(var(--interval-count, 11), minmax(0, 1fr)); gap: 4px; margin: 8px 0 4px; padding: 0; list-style: none; }
.intervals li { position: relative; padding: 3px 0; border-top: 2px solid #aab696; background: #e1e7d7; color: #274635; text-align: center; font: 730 16px/1.35 var(--mono); }
.intervals.all-match li { border-color: #a4be9e; color: #fbf8e9; background: #335c45; }
.intervals.all-match .featured-interval { border-color: #e2b07a; outline: 1px solid var(--copper-line); outline-offset: 1px; color: #fff9ee; background: linear-gradient(156deg, #8c5a34, #6d411f); }
.timeline-caption { align-items: center; color: #405843; font-size: 13px; text-align: center; }
.timeline-caption time { flex: none; font: 650 13px/1.4 var(--mono); }
.timeline-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 11px; margin-top: 5px; padding-top: 4px; border-top: 1px solid #c2cab2; color: #435c47; font-size: 13px; }
.timeline-feature, .timeline-feature > span { display: inline-flex; align-items: center; gap: 4px; }
.timeline-feature { color: var(--copper-ink); font-weight: 720; white-space: nowrap; }
.timeline-feature time { font: 720 13px/1.3 var(--mono); }
.feature-dash { width: 9px; height: 1px; background: var(--copper-line); }
.receipt-foot { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; border-top: 1px dashed #cdbb98; padding-block: 8px 1px; }
.receipt-sum { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; color: #584b37; font-size: 14px; }
.receipt-sum b { color: var(--forest); font: 700 24px/1 var(--number); }
.receipt-accounting { color: #534b3c; font-size: 14px; line-height: 1.45; text-align: right; }
#preview-count { padding-left: 6px; border-left: 1px solid #cdbb98; }
#preview-policy { grid-column: 1 / -1; color: #584b37; font-size: 14px; line-height: 1.45; }
.vault-figure { grid-area: vault; padding: 6px; background: #e9e0ce; border: 1px solid #c5b698; border-radius: 6px; }
.vault-mat { position: relative; overflow: hidden; background: #253b2d; border-radius: 3px; }
.vault-mat img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.vault-mat::after { content: ""; position: absolute; inset: 10px; border: 1px solid #f1d89d55; pointer-events: none; }
.vault-figure figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 7px 2px; align-items: center; font-size: 11px; letter-spacing: .1em; color: #536155; }
.vault-figure figcaption > :first-child { color: #234a35; font-weight: 760; }
.status-dot { display: inline-block; vertical-align: .08em; background: #66906a; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 3px #66906a28; margin-right: 4px; }
.footer { margin-top: 28px; padding-block: 9px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.footer button { font-size: inherit; white-space: nowrap; }
.view-return { margin: 16px 0 9px; }
.scan-layout { max-width: 680px; border: 1px solid var(--line); background: var(--white); }
.scan-control { padding: clamp(16px, 4vw, 35px); }
.scan-control h1 { font: 800 clamp(31px, 4.1vw, 52px)/1.2 var(--serif); margin: 11px 0 7px; }
#scan-source { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.scan-stages { list-style: none; padding: 0; margin: 18px 0; }
.scan-stages li { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 11px 3px; border-top: 1px solid var(--line); }
.stage-token { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font: 12px var(--mono); }
.stage-token svg { width: 15px; height: 15px; }
.stage-current .stage-token { background: var(--forest); color: #fff5de; border-color: var(--forest); }
.stage-done .stage-token { color: #254e37; background: #e1e9d8; }
.scan-stages strong, .scan-stages small { display: block; }
.scan-stages strong { font-size: 15px; line-height: 1.35; }
.scan-stages small { color: var(--muted); margin-top: 3px; font-size: 12px; }
.report-view { padding-bottom: 5px; }
.report-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 15px 0 13px; }
.report-tools { display: flex; flex-wrap: wrap; gap: 7px; }
.report-summary { position: relative; isolation: isolate; min-width: 0; overflow: hidden; display: grid; grid-template-columns: 1.18fr .82fr; gap: 20px; color: #fff5df; padding: 34px 38px 28px; border: 1px solid #234434; background: radial-gradient(ellipse at 88% 25%, #315b42, #163d2f 53%, #102e23); border-radius: 7px; }
.report-summary::before { content: ""; position: absolute; z-index: -1; inset: 7px; border: 1px solid #ecd4a343; border-radius: 3px; pointer-events: none; }
.summary-main { min-width: 0; }
.report-summary .kicker { color: #f1cd92; }
.report-summary .kicker > span { background: #f1cd92; }
.report-summary h1 { margin-top: 8px; font: 760 clamp(31px, 4.1vw, 56px)/1.2 var(--serif); letter-spacing: -.03em; }
.report-date { margin-top: 7px; color: #dadfcf; font-size: 12px; overflow-wrap: anywhere; }
.money-eyebrow { color: #efd7a9; font-size: 13px; margin-top: 22px; }
.amount { color: #fff2d3; font: 400 clamp(51px, 7.3vw, 105px)/.99 var(--number); letter-spacing: -.065em; margin: 5px 0 7px; overflow-wrap: anywhere; }
.amount span { font-size: .45em; vertical-align: .2em; letter-spacing: 0; margin-right: .14em; }
.summary-note { color: #dae6d7; font-size: 12px; min-height: 19px; }
.radar { position: relative; display: grid; place-items: center; min-width: 0; min-height: 230px; }
.radar::before { content: ""; position: absolute; inset: -28% -20%; z-index: -1; background: repeating-radial-gradient(circle at center, transparent 0 17px, #e6c18020 18px 19px, transparent 20px 24px); mask-image: radial-gradient(ellipse, #000 18%, transparent 68%); pointer-events: none; }
.radar-dial { width: min(62%, 252px); aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 1px solid #dfbf7f92; border-radius: 50%; box-shadow: 0 0 0 7px #e6bd7033, 0 0 0 8px #dabc804f, 0 9px 25px #0c241c65; }
.radar-dial::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: repeating-conic-gradient(#f4d19a90 0deg 1deg, transparent 1deg 6deg); mask-image: radial-gradient(transparent 65%, #000 66%); pointer-events: none; }
.radar-dial::after { content: ""; position: absolute; inset: 15%; border: 1px solid #f3ca8b77; border-radius: 50%; pointer-events: none; }
.radar-disc { width: 67%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--segments, #87a48b); }
.radar-disc > span { width: 77%; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; background: #1b4333; border: 1px solid #ead09c80; color: #f3deaf; font-size: 11px; }
.radar-disc b { display: block; font: 44px/.95 var(--number); color: #fff2d3; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.paper-panel { min-width: 0; border: 1px solid var(--line); border-radius: 5px; background: #fbf7ed; padding: 18px 20px; }
.paper-panel h2 { font: 760 26px/1.25 var(--serif); letter-spacing: -.025em; }
.panel-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 5px; }
.ranking { display: grid; margin-top: 12px; }
.rank-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto 15px; gap: 8px; align-items: center; text-align: left; min-height: 49px; border: 0; border-top: 1px solid var(--line); background: transparent; width: 100%; padding: 4px 0; }
.rank-row:hover, .case-row:hover { color: #346748; background: #f2eee2; }
.rank-row b, .case-row b { overflow-wrap: anywhere; }
.rank-row svg, .case-row svg { width: 15px; height: 15px; }
.rank-num { color: #795932; font: bold 15px var(--number); border-left: 3px solid var(--rank-color); padding-left: 4px; }
.rank-amount { font: 700 17px var(--number); }
.report-ledger { margin-top: 15px; }
.case-tabs { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 13px 0 8px; }
.case-tabs button { border: 1px solid var(--line); border-radius: 4px; background: var(--white); min-height: 38px; padding: 4px 10px; font-size: 12px; }
.case-tabs button[aria-pressed="true"] { color: #fff8e9; background: var(--forest); border-color: var(--forest); }
.case-row { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto 15px; gap: 10px; width: 100%; min-height: 62px; padding: 8px 4px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; }
.case-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.empty { color: var(--muted); padding: 20px 4px; font-size: 13px; }
.trace-details { margin-top: 14px; padding: 0 2px; color: var(--muted); font-size: 13px; }
.trace-details summary { cursor: pointer; padding-block: 8px; font-weight: 700; color: var(--forest); }
.trace-details li { padding-block: 3px; }
.dialog { width: min(560px, calc(100% - 26px)); max-height: calc(100dvh - 28px); border: 1px solid #a99772; border-radius: 7px; padding: 21px; color: var(--ink); background: #fbf7ed; box-shadow: 0 18px 80px #152c2377; overscroll-behavior: contain; }
.dialog::backdrop { background: #172b23a6; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dialog-head h2 { margin-top: 4px; font: 780 29px/1.2 var(--serif); overflow-wrap: anywhere; }
.dialog-head button { flex: 0 0 auto; }
.dialog p, .dialog li { color: #45594b; font-size: 13px; line-height: 1.65; }
.dialog textarea { margin-top: 10px; width: 100%; min-height: 150px; max-height: 45vh; resize: vertical; border: 1px solid #b7af9c; border-radius: 4px; padding: 8px 10px; background: #fffdf7; }
.dialog input, .dialog select { min-height: 41px; min-width: 0; max-width: 100%; border: 1px solid #b7af9c; border-radius: 4px; padding: 5px 8px; background: #fffdf7; }
.field-label { font-size: 12px; font-weight: 700; display: block; margin: 7px 0 3px; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dialog-actions > span { color: var(--muted); font-size: 12px; }
.notes { padding-left: 20px; margin-bottom: 0; }
.notes li { margin: 8px 0; }
.action-section { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.action-section h3 { font: 750 19px/1.4 var(--serif); margin-bottom: 4px; }
.action-section ol, .action-section ul { margin: 5px 0 8px; padding-left: 20px; }
.action-section .direct { margin-right: 3px; }
.reminder-controls { display: flex; align-items: end; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.dialog .action-status:not(:empty) { margin-top: 8px; padding: 6px 8px; background: #e7ecde; font-weight: 700; }
.print-cases { display: none; }
.toast { position: fixed; z-index: 10; inset: auto auto 20px 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 26px); color: #fff8ea; background: #193c2e; border: 1px solid #e4c889; border-radius: 5px; box-shadow: 0 5px 20px #1b332b55; padding: 9px 13px; font-size: 13px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 66px); }
  .hero { column-gap: 24px; }
  .hero h1 { font-size: clamp(40px, 5.4vw, 58px); }
  .receipt-foot { grid-template-columns: 1fr; gap: 4px; }
  .receipt-accounting { text-align: left; }
}
@media (max-width: 720px) {
  body { background-attachment: scroll; }
  .shell { width: auto; margin-inline: max(17px, env(safe-area-inset-left)) max(17px, env(safe-area-inset-right)); }
  .topbar { padding-top: env(safe-area-inset-top); }
  .topbar-inner { height: 63px; }
  .brand { gap: 7px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand b { font-size: 18px; }
  .brand small { margin-top: 3px; font-size: 9px; }
  .top-actions { gap: 5px; }
  .privacy-button { padding-inline: 8px; font-size: 11px; }
  .sound-button { width: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'receipt' 'vault'; gap: 10px; padding-block: 13px 2px; }
  .hero .kicker { display: none; }
  .hero h1 { margin: 6px 0 5px; font-size: clamp(34px, 9.2vw, 54px); }
  .hero-description { font-size: 14px; line-height: 1.5; }
  .import-box { margin-top: 10px; padding: 7px 8px; column-gap: 7px; }
  .import-box > svg { width: 20px; height: 20px; }
  .import-box strong { font-size: 13px; }
  .import-box small { font-size: 10px; }
  .import-box .button { padding-inline: 9px; }
  .import-foot { margin-top: 6px; }
  .import-foot .text-button { min-height: 44px; }
  .sample-receipt { margin-top: 1px; padding: 8px 8px 7px; gap: 5px; }
  .receipt-intro { gap: 5px; }
  .receipt-heading .receipt-intro { flex-wrap: wrap; gap: 3px; min-width: 0; }
  .receipt-intro strong { font-size: 22px; }
  .receipt-state { padding-inline: 4px; font-size: 14px; }
  .receipt-review { justify-content: space-between; gap: 6px; }
  .receipt-entry { flex-direction: column; padding: 6px 7px; }
  .receipt-date .endpoint { position: absolute; right: 6px; bottom: 10px; }
  .receipt-entry time { font-size: 14px; }
  .receipt-entry strong { font-size: 30px; }
  .receipt-gap { padding-inline: 4px; font-size: 14px; }
  .receipt-foot { padding-top: 6px; }
  .receipt-timeline { padding: 7px 7px 5px; }
  .intervals { gap: 2px; margin-top: 6px; }
  .intervals li { font-size: 14px; }
  .timeline-caption { font-size: 12px; }
  .timeline-caption time { font-size: 12px; }
  .timeline-note { font-size: 12px; }
  .vault-figure { width: 100%; display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; padding: 5px; }
  .vault-mat img { aspect-ratio: 3 / 2; object-fit: contain; }
  .vault-mat::after { inset: 7px; }
  .vault-figure figcaption { display: grid; gap: 3px; padding: 0 8px 0 11px; font-size: 11px; }
  .footer { margin-top: 18px; font-size: 10px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .report-toolbar { margin-block: 9px; flex-wrap: wrap; }
  .report-tools { gap: 5px; }
  .report-tools .button { padding-inline: 7px; font-size: 11px; min-height: 40px; }
  .report-tools .button svg { width: 14px; height: 14px; }
  .report-summary { grid-template-columns: 1fr; gap: 10px; padding: 21px 16px 16px; }
  .report-summary h1 { font-size: clamp(27px, 7.55vw, 38px); }
  .amount { font-size: clamp(52px, 15.5vw, 78px); }
  .money-eyebrow { margin-top: 13px; }
  .radar { min-height: 91px; }
  .radar-dial { width: 84px; }
  .radar-disc > span { font-size: 9px; }
  .radar-disc b { font-size: 23px; }
  .report-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .report-ledger { margin-top: 8px; }
  .paper-panel { padding: 13px 12px; }
  .paper-panel h2 { font-size: 23px; }
  .dialog { padding: 14px; }
  .dialog-head h2 { font-size: 24px; }
}
@media (max-width: 340px) {
  .topbar-inner { height: 58px; }
  .hero { gap: 9px; padding-top: 11px; }
  .hero h1 { font-size: 32px; }
  .receipt-entry time { letter-spacing: -.045em; }
  .vault-figure { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 12mm; size: A4; }
  body { background: white; color: #142d20; }
  .topbar, .footer, .report-toolbar, .toast, dialog, .trace-details, .report-ledger { display: none !important; }
  .shell { width: 100%; }
  .report-summary { background: #fff; color: #152f22; border-color: #777; padding: 16px; }
  .report-summary *, .report-summary .amount, .report-summary .kicker { color: #152f22 !important; }
  .radar { print-color-adjust: exact; }
  .radar-disc > span { background: #fff; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .paper-panel { background: white; break-inside: avoid; }
  .print-cases { display: block; margin-top: 12px; }
  .print-cases .paper-panel { break-inside: auto; margin-top: 8px; }
  .print-cases h2 { break-after: avoid; }
  .case-row { break-inside: avoid; }
}
