/* Round 3b: the private mailpiece pages (approval, mailpiece, record), the five promises and the home approval card.
   Spec: docs/design/2026-11-27-round-3b-quality-spec.md, P1 to P6, P11, P12. Colors and dot art from tokens.css (airmail edition). The sheets
   themselves (letter preview, address sheet, their marks) stay true black on white: see .sheet__paper below. */

/* Context bar (P1.1): one row with the state stamp and the h1 at body-large size, then one line of facts. */
.ctx { padding-block: var(--s-4) var(--s-3); }
.ctx__row { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.ctx__stamp { flex: none; }
/* A long state label fits the same way as a short one on a narrow screen. */
.ctx__substamp { display: none; }
@media (max-width: 480px) {
  .ctx__stamp { display: none; }
  .ctx__substamp { display: inline-block; justify-self: start; }
  .ctx__sub { display: grid; gap: var(--s-2); }
}
.ctx__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.625rem); line-height: 1.15; letter-spacing: var(--track-head); min-width: 0; text-wrap: balance; }
.ctx__sub { margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-mono-sm); line-height: 1.4; color: var(--fg-2); }
.ctx__lead { margin-top: var(--s-2); font-size: 0.9375rem; line-height: 1.45; color: var(--fg-2); max-width: 64ch; text-wrap: pretty; }
.ctx__lead a { white-space: nowrap; }
.ctx__record-note { display: block; margin-top: var(--s-1); }
.ctx__lead b { color: var(--fg); font-weight: 600; }

.sec--approve, .sec--piece { padding-block: 0 var(--s-8); }

/* One-line test strip (P1.2). */
.modebar--one { flex-wrap: nowrap; gap: var(--s-2); padding: 0.35rem var(--s-3); margin-bottom: var(--s-4); font-size: var(--fs-mono-xs); white-space: nowrap; overflow: hidden; border-width: 1.5px; }
.modebar--one > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.modebar--one .stamp { --stamp-size: 0.75rem; flex: none; }
.modebar--piece { white-space: normal; align-items: start; }
.modebar--one.modebar--piece > span:last-child { overflow: visible; }

.piece-notice { padding: var(--s-3) var(--s-4); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0;
  background: var(--tint); color: var(--fg); font-size: 0.9375rem; }
.sec--piece > .wrap > .piece-notice { margin-bottom: var(--s-4); }
.piece-notice--warn { border-color: var(--red); background: var(--red-tint); }

/* The desk (P2): a plain envelope-blue tray under the sheets, so blank paper reads as paper. */
.desk { display: grid; gap: var(--s-4); padding: var(--s-3); background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 1024px) { .desk { padding: var(--s-4); gap: var(--s-5); } }
.desk .approve__pages { gap: var(--s-4); min-height: 0; }
.desk .approve__loading { min-height: 0; border: 0; text-align: center; }
.desk .approve__fallback { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
  gap: var(--s-3); max-width: 32ch; margin: auto; padding: var(--s-3); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.sheet__preview-status { position: absolute; inset: 0; display: grid; place-content: center; padding: var(--s-3); }
.sheet__preview-status [hidden], .approve__page.is-drawn .sheet__preview-status { display: none; }
.desk__note { background: var(--bg); padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; color: var(--fg-2); }
.sheet { display: grid; gap: var(--s-2); margin: 0; }
.sheet__cap { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-mono-xs); line-height: 1.35; }
.sheet__cap > span { padding: 0.1em 0; }
.sheet__cap a { flex: none; padding: 0.1em 0; }
/* The sheets are what gets printed: true black on white, whatever the site's colors are. */
.sheet__paper, .sheet__canvas { --ink: var(--black); --fg: var(--black); --fg-2: rgba(0, 0, 0, 0.72); --fill-1: rgba(0, 0, 0, 0.04);
  position: relative; background: var(--paper); border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.2), 0 10px 22px -12px rgba(30, 63, 154, 0.5); }
.approve__page .sheet__canvas { aspect-ratio: var(--sheet-aspect); }
.approve__page .sheet__canvas canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.approve__page .sheet__canvas canvas[hidden] { display: none; }
.sheet__paper { overflow: hidden; }
.sheet__page { position: relative; aspect-ratio: 612 / 792; container-type: inline-size; }
/* The address sheet shows only its top band at every width (both windows and the first fold): it is the printer's
   sheet, not the thing being approved, and the rest of it is blank. The cut edge is dashed and says so. */
.sheet--address .sheet__paper { aspect-ratio: 612 / 320; border-bottom: 2px dashed var(--ink); box-shadow: 0 -1px 0 rgba(17, 24, 39, 0.08); }
.sheet__rest { margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-mono-xs); color: var(--fg-2); }
.sheet__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__svg rect { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.sheet__fold { stroke: var(--ink-line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.sheet__block { position: absolute; display: grid; align-content: center; padding: 0 2.4cqw; font-family: var(--font-mono); font-size: 2.15cqw; line-height: 1.3; color: var(--ink); }
.sheet__block--from { align-content: start; padding-top: 0.8cqw; color: var(--ink-2); }
.sheet__block--to span:first-child { font-weight: 500; }
.sheet__winlabel { position: absolute; top: calc(var(--window-top) - 3px); transform: translateY(-100%);
  font-family: var(--font-mono); font-size: max(0.5625rem, 1.7cqw); line-height: 1.3; color: var(--fg-2); }
@media (max-width: 480px) {
  .sheet__winlabel { top: var(--window-top); transform: translate(0.5em, -50%); padding-inline: 0.3em; }
}
.sheet__foldlabel { position: absolute; right: 2.4cqw; transform: translateY(-125%); font-family: var(--font-mono); font-size: max(0.625rem, 1.5cqw); color: var(--fg-3); }

/* Page 1 overlays: the measured blank band and, on an address-on-page-1 route, the window rectangles. */
.blankband { position: absolute; left: 3%; right: 3%; top: 1.5%; border: 2px dashed var(--ink); border-top-width: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--fill-1) 0 2px, transparent 2px 8px); }
.blankband__label { max-width: 86%; padding: 0.35em 0.6em; background: var(--paper); border: 1px solid var(--ink); font-family: var(--font-mono); font-size: var(--fs-mono-xs); line-height: 1.35; text-align: center; }
.winrect { position: absolute; border: 2px dashed var(--ink); }
.winrect__label { position: absolute; left: 0; top: calc(100% + 3px); white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-mono-xs); color: var(--fg-2); background: var(--paper); }

/* The approval layout (P1.7): phone is one column (document, checklist and decision, then the rest); desktop keeps
   the document at 7fr with a sticky rail beside it. */
.approve, .approve--draft { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.approve__rail { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.approve__more { display: grid; gap: var(--s-6); min-width: 0; }
@media (min-width: 1024px) {
  .approve, .approve--draft { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "doc rail" "more rail"; column-gap: var(--s-7); row-gap: var(--s-7); }
  .approve__doc { grid-area: doc; }
  .approve__rail { grid-area: rail; top: var(--s-4); }
  .approve__rail.is-sticky { position: sticky; }
  .approve__more { grid-area: more; }
  /* B1: Approve must be on the first screen at 1280x800. The rail tightens: denser checklist and slip, smaller gaps. */
  .approve__rail { gap: var(--s-2); }
  .approve__rail .approve__binding { font-size: 0.875rem; line-height: 1.4; }
  .approve__rail .approve__decide { gap: var(--s-2); padding-top: var(--s-2); border-top: var(--rule-hair); }
  .approve__rail .approve__form { gap: var(--s-2); }
  .approve__rail .approve__attest { padding-block: var(--s-1); }
  .approve__rail .approve__form .btn--stamp { min-height: 3.25rem; padding-block: 0.5em; }
  .approve__rail .checklist > div { padding: 0.3em 0; }
  .approve__rail .quote { padding-block: 0.7rem 0.8rem; }
  .approve__rail .ledger-list { font-size: var(--fs-mono-sm); }
  .approve__rail .ledger-list > div { padding: 0.22em 0; }
  .approve__rail .ledger-list .total { margin-top: var(--s-1, 0.25rem); padding-top: var(--s-2); }

}
.checklist > div { grid-template-columns: 7.5rem minmax(0, 1fr); padding: 0.42em 0; }
/* The server checked these facts, so each row carries a filled tick, not an empty box to tap (W4). */
.checklist dt::before { content: "✓"; display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-right: 0.5em; border-radius: 50%; background: var(--blue); color: var(--paper); font-family: var(--font-text); font-weight: 700; font-size: 0.85em; line-height: 1; vertical-align: 0.05em; }
.checklist dd > span { display: block; }
.checklist dd > .t-fine { margin-left: 0; }
.checklist__was { color: var(--fg-2); }
@media (max-width: 480px) { .checklist > div { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-2); } }
.provenance { margin: 0; padding: var(--s-2) 0; font-size: 0.95rem; line-height: 1.45; color: var(--fg-2); border-bottom: var(--rule-hair); }
/* One separator between every step, and each step stays whole when the strip wraps (W12). */
.approve__rail .quote { scroll-margin-top: var(--s-5); }
.approve__decide { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: var(--rule-heavy); }
.approve__binding { font-size: 0.9375rem; line-height: 1.45; }
.approve__decide .approve__form { border: 0; padding: 0; }
.approve__form .btn--text { justify-self: start; }
.approve__decide:target { scroll-margin-top: var(--s-4); }
.approve__price .ledger-list > .total:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.approve__price > .t-fine { margin-top: var(--s-1); }
.approval-breakdown summary { display: list-item; min-height: 2.75rem; align-content: center;
  cursor: pointer; color: var(--blue); font-family: var(--font-mono); font-size: var(--fs-mono-sm); }
.approval-breakdown[open] .ledger-list { margin-top: var(--s-1); border-top: var(--rule-hair); }
.approve__tools { display: grid; gap: var(--s-3); }
.approve__proof-notes { display: grid; gap: var(--s-4); }
.approve__dup { padding: var(--s-2) var(--s-3); border: 2px solid var(--red); border-radius: 8px; background: var(--red-tint); font-family: var(--font-mono); font-size: var(--fs-mono-sm); }
.approve__off { display: grid; gap: var(--s-2); }
.approve__why, .decide__why { font-family: var(--font-mono); font-size: var(--fs-mono-xs); line-height: 1.35; color: var(--fg-2); }
.approve__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.draft-delete summary { --btn-fg: var(--red); list-style: none; }
.draft-delete summary::-webkit-details-marker { display: none; }
.draft-delete[open] { display: grid; gap: var(--s-2); }
.draft-delete[open] summary { margin-bottom: var(--s-2); }
.sample { display: grid; gap: var(--s-2); justify-items: start; padding-top: var(--s-3); border-top: var(--rule-hair); }
.approve__env { display: grid; gap: var(--s-2); }
.approve__env .envelope { max-width: 22rem; }
@media (hover: hover) {
  .sample .btn--ghost:hover, .sample .btn--ghost.is-hover { --btn-bg: var(--tint); --btn-line: var(--blue); }
}
.sec--approve .btn, .sec--piece .btn, .decide .btn { -webkit-user-select: none; user-select: none; }
@media (pointer: coarse) {
  .sec--approve .btn--sm, .sec--piece .btn--sm, .decide .btn--sm { min-height: 2.75rem; }
}

/* The destructive secondary: outlined, a double rule, never filled, so it never outweighs anything primary. */
.btn--void { --btn-bg: transparent; --btn-fg: var(--red); --btn-line: var(--red); border: 4px double var(--red); box-shadow: none; }
.btn--void:active, .btn--void.is-active { --btn-bg: var(--red-tint); }
@media (hover: hover) { .btn--void:hover { --btn-bg: var(--red-tint); --btn-fg: var(--red); } }

/* The 30-minute hold (P3). */
.hold { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); border: 2px solid var(--blue); border-radius: 10px; background: var(--security) 0 0 / 12px 12px, var(--tint); }
.hold__line { font-size: 1.0625rem; line-height: 1.35; }
.hold__line b { font-weight: 700; white-space: nowrap; }
.hold [data-left], .decide [data-left] { white-space: nowrap; }
.hold .t-fine { grid-column: 1 / -1; }
.hold--over { grid-template-columns: minmax(0, 1fr); border-style: dashed; }
@media (max-width: 480px) { .hold { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* Sticky decision bar (P1.6), phones and tablets only. */
.decide { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-2) 16px calc(var(--s-2) + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
/* The airmail edge rides on top of the bar, outside its box, on an opaque ground so nothing shows through. */
.decide::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--airmail-h) - 1px); height: var(--airmail-h);
  background: var(--airmail) 0 0 / 44px var(--airmail-h) repeat-x, var(--paper); }
.decide.is-tucked { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .decide { transition: transform var(--dur-fast) linear, visibility 0s linear var(--dur-fast); } .decide:not(.is-tucked) { transition-delay: 0s; } }
.decide__total { display: grid; gap: 0.1rem; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-mono-sm); line-height: 1.3; }
.decide__total b { font-size: 1.125rem; font-weight: 600; }
.decide__total a { font-size: var(--fs-mono-xs); }
.decide__form, .decide .cancelform { flex: none; }
.decide__btn.btn--stamp { min-height: 3rem; padding: 0.45em 1em; font-size: 1.1875rem; }
.decide__btn.btn--stamp::before { inset: 3px; }
.decide__btn.btn--void { min-height: 2.75rem; padding: 0.4em 0.9em; font-size: var(--fs-mono-sm); }
@media (min-width: 1024px) { .decide { display: none; } }
@media (max-width: 1023px) { body.page--decide { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); } }

/* Proof (P5). */
.proofs { display: grid; gap: var(--s-3); min-width: 0; }
.proofs .panelhead { margin-bottom: 0; }
.panelhead__h { font: inherit; letter-spacing: inherit; margin: 0; }
.proofs__lead { font-size: 0.9375rem; line-height: 1.5; color: var(--fg-2); max-width: 56ch; }
.proofrows { font-family: var(--font-mono); font-size: var(--fs-mono-sm); border-top: var(--rule-2); }
.proofrows > div { display: grid; grid-template-columns: minmax(8ch, 1fr) minmax(0, 1.3fr); align-items: baseline;
  column-gap: var(--s-3); row-gap: var(--s-1); padding: 0.55em 0; border-bottom: var(--rule-hair); }
.proofrows dd { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.proofrows__when { grid-column: 2; }
@media (min-width: 1280px) {
  .proofrows > div:has(.proofrows__when) { grid-template-columns: minmax(8ch, 1fr) minmax(0, 1.2fr) auto; }
  .proofrows__when { grid-column: auto; }
}
.fingerprint summary { cursor: pointer; font-family: var(--font-mono); font-size: var(--fs-mono-sm); padding: 0.3em 0; min-height: 2.75rem; display: flex; align-items: center; }
.fingerprint summary { list-style: none; gap: 0.6em; }
.fingerprint summary::-webkit-details-marker { display: none; }
.fingerprint summary::after { content: "Show"; text-decoration: underline; text-underline-offset: 0.2em; color: var(--fg-2); }
.fingerprint[open] summary::after { content: "Hide"; }
.fingerprint__hash { display: block; margin-top: var(--s-2); padding: var(--s-3); border: 1px solid var(--fg); font-family: var(--font-mono); font-size: var(--fs-mono-sm); line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: slashed-zero; }
.fingerprint__hash span { display: block; }

/* The five promises (P4), compact. */
.promises { padding: var(--s-4); border: var(--rule-2); display: grid; gap: var(--s-3); }
.sec--approve .promises.paper { border: 2px solid var(--ink-line); }
.promises__title { margin: 0; font-size: 1.35rem; }
.promises__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); font-size: 1rem; line-height: 1.5; }
.promises__list li { padding-left: 1.1rem; border-left: 2px solid var(--blue); }
.promises__list b { font-weight: 650; }
.promises__more { justify-self: start; }

/* Private pages' closing notes (P12). */
.pnotes { margin-top: var(--s-7); padding-top: var(--s-4); border-top: var(--rule-hair); display: grid; gap: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-mono-xs); line-height: 1.5; color: var(--fg-2); }
.pnotes p { max-width: 72ch; }
.approve__more .pnotes { margin-top: 0; padding-top: var(--s-3); }

/* Timeline lanes and source tags (P6). */
.srctag { display: inline-block; margin-right: 0.6em; padding: 0 0.4em; border: 1px solid var(--fg); font-family: var(--font-mono); font-size: var(--fs-mono-xs); line-height: 1.5; color: var(--fg); }
.srctag--usps { background: var(--ink); color: var(--paper); }
.srctag--partner { border-style: dashed; }
/* The source tag identifies the lane while every entry keeps the same text edge. */
.timeline--lanes .timeline__meta time { display: inline-block; }
.sec--piece .piece__keep { border: 2px solid var(--ink-line); border-radius: 10px; }
.piece__keep .t-fine { font: 0.9375rem/1.5 var(--font-text); color: var(--fg-2); }
.piece__keep .t-label + .t-fine + .t-label { margin-top: var(--s-2); }
.sec--piece .receipt.paper { padding: 0; overflow: hidden; }
.sec--piece .receipt--pending { border-style: dashed; }
.sec--piece .receipt .receipt__bar { background: var(--tint); color: var(--fg); border-bottom: var(--rule-hair); }
.sec--piece .receipt--pending .receipt__bar { background: transparent; }
.sec--piece .timeline__end { margin-top: 0; }
@media (max-width: 480px) {
  .timeline--lanes > li:not(.is-pending) .timeline__head { flex-direction: column; align-items: start; }
  .sec--piece .piece__time { gap: var(--s-4); }
  .sec--piece .pnotes { margin-top: var(--s-6); }
}

/* The sheet and mail art keep their paper edges. Status marks and postage are independent. */
.ctx .stamp.stamp--flat, .sec--piece .stamp.stamp--flat, .sec--approve .stamp.stamp--flat { --tilt: 0deg; }
.sec--piece .timeline .stamp { --tilt: 0deg; }
.sec--piece .timeline .stamp:is(.stamp--paid, .stamp--mailed, .stamp--void, .stamp--returned, .stamp--refunded) { --tilt: -3deg; }
.ctx .stamp--void, .sec--piece .stamp--void, .sec--approve .stamp--void { padding-inline: 0.8em; }
.ctx .stamp--void.stamp--sm::after, .sec--piece .stamp--void.stamp--sm::after { left: 0; right: 0; }
.ctx .stamp--void.stamp--sm, .sec--piece .stamp--void.stamp--sm { filter: none; mask-image: none; }
.ctx .stamp--held, .sec--piece .timeline .stamp--held { color: var(--post); }
.envelope--piece { container-type: inline-size; }
.envelope--piece::before, .envelope--piece::after { height: 46%; }
.envelope--piece .envelope__mark { top: 4%; right: 3%; background: transparent; padding: 0; }
.envelope--piece .envelope__mark .stamp { --stamp-size: clamp(0.55rem, 2.25cqw, 0.9rem); letter-spacing: 0.12em; padding-inline: 0.48em; }
.envelope--piece .envelope__void { left: auto; right: 5%; top: 66%; transform: translateY(-50%); padding: 0; background: transparent; }
.envelope--piece .envelope__void .stamp { --stamp-size: clamp(0.58rem, 2.45cqw, 1.35rem); }
.envelope--piece.postcard-art { aspect-ratio: var(--card-aspect); }
.postcard-art::before { display: none; }
.envelope--piece.postcard-art::after { top: 13%; bottom: 13%; height: auto; left: 50%; width: 1px; background: var(--line); }
.postcard-art .envelope__return { top: 13%; }
.postcard-art .envelope__mark { top: 13%; }
.postcard-art .envelope__void { left: 6%; right: auto; }
.postcard-art__address { position: absolute; left: 55%; right: 5%; bottom: 17%; display: grid;
  font-family: var(--font-mono); font-size: clamp(0.5rem, 2.4cqw, 0.8125rem); line-height: 1.35; overflow-wrap: anywhere; }

/* Home (P11): the hero carries an example approval card instead of the postmark illustration. */
.hero__grid { margin-top: 0; }
.hero__copy { display: grid; gap: var(--s-4); align-content: start; }
.hero__h1 { margin: 0; }
.hero__sub { margin: 0; }
.hero__cta { grid-column: auto; justify-content: flex-start; align-self: start; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-family: var(--font-mono); font-size: var(--fs-mono-sm); line-height: 1.45; }
.hero__facts span:not(:last-child)::after { content: "·"; padding-inline: 0.6em; color: var(--fg-3); }
.hero__works { font-family: var(--font-mono); font-size: var(--fs-mono-xs); color: var(--fg-2); }
.hero__card { grid-column: 8 / span 5; align-self: start; }
@media (max-width: 1020px) { .hero__card { grid-column: 1 / -1; max-width: 30rem; } }
@media (max-width: 599px) { .hero__cta { flex-direction: row; } .hero__cta .btn { width: auto; flex: 1 1 auto; } .hero__copy { gap: var(--s-3); } }

.minicard { position: relative; z-index: 1; margin: 0; display: grid; gap: var(--s-3); padding: calc(var(--s-4) + var(--airmail-h)) var(--s-4) var(--s-4);
  background: var(--airmail) 0 0 / 44px var(--airmail-h) repeat-x, var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.12), 0 18px 36px -20px rgba(30, 63, 154, 0.55); }

.minicard__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.minicard__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.minicard__body { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.minicard__doc { display: grid; gap: var(--s-1); }
.minicard__doc .doc { width: 100%; }
.minicard__pageno { font-family: var(--font-mono); font-size: var(--fs-mono-xs); color: var(--fg-2); }
.minicard__side { display: grid; gap: var(--s-3); min-width: 0; }
.minicard__facts > div { grid-template-columns: 4.5rem minmax(0, 1fr); padding: 0.25em 0; }
.minicard__slip .ledger-list { font-size: var(--fs-mono-xs); }
.minicard__decide { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); border-top: var(--rule-hair); }
.minicard__approve { pointer-events: none; }
.minicard__cancel { font-family: var(--font-mono); font-size: var(--fs-mono-xs); color: var(--fg-2); }
@media (max-width: 420px) { .minicard__body { grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-3); } }
.sec--promises { padding-block: 0 var(--s-8); }
.sec--promises .promises { max-width: 46rem; }

/* Shot fixes (round 1). */
.sheet__winlabel { background: var(--paper); padding-right: 0.3em; }
@media (max-width: 480px) { .approve .checklist > div { grid-template-columns: 8.4rem minmax(0, 1fr); } .minicard .checklist > div { grid-template-columns: 4.5rem minmax(0, 1fr); } }
@media (max-width: 599px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { display: grid; gap: 0.15rem; }
  .hero__facts span:not(:last-child)::after { content: none; }
  .hero { padding-top: var(--s-6); }
}
@media (min-width: 720px) { .hero__h1 { font-size: clamp(2.75rem, 1rem + 3.9vw, 4.5rem); } }
/* The tagline: two lines, the second the emphasis, in airmail blue over a row of red dots. Either line may run long
   (copy changes): lines wrap and balance instead of holding one width. */
.hero__h1 .line { display: block; text-wrap: balance; }
.hero__em { width: fit-content; font-style: normal; color: var(--blue); font-stretch: 108%; padding-bottom: 0.14em;
  background: radial-gradient(circle, var(--red) 0 0.045em, transparent 0.055em) 0 100% / 0.16em 0.12em repeat-x; }

/* The site-wide test strip: the same one-line band as the private pages, with a shorter note on phones. */
.modebar--site.modebar--one { margin-bottom: 0; }
.modebar--one > .modebar__long, .modebar--one > .modebar__short { overflow: hidden; text-overflow: ellipsis; }
.modebar__short { display: none; }
@media (max-width: 719px) { .modebar__long { display: none; } .modebar__short { display: inline; } }
.modestrip { padding-top: var(--s-3); }

/* Timeline: steps that haven't happened are quiet, at body size with a small ring, and "Not yet" stays on their line (W11). */
.timeline > li.is-pending { padding-bottom: var(--s-4); align-items: center; }
.timeline > li.is-pending .pm-mini { width: 1.5rem; height: 1.5rem; justify-self: center; border-width: 1.5px; box-shadow: none; }
.timeline > li.is-pending:not(:last-child)::after { top: 1.9rem; }
.timeline > li.is-pending .pm-mini b, .timeline > li.is-pending .pm-mini span { display: none; }
.timeline > li.is-pending .timeline__head { flex-wrap: nowrap; }
.timeline > li.is-pending .timeline__title { font-family: var(--font-text); font-size: 1rem; font-weight: 500; letter-spacing: 0; min-width: 0; }
.timeline > li.is-pending .timeline__head .t-fine { flex: none; }
/* The sticky bar's Approve uses the same label as the rail: the amount set apart in mono. */
.decide__btn.btn--stamp .btn__amount { padding-left: 0.6rem; }
.hold__link { margin-top: var(--s-2); }
/* Phones: a tighter context bar keeps the first sheet inside its 240 px budget now that the stamp sits on the meta
   line, and the test strip gets the same small gap above it as below. */
@media (max-width: 480px) {
  .ctx { padding-block: var(--s-3) var(--s-2); }
  .ctx__sub { margin-top: 0.2rem; }
}
.sec--approve > .wrap > .modebar--one:first-child, .sec--piece > .wrap > .modebar--one:first-child { margin-top: var(--s-2); }
.ctx__sub .nowrap { white-space: nowrap; }
/* A phone keeps the meta line to one line: the page count shows on the page label and the total in the Approve bar,
   both on the same first screen, so the meta line carries only the service. */
@media (max-width: 480px) { .ctx__sub .ctx__pages, .ctx__sub .ctx__price { display: none; } }

.account { max-width: 50rem; }
.account h1 { margin-bottom: 1rem; }
.account h2 { margin: 1.5rem 0 .5rem; font-size: 1.25rem; }
.account__panel { margin: 1.25rem 0; padding: 1.25rem; }
.account__panel h2 { margin-top: 0; }
.account__form { display: grid; gap: .55rem; max-width: 27rem; margin: 1rem 0; }
.account__form > input { font: inherit; min-width: 0; padding: .55rem; border: 1px solid currentColor; }
.account__form button { justify-self: start; }
.account__toggle { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.account__toggle input { width: 1rem; height: 1rem; flex: none; }
.account__balance { font-size: 2rem; }
.account__secret { overflow-wrap: anywhere; }
.account__list { list-style: none; padding: 0; }
.account__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .65rem 0; border-top: 1px solid var(--rule); }
.approve__attest { display: flex; align-items: start; gap: .5rem; padding: var(--s-2) 0; min-height: 2.75rem; cursor: pointer; }
.approve__attest input { width: 1.25rem; height: 1.25rem; flex: none; margin: max(0px, calc((1lh - 1.25rem) / 2)) 0 0; accent-color: var(--blue); }
.approve__attest:has([aria-invalid="true"]) { outline: 2px solid var(--red); outline-offset: 3px; }
