/* 欧关合规 Euguan free check (/check/). Tokens: brand.css (light copy of design/tokens.css).
   Anatomy from ~/.claude/skills/conversion-flow-craft/assets/flow-components.css: the real input
   under every card, one filled primary (panel on desktop, bottom bar on phones), colour-only hover,
   press scale .98, motion under 400 ms and none under reduced motion. Headings in zh use the
   self-hosted "Euguan Serif" subset (ops/hosting/build.py adds the @font-face on Pages).
   Round 2 (docs/design-research/09, 10): the result is one receipt card on an Apple grey page, the
   count rolls like an odometer, steps cross-fade, one accent (teal) plus ink. */
*, *::before, *::after { box-sizing: border-box; }
:root { --page: #ffffff; --tile: #f5f5f7; --ease-out: cubic-bezier(.2, 0, 0, 1); }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 64px; scroll-padding-bottom: 96px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--font); overflow-x: hidden; caret-color: var(--brand); }
body[data-step="result"], body[data-step="contact"], body[data-step="done"] { --page: var(--tile); }
:lang(zh) body, body:lang(zh) { line-height: 1.75; letter-spacing: 0; line-break: strict; }
p, li, dd, .opt-hint { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--brand-soft); color: var(--ink); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.noscript { max-width: 640px; margin: 24px auto; padding: 0 16px; }

/* ---------- header: 56 px, one hairline ---------- */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid rgb(0 0 0 / .08); } /* opaque: a blurred backdrop is re-rasterised every scroll frame */
.top-in { max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; min-width: 0; }
.logo { display: block; height: 26px; width: auto; flex: none; }
.brand-sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--line); }
@media (max-width: 640px) { .brand-sub { display: none; } }
.lang { display: inline-flex; gap: 0; flex: none; }
.lang button { min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; font: 500 14px/1 var(--font); color: var(--ink-3); cursor: pointer; border-radius: 999px; transition: color .15s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

/* ---------- layout: one column on phones; questions + sticky panel from 900 px ---------- */
/* bottom padding clears the fixed .sumbar (76 px + safe area), so the bar never covers the last lines of a result */
.flow-grid { max-width: 1120px; margin: 0 auto; padding: 8px 16px calc(128px + env(safe-area-inset-bottom)); }
.flow-main { min-width: 0; max-width: 640px; display: flow-root; }
/* named only while a step transition runs (flow.js go()), so the column is not its own layer at rest */
html.vt .flow-main { view-transition-name: flowmain; }
/* first paint = the first question's frame; the cards fill in without moving anything (CLS) */
body:not(.ready) [data-screen="q"] { min-height: 820px; }
@media (min-width: 900px) {
  .flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; padding: 32px 24px 96px; }
}

/* ---------- step transition: the question column cross-fades, chrome stays put ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(flowmain) { animation: vt-out 160ms var(--ease-out) both; }
::view-transition-new(flowmain) { animation: vt-in 240ms var(--ease-out) both; }
::view-transition-group(flowmain) { animation-duration: 240ms; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- headings: the serif carries the brand in Chinese; system sans in English ---------- */
.h1 { margin: 8px 0 8px; font: 700 28px/1.32 var(--font); letter-spacing: 0; color: var(--ink); }
:lang(zh) .h1, :lang(zh) .rc-h, :lang(zh) .rh-num, :lang(zh) .rh-unit, :lang(zh) .fees h3 { font-family: "Euguan Serif", var(--font); }
/* Chinese headings break at punctuation and spaces, never inside a word ("德国" stays whole); a
   heading with no break point still wraps instead of overflowing. Punctuation stays full-width (no palt). */
:lang(zh) .h1 { word-break: keep-all; overflow-wrap: anywhere; }
/* CJK labels and notes break at punctuation or spaces, never leave one character alone on a line */
:lang(zh) .opt-name, :lang(zh) .reassure, :lang(zh) .sub, :lang(zh) .tally-label { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
:lang(en) .h1 { font-weight: 600; letter-spacing: -.022em; line-height: 1.12; font-size: 30px; }
@media (min-width: 900px) { .h1 { font-size: 40px; line-height: 1.25; } :lang(en) .h1 { font-size: 44px; line-height: 1.08; } }
.sub { margin: 0 0 24px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
h2 { font: 600 19px/1.4 var(--font); margin: 32px 0 12px; }

.q-top { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 12px 0 0; margin: 0; border: 0; background: none; color: var(--ink-2); font: 500 15px/1 var(--font); cursor: pointer; flex: none; }
.back::before { content: ""; width: 8px; height: 8px; border-left: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg); margin-left: 4px; }
.back:hover { color: var(--ink); }
.progress { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; flex: 1; }
.progress-bar { display: block; flex: 1; max-width: 160px; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.progress-bar > i { display: block; height: 100%; background: var(--ink); transform-origin: left; transition: transform .24s var(--ease); }

/* ---------- selectable cards: the real radio underneath, the label is the card ---------- */
.opts { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0; padding: 0; border: 0; min-width: 0; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 16px 48px 16px 16px; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--field-line); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .15s var(--ease), background-color .15s var(--ease), transform .15s var(--ease); }
.opt:hover { background: #fafafb; }
.opt:active { transform: scale(.98); }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: var(--surface); }
/* the radio becomes a filled teal tick in 120 ms */
.opt::after { content: ""; position: absolute; top: 50%; right: 16px; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--field-line); background: var(--surface);
  transition: background-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out), transform 120ms var(--ease-out); }
.opt:has(input:checked)::after { box-shadow: none; transform: scale(1.06); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.opt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-name { font: 600 18px/1.35 var(--font); }
.opt-hint { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.opt-src { display: inline-block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--brand); }
.opt-eff { font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 1.5em; }
.opt-eff:empty { display: none; }
.plus { display: inline-block; min-width: 26px; padding: 0 4px; margin-right: 0; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 13px/20px var(--font); text-align: center; }

/* category tiles: product photographs, two columns on phones, three from 480 px */
.opts--cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }   /* one gap between every card, every step */
@media (min-width: 480px) { .opts--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.opt--tile { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0; overflow: hidden; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.opt--tile::after { top: 10px; right: 10px; margin-top: 0; }
.opt--tile .opt-body { padding: 8px 12px 12px; }
.opt--tile .opt-name { font-size: 16px; line-height: 1.35; }
.opt--tile .opt-src { font-size: 13px; }
.ph { display: block; aspect-ratio: 4 / 3; background-color: var(--tile); background-repeat: no-repeat;
  background-image: url("/check/img/cats.webp"); background-size: 1000% auto; background-position-y: 50%; }
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .ph { background-image: image-set(url("/check/img/cats.avif") type("image/avif"), url("/check/img/cats.webp") type("image/webp")); }
}
.ph--charger_cable { background-position-x: 0; } .ph--wireless_audio { background-position-x: 11.111%; }
.ph--smart_device { background-position-x: 22.222%; } .ph--small_appliance { background-position-x: 33.333%; }
.ph--led_lighting { background-position-x: 44.444%; } .ph--power_bank { background-position-x: 55.556%; }
.ph--toy { background-position-x: 66.667%; } .ph--home_goods { background-position-x: 77.778%; }
.ph--apparel { background-position-x: 88.889%; } .ph--other { background-position-x: 100%; }
.opt--tile:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); }

/* packaging: 2 x 2, text only */
.opts--pkg { grid-template-columns: 1fr 1fr; }
.opts--pkg .opt { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 48px 16px 16px; min-height: 120px; }
.opts--pkg .opt::after { top: 16px; left: 16px; right: auto; margin-top: 0; }

.textlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 16px; color: var(--link); }
.partner-note { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.partner-note a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- error summary (GOV.UK) ---------- */
.errsum { margin: 8px 0 16px; padding: 12px 16px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--bad); background: var(--bad-soft); }
.errsum:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.errsum h2 { margin: 0 0 0; font-size: 16px; color: var(--bad); }
.errsum a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bad); font-weight: 600; }

/* ---------- primary button: a full pill (china-wechat.md section 0), idle / busy / done in one cell ---------- */
.btn { position: relative; display: inline-grid; place-items: center; width: 100%; min-height: 56px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font: 600 17px/1.2 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s var(--ease), transform .15s var(--ease); }
.btn:hover { background: #0b4b5c; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn > span { grid-area: 1 / 1; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.btn__busy, .btn__done { opacity: 0; transform: translateY(6px); display: inline-flex; align-items: center; gap: 8px; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__idle { opacity: 0; transform: translateY(-6px); }
.btn[aria-busy="true"] .btn__busy { opacity: 1; transform: none; }
.btn.is-done .btn__idle, .btn.is-done .btn__busy { opacity: 0; }
.btn.is-done .btn__done { opacity: 1; transform: none; }
.btn__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--field-line); color: var(--ink); font: 500 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease); }
.btn-quiet:hover { background: var(--surface-2); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.reassure { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-align: center; }

/* ---------- the tally: desktop panel and phone bar show the same engine count ---------- */
.panel { display: none; }
@media (min-width: 900px) {
  .panel { display: block; position: sticky; top: 88px; }
  .panel-in { padding: 24px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
  body[data-step="result"] .panel-in, body[data-step="contact"] .panel-in, body[data-step="done"] .panel-in { box-shadow: none; }
  /* on the result the items are on the receipt: the panel holds only the actions (09 #3) */
  body:is([data-step="result"], [data-step="contact"], [data-step="done"]) .panel :is(.tally-label, .tally, .tally-rows, .tally-also) { display: none; }
  body:is([data-step="result"], [data-step="contact"], [data-step="done"]) .panel .btn { margin-top: 0; }
}
.tally-label { margin: 0; font-size: 15px; color: var(--ink-2); }
.tally { margin: 0 0 0; }
.tally-n { display: inline-block; font: 600 48px/1.1 var(--font); letter-spacing: -.02em; }
.tally-rows { list-style: none; margin: 12px 0 0; padding: 0; }
.tally-rows li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line-2); }
.tally-rows li:last-child { border-bottom: 1px solid var(--line-2); }
.tally-rows li.is-new, .sumbar-sheet li.is-new { animation: rowin 240ms var(--ease-out) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.tr-name { font: 600 16px/1.45 var(--font); }
.tr-why { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tally-also { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.tally-also:empty { display: none; }
.panel .btn { margin-top: 24px; }
.qr { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.qr-code { flex: none; width: 112px; height: 112px; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-h { margin: 0; font: 600 15px/1.45 var(--font); }
.qr-sub { margin: 0 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* the odometer: one 1em column of digits per place, moved with translateY (360 ms) */
.odo { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-col { display: flex; flex-direction: column; transition: transform 360ms var(--ease-out); }
.odo-col > span { display: block; height: 1em; line-height: 1; }
.odo-u { font-size: .5em; font-weight: 600; margin-left: .18em; letter-spacing: 0; }
.is-flash { animation: flash 400ms var(--ease-out); }
@keyframes flash { 0%, 40% { color: var(--brand); } }

.sumbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #ffffff; border-top: 1px solid rgb(0 0 0 / .08); }
.sumbar-in { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
.sumbar-count { flex: 1; min-width: 0; min-height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.sumbar-label { font-size: 13px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.sumbar-n { display: inline-block; font: 600 26px/1.15 var(--font); }
.sumbar .btn { width: auto; flex: none; min-width: 168px; }
body[data-step="result"] .sumbar-count, body[data-step="done"] .sumbar-count, body[data-step="contact"] .sumbar-count { display: none; }
body[data-step="result"] .sumbar .btn, body[data-step="done"] .sumbar .btn, body[data-step="contact"] .sumbar .btn { flex: 1; }
body[data-tally="start"] .sumbar-n, body[data-tally="start"] .tally { display: none; }
body[data-tally="start"] .sumbar-label { font-size: 16px; font-weight: 600; color: var(--ink); }
.sumbar-sheet { max-height: 55vh; overflow: auto; padding: 4px 16px 4px; border-bottom: 1px solid var(--line-2); }
.sumbar-sheet ul { list-style: none; margin: 0; padding: 0; }
.sumbar-sheet li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.sumbar-sheet li:last-child { border-bottom: 0; }
@media (min-width: 900px) { .sumbar { display: none; } }

/* ---------- inputs ---------- */
.field { display: grid; gap: 4px; margin: 0 0 16px; }
.field label { font: 600 16px/1.4 var(--font); }
.hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.input { width: 100%; min-height: 52px; padding: 12px 16px; font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--input-bg); border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--field-line); transition: box-shadow .15s var(--ease); -webkit-appearance: none; appearance: none; }
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-soft); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--bad); }
.input--area { min-height: 148px; resize: vertical; line-height: 1.7; }
.field-err { margin: 0; font-size: 14px; color: var(--bad); }
.field-err.soft { color: var(--warn-ink); }
.field-err:empty { display: none; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0 0 0; accent-color: var(--brand); }
.check-note { margin: -4px 0 4px 32px; font-size: 14px; }
.check-note a { display: inline-flex; align-items: center; min-height: 44px; }
.reverse { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.mini { margin: 0 0 24px; padding: 12px 16px 8px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgb(16 26 44 / .05); }
.mini-h { margin: 0 0 8px; font: 600 17px/1.4 var(--font); }
.mini-rows { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.mini-rows li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.mini-rows li:last-child { border-bottom: 0; }
.mini-rows li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- your answers, with Change links ---------- */
.summary { margin: 8px 0 8px; padding: 0 16px; border-radius: 18px; background: var(--surface); }
.summary-row { display: grid; grid-template-columns: 6em minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--ink-2); font-size: 15px; }
.summary-row dd { margin: 0; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; }
.summary-row dd .opt-src { font-weight: 400; margin-top: 0; }
.summary-act { justify-self: end; }
.change { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: flex-end; font-size: 15px; font-weight: 500; }
@media (max-width: 560px) { .summary { padding: 0 16px; } .summary-row { grid-template-columns: 5em minmax(0, 1fr) auto; gap: 0 8px; } }

/* ---------- the result: ONE receipt card ---------- */
.res-top { margin: 0 0 4px; }
.rcpt { position: relative; margin: 4px 0 0; padding: 24px 24px 24px; border-radius: 28px; background: var(--surface); box-shadow: 0 1px 2px rgb(16 26 44 / .04), 0 30px 60px -36px rgb(16 26 44 / .22); }
@media (min-width: 560px) { .rcpt { padding: 32px 32px 24px; } }
.res-h { margin: 0; }
.rh-lead { display: block; font: 600 17px/1.5 var(--font); color: var(--ink-2); letter-spacing: 0; }
.rh-n { display: flex; align-items: baseline; margin: 0 0 0; color: var(--ink); }
.rh-num { font-weight: 700; font-size: 88px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rh-unit { font-size: 30px; font-weight: 700; line-height: 1; margin-left: .2em; }
:lang(en) .rh-num { font-weight: 600; letter-spacing: -.04em; }
:lang(en) .rh-unit { font-weight: 600; font-size: 28px; letter-spacing: -.01em; }
@media (min-width: 900px) { .rh-num { font-size: 96px; } .rh-unit { font-size: 32px; } }
.rh-basis { margin: 8px 0 24px; font-size: 15px; color: var(--ink-2); }
.rc-h { margin: 32px 0 12px; font-size: 21px; line-height: 1.35; }
.rc-h--quiet { margin: 24px 0 4px; font-size: 16px; color: var(--ink-2); font-family: var(--font) !important; font-weight: 600; }
.receipt { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.rc-row { border-bottom: 1px solid var(--line-2); }
.receipt.is-in .rc-row { animation: rowin 240ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }
.rc-row summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 0; cursor: pointer; min-height: 44px; }
.rc-row summary::-webkit-details-marker { display: none; }
.todo { flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.todo.done { box-shadow: none; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.rc-main { display: flex; flex-direction: column; min-width: 0; }
.rc-name { font: 600 17px/1.45 var(--font); }
.rc-why { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rc-cost { font-size: 15px; color: var(--ink); text-align: right; white-space: nowrap; padding-top: 0; }
.rc-row[data-st="have"] .rc-name { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.rc-row[data-st="have"] .rc-cost { color: var(--brand); }
@media (max-width: 559px) {
  .rc-row summary { grid-template-columns: auto minmax(0, 1fr); }
  .rc-cost { grid-column: 2; text-align: left; padding-top: 0; margin-top: -8px; white-space: normal; font-size: 14px; color: var(--ink-2); }
}
.rc-row summary:hover .rc-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rc-body { padding: 0 0 16px 32px; }
.rc-body dl { margin: 0; display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 4px 12px; font-size: 15px; line-height: 1.65; }
@media (max-width: 559px) { .rc-body { padding-left: 0; } .rc-body dl { grid-template-columns: 1fr; gap: 0; } .rc-body dt { margin-top: 8px; } }
.rc-body dt { color: var(--ink-2); }
.rc-body dd { margin: 0; }
.psrc a { white-space: nowrap; }
.srcs { margin: 0; padding: 0; list-style: none; }
.srcs li { margin: 0 0 4px; }
.srcs a { word-break: break-word; }
.gloss { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.eff-gloss { display: grid; gap: 4px; margin: 12px 0 0; }
.rc-total { display: flex; justify-content: space-between; padding: 16px 0; font: 600 18px/1.4 var(--font); border-bottom: 1.5px solid var(--ink); }
.receipt--quiet { border-top-width: 1px; border-top-color: var(--line); }
.receipt--quiet .todo { box-shadow: none; width: 6px; height: 6px; margin: 8px 8px 0; border-radius: 50%; background: var(--ink-3); }
.receipt--quiet .rc-name { font-size: 16px; font-weight: 500; }
.receipt--quiet .rc-cost { color: var(--ink-2); font-size: 14px; }
.rcpt-foot { margin: 24px 0 0; padding-top: 12px; border-top: 1px dashed var(--field-line); font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.badge { display: inline-block; padding: 0 4px; border-radius: 4px; font-size: 12px; line-height: 1.6; }
.badge.ok { color: var(--brand); background: var(--brand-soft); }
.badge.warn { color: var(--ink-2); background: var(--surface-2); }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 0 16px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--field-line); background: var(--surface); color: var(--ink); font: 500 15px/1.2 var(--font); cursor: pointer; }
.toggle::before { content: ""; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--field-line); }
.toggle[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--brand); }
.toggle[aria-pressed="true"]::before { box-shadow: none; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/18px no-repeat; }

/* ---------- what it costs: our fee and partner fees, side by side, never one total ---------- */
.fees { margin: 16px 0 0; padding: 24px 24px 24px; border-radius: 28px; background: var(--surface); }
@media (min-width: 560px) { .fees { padding: 32px 32px 32px; } }
.fees .rc-h { margin-top: 0; }
.fee-group { margin: 24px 0 0; }
.fee-group h3 { margin: 0 0 8px; font: 700 17px/1.4 var(--font); }
.fee-list { margin: 0; border-top: 1.5px solid var(--ink); }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.fee-row dt { display: flex; flex-direction: column; min-width: 0; font-size: 16px; }
.fee-row dt small { font-size: 14px; color: var(--ink-3); }
.fee-row dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.fee-v { font: 600 18px/1.35 var(--font); font-variant-numeric: tabular-nums; }
.fee-row dd small { font-size: 14px; color: var(--ink-2); }
.fee-row.total { border-top: 1.5px solid var(--ink); border-bottom: 0; margin-top: 0; }
.fee-row:has(+ .fee-row.total) { border-bottom: 0; }   /* one rule above the total, not two */
.fee-row.total dt { font-weight: 600; }
.fee-row.total .fee-v { font-size: 21px; }
.fee-note { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.status-pill { display: inline-flex; align-items: center; min-height: 32px; margin: 24px 0 0; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); font: 600 14px/1.4 var(--font); color: var(--ink); }
.fee-terms { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.fee-fx { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.note { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 0; }

/* ---------- the Starter package: the ONE next step that ends the result ---------- */
.starter { margin: 32px 0 0; padding: 24px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--brand); }
@media (min-width: 560px) { .starter { padding: 32px; } }
.starter .rc-h { margin-top: 0; }
.starter-lede { margin: 4px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.starter-sub { margin: 24px 0 8px; font: 700 17px/1.4 var(--font); }
.starter-items { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.starter-items li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.starter-items b { font: 600 16px/1.5 var(--font); }
.starter-items span { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.starter-other { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.starter-risk { margin: 16px 0 0; font-size: 15px; line-height: 1.65; }
.starter-act { margin: 24px 0 0; }
.starter-act .btn { margin-top: 0; }
.starter-wait { margin: 16px 0 8px; padding: 0 0 20px; border-bottom: 1px solid var(--line-2); }
.rc-wait { margin: 4px 0 8px; }
.starter-wait p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.pref { margin: 0 0 8px; padding: 0; border: 0; }
.pref legend { margin: 0 0 4px; padding: 0; font: 600 15px/1.5 var(--font); }

.share { margin: 32px 0 0; padding-top: 4px; }
.share h2 { margin: 24px 0 4px; font-size: 17px; }
.share-msg { margin: 8px 0 0; font-size: 14px; color: var(--brand); min-height: 1.4em; }
.share-url { margin-top: 8px; font-size: 16px; }
.card-panel { margin-top: 16px; }
.card-nick-l { display: block; margin: 12px 0 6px; font-size: 14px; color: var(--ink-2); }
.card-nick { max-width: 320px; }
.card-panel .btn-quiet { margin: 0 8px 8px 0; }
.card-img { display: block; width: 100%; max-width: 320px; height: auto; margin: 8px 0 12px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }

/* German label draft */
.label-d { margin: 24px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.label-d > summary { display: flex; align-items: center; min-height: 52px; font-weight: 600; cursor: pointer; }
.label { position: relative; margin: 0 0 12px; padding: 16px; border-radius: 12px; background: var(--surface); font: 400 14px/1.6 var(--mono); overflow: hidden; }
.label p { margin: 0 0 4px; }
.label-t { font-weight: 600; }
.label .slot { color: var(--brand); }
.label .slot.have { color: var(--ink-2); }
.label::after { content: attr(data-mark); position: absolute; right: 12px; top: 10px; font: 600 12px/1 var(--font); color: var(--ink-3); }
.label-cap { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }

/* ---------- the one notice line: outside every screen, said once, calmly (EUG-15; 09 #4) ---------- */
.flow-foot { margin: 32px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.flow-foot p { margin: 0; }
body:not(.ready) .flow-foot { visibility: hidden; }
.scope-note { margin: 24px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.disclaimer { margin: 16px 4px 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn__spin { animation: spin 2s linear infinite !important; }
}
.addmail { margin: -4px 0 8px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 15px/1.4 var(--font); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- the compliance score (合规分) + the top risks, above the receipt (check_score.js) ---------- */
.score { --score-c: var(--ink); display: flex; align-items: center; gap: 24px; margin: 4px 0 0; padding: 24px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.score[data-band="good"] { --score-c: var(--ok); } .score[data-band="gaps"] { --score-c: var(--warn); } .score[data-band="large"] { --score-c: var(--bad); }
.score-ring { position: relative; flex: none; width: 112px; height: 112px; }
.score-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track { stroke: var(--line-2); } .score-arc { stroke: var(--score-c); transition: stroke-dashoffset .5s var(--ease); }
.score-num { position: absolute; inset: 0; display: grid; place-items: center; font: 700 40px/1 var(--font); letter-spacing: -.02em; color: var(--score-c); font-variant-numeric: tabular-nums; }
.score-txt { min-width: 0; }
.score-h { margin: 0; font: 600 15px/1.4 var(--font); color: var(--ink-2); }
.score-band { margin: 4px 0 4px; font: 700 24px/1.3 var(--font); color: var(--score-c); }
.score-sub { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.score-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--brand); }
.risks { margin: 24px 0 0; }
.risks-h { margin: 0 0 8px; font: 700 20px/1.4 var(--font); }
.risk-list { list-style: none; margin: 0; padding: 0; counter-reset: risk; }
.risk { counter-increment: risk; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line-2); }
.risk::before { content: counter(risk); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 600 14px/28px var(--font); text-align: center; }
.risk-name { margin: 0 0 8px; font: 600 17px/1.45 var(--font); }
.risk-dl { margin: 0; display: grid; gap: 8px; }
/* the label column is as wide as the longest label in the language ("Consequence" is 11 letters, "后果" is 2), never a fixed 4.5em that the English word overran;
   on phones the label sits above its value, so a long value gets the full width */
.risk-row { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.55; }
:lang(en) .risk-row { grid-template-columns: 7.5em minmax(0, 1fr); }
.risk-row dt { color: var(--ink-3); min-width: 0; overflow-wrap: anywhere; } .risk-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .risk-row, :lang(en) .risk-row { grid-template-columns: minmax(0, 1fr); gap: 0; } .risk-row dt { font-size: 13px; } }
.risk-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); font-size: 12px; line-height: 20px; white-space: nowrap; }
.risk-tag.ok { background: var(--ok-soft); color: var(--ok); }
.score-disc { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.r-score { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.r-score b { font: 700 32px/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .score { gap: 12px; padding: 16px; } .score-ring { width: 92px; height: 92px; } .score-num { font-size: 32px; } }

/* ---------- /check/r: one seller's shared summary, the same receipt ---------- */
/* /check/r headings outside the serif subset stay in one sans face, never a per-glyph mix */
:lang(zh) .h1.r-sans { font-family: var(--font); }
.r-main { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.r-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 0; }
.todo.dot { box-shadow: none; width: 6px; height: 6px; margin: 8px 8px 0; border-radius: 50%; background: var(--ink-3); }
.r-row[data-st="m"] .r-st { color: var(--ink); font-weight: 600; }
.r-row:not([data-st="m"]) .rc-name { font-weight: 500; }
.r-st { font-size: 14px; color: var(--ink-2); }
.r-warn { margin: 0 0 16px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.r-cta { margin: 24px 0 0; }
.r-cta .btn { text-decoration: none; }
.share-text { min-height: 140px; margin-top: 12px; font-size: 15px; line-height: 1.6; resize: vertical; }

.flow-foot .legal-links { margin: 8px 0 0; }
.flow-foot .legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); }

/* funnel fixes 2026-10-27: the per-row toggle sits on the row (text label), the partner price is a small plain-text citation, WeChat contact line, booking link */
.rc-row > .toggle { margin: 0 0 16px 32px; }
@media (max-width: 560px) { .rc-row > .toggle { margin-left: 0; } }
.psrc-note { font-size: 11px; line-height: 1; color: var(--ink-3); margin-left: 4px; }
.wx-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 24px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.wx-line .wx-t { overflow-wrap: anywhere; }
.wx-copy { min-height: 44px; }
.notice-link { margin: 4px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.notice-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-underline-offset: 3px; }
.book-cta { margin: 32px 0 8px; }
.book-cta h2 { font-size: 18px; line-height: 1.4; margin: 0 0 4px; }
.opts--have .opt { min-height: 60px; }
.opts--have .opt::after { border-radius: 6px; }   /* a multi-select reads as squares, not the single-choice circles */
/* Q1 paste shortcut: directly under the question, above the tiles */
#paste-link { margin: -12px 0 12px; }
