:root {
    color-scheme: light;
    --bg: var(--cm-bg);
    --fg: var(--cm-ink);
    --muted: var(--cm-text-2);
    --subtle: var(--cm-text-3);
    --card: var(--cm-surface);
    --panel: var(--cm-line-soft);
    --border: var(--cm-line);
    --accent: var(--cm-brand);
    --accent-strong: var(--cm-brand-strong);
    --accent-fg: var(--cm-on-brand);
    --danger: var(--cm-err);
    --success: var(--cm-ok);
    --warn: var(--cm-warn);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0; min-height: 100%;
    background: var(--bg);
    color: var(--fg);
    font: var(--cm-type-body, 400 14px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif);
  }
  body { min-height: 100svh; }
  main { min-height: 100svh; display: grid; place-items: start center; padding: clamp(12px, 2.8svh, 28px); }
  .card {
    width: min(100%, 430px); max-width: min(430px, calc(100vw - 16px));
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--cm-radius-card); padding: clamp(18px, 3svh, 24px); box-shadow: var(--cm-shadow-card);
  }
  .checkout-context, .checkout-action { min-width: 0; }
  .top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
  .mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--panel); color: var(--accent);
    border: 1px solid var(--border);
    font: 800 12px/1 var(--cm-font-mono);
    letter-spacing: 0.02em;
  }
  .chainmore-logo {
    display: block; width: 26px; height: 22px; overflow: visible;
  }
  .chainmore-logo-path {
    fill: none; stroke: var(--cm-logo-mid); stroke-width: 1.26; stroke-linecap: round;
  }
  .chainmore-logo-start { fill: var(--cm-logo-start); }
  .chainmore-logo-mid { fill: var(--cm-logo-mid); }
  .chainmore-logo-end { fill: var(--cm-logo-end); }
  .mark[data-chainmore-mark="brand"] {
    background: var(--card);
  }
  .chainmore-mark-logo {
    width: 22px; height: 19px;
  }
  h1 { margin: 0; font: var(--cm-type-title, 700 22px/1.15 system-ui); font-size: 18px; }
  .brand { color: var(--muted); font: var(--cm-type-sub, 400 13px/1.55 system-ui); margin-top: 1px; }
  .amount-panel {
    background: var(--card); color: var(--fg); border: 1px solid var(--border);
    border-radius: var(--cm-radius-card, 12px); padding: 18px 0 16px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
    margin-bottom: 16px; box-shadow: none; border-width: 0 0 1px; border-radius: 0;
  }
  .amount-label { color: var(--muted); font: var(--cm-type-meta, 400 12px/1.5 system-ui); font-weight: 650; letter-spacing: 0; text-transform: none; }
  .amount { font: var(--cm-type-amount, 600 34px/1.1 system-ui); letter-spacing: -0.02em; margin-top: 3px; }
  .asset { color: var(--muted); font-weight: 700; margin-bottom: 4px; white-space: nowrap; }
  .panel {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--cm-radius-card, 12px);
    padding: 16px; margin-bottom: 14px;
  }
  .success-card, .status-card { text-align: center; padding: 20px 16px; }
  .success-mark, .status-mark {
    width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center;
    margin: 0 auto 12px; background: var(--cm-ok-mark); color: var(--success);
    font-size: 32px; font-weight: 900;
  }
  .status-mark { font-size: 30px; }
  .pending-mark { background: var(--cm-brand-soft); color: var(--accent-strong); }
  .ok-mark { background: var(--cm-ok-mark); color: var(--success); }
  .warn-mark { background: var(--cm-warn-soft); color: var(--warn); }
  .err-mark { background: var(--cm-err-soft); color: var(--danger); }
  .success-state { border-color: var(--cm-ok-border); background: var(--cm-ok-state); }
  .success-title, .status-title { font-size: 24px; line-height: 1.15; font-weight: 850; letter-spacing: 0; }
  .release-pill {
    display: inline-flex; align-items: center; justify-content: center;
    margin: 14px auto 0; min-height: 32px; padding: 6px 12px;
    border-radius: 999px; color: var(--success);
    background: var(--cm-ok-soft); border: 1px solid var(--cm-ok-border);
    font-size: 12px; font-weight: 850;
  }
  .receipt-lines {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
    display: grid; gap: 9px; text-align: left;
  }
  .receipt-lines div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .receipt-lines span { color: var(--muted); }
  .receipt-lines strong { color: var(--fg); }
  .receipt-lines a { color: var(--accent-strong); text-decoration: none; }
  .receipt-lines a:hover { text-decoration: underline; }
  .receipt-lines a:focus-visible,
  .wallet-choice:focus-visible,
  .wallet-link:focus-visible,
  button:focus-visible {
    outline: 3px solid var(--accent-strong);
    outline-offset: 3px;
  }
  .wallet-connect-panel { text-align: center; }
  .wallet-choice-panel { text-align: left; }
  .payment-method-panel {
    background: transparent; border: 0; padding: 0; margin-bottom: 14px;
  }
  .payment-method-list { display: grid; gap: 10px; margin-top: 8px; }
  .payment-method-row {
    min-height: 58px; border-radius: var(--cm-radius-control);
    border: 1px solid var(--border); background: var(--card);
    display: grid; grid-template-columns: 18px 34px minmax(0, 1fr);
    align-items: center; gap: 10px; padding: 10px 12px;
  }
  .payment-method-row.selected {
    border-color: var(--cm-brand-border);
    box-shadow: 0 0 0 1px var(--cm-brand-ring);
  }
  .payment-method-row > span:nth-child(3) { min-width: 0; }
  .payment-method-row.disabled { background: var(--panel); }
  .payment-method-row.disabled .method-icon { color: var(--muted); background: var(--card); }
  .active-payment-method {
    min-height: 62px; margin-bottom: 12px; padding: 10px 12px;
    border: 1px solid var(--cm-brand-border); border-radius: var(--cm-radius-control);
    background: var(--card); box-shadow: 0 0 0 1px var(--cm-brand-ring);
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center; gap: 10px;
  }
  .active-payment-method-copy { min-width: 0; display: grid; gap: 2px; }
  .active-payment-method .label { font-size: 10px; }
  .active-payment-method .method-icon { width: 38px; height: 38px; }
  .active-payment-method .method-badge { align-self: center; }
  .other-payment-methods {
    margin: 0 0 12px; border: 1px solid var(--border);
    border-radius: var(--cm-radius-control); background: var(--card); overflow: hidden;
  }
  .other-payment-methods summary {
    min-height: 58px; padding: 10px 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    list-style: none;
  }
  .other-payment-methods summary::-webkit-details-marker { display: none; }
  .other-payment-methods summary strong { display: block; color: var(--fg); }
  .other-payment-methods summary small {
    display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35;
  }
  .disclosure-icon {
    width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 999px;
    display: grid; place-items: center; color: var(--muted); font-size: 18px; line-height: 1;
  }
  .other-payment-methods[open] .disclosure-icon { transform: rotate(45deg); }
  .other-payment-method-list {
    margin: 0; padding: 0 10px 10px; border-top: 1px solid var(--border);
  }
  .other-payment-methods:not([open]) .other-payment-method-list { display: none; }
  .method-radio {
    width: 16px; height: 16px; border-radius: 999px; border: 1px solid var(--subtle);
    display: inline-grid; place-items: center;
  }
  .payment-method-row.selected .method-radio::after {
    content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  }
  .method-icon {
    width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
    background: var(--cm-brand-soft); color: var(--accent);
    font: 800 11px/1 var(--cm-font-mono);
  }
  .method-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }
  .method-icon-symbol {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .method-icon-card,
  .method-icon-wallet,
  .method-icon-bank,
  .method-icon-unknown {
    background: var(--cm-brand-soft);
    color: var(--accent-strong);
    border: 1px solid var(--cm-brand-border);
  }
  .method-icon-usdc {
    background: var(--cm-usdc-soft);
    color: var(--cm-usdc);
    border: 1px solid var(--cm-usdc-border-soft);
  }
  .usdc-logo {
    width: 28px;
    height: 28px;
    display: block;
  }
  .usdc-logo-ring,
  .usdc-logo-symbol {
    fill: none;
    stroke: var(--cm-on-brand);
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .usdc-logo-ring { stroke-width: 1.8; opacity: 0.86; }
  .usdc-logo-symbol { stroke-width: 2.15; }
  .usdc-logo-bg { fill: var(--cm-usdc); }
  .method-name { font-weight: 750; color: var(--fg); line-height: 1.2; }
  .method-meta { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
  .method-copy { display: block; min-width: 0; }
  .method-availability {
    display: block; margin-top: 3px; color: var(--success);
    font-size: 11px; line-height: 1.3; font-weight: 750;
  }
  .method-availability-disabled { color: var(--muted); }
  .method-badge {
    border: 1px solid var(--cm-ok-border); border-radius: var(--cm-radius-chip);
    color: var(--success); background: var(--cm-ok-tint);
    padding: 2px 6px; font: 700 11px/1.4 var(--cm-font-ui);
  }
  .method-badge-muted {
    border-color: var(--border);
    color: var(--muted);
    background: var(--panel);
  }
  .card-entry-panel { display: grid; gap: 12px; }
  .card-entry-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px;
  }
  .card-entry-title {
    margin-top: 3px; color: var(--fg); font-size: 18px; line-height: 1.2;
    font-weight: 850;
  }
  .card-fields { display: grid; gap: 8px; }
  .card-field-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .card-field-shell {
    min-height: 54px; border-radius: var(--cm-radius-control);
    border: 1px solid var(--cm-field-border); background: var(--card);
    display: grid; align-content: center; gap: 3px; padding: 9px 12px;
  }
  .card-field-shell span {
    color: var(--subtle); font-size: 11px; line-height: 1.1; font-weight: 750;
  }
  .card-field-shell strong {
    color: var(--muted); font-size: 14px; line-height: 1.2; font-weight: 650;
  }
  .card-field-number strong {
    font: var(--cm-type-mono);
    color: var(--fg);
  }
  .card-entry-panel button:disabled {
    opacity: 1;
    color: var(--muted);
    background: var(--cm-chip-bg);
    border: 1px solid var(--border);
  }
  .wallet-choice {
    display: block; text-align: left; margin-top: 10px; padding: 14px 16px;
  }
  .wallet-choice > span,
  .wallet-choice-copy > span { display: block; font-weight: 850; }
  .wallet-choice small {
    display: block; margin-top: 3px; color: var(--muted);
    font-size: 12px; line-height: 1.35; font-weight: 650;
  }
  .wallet-choice:not(.secondary-choice) small { color: var(--cm-on-brand-muted); }
  .wallet-choice.secondary-choice {
    background: var(--card); color: var(--fg); border: 1px solid var(--border);
  }
  .wallet-choice.secondary-choice:hover { background: var(--panel); }
  .wallet-choice.secondary-choice small { color: var(--muted); }
  .wallet-choice.phone-choice {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding-right: 14px;
  }
  .wallet-choice-copy { min-width: 0; }
  .wallet-choice-cue {
    position: relative; flex: 0 0 auto; width: 54px; height: 54px;
    border-radius: 16px; border: 1px solid var(--cm-usdc-border);
    background:
      var(--cm-route-gradient),
      var(--card);
    box-shadow: var(--cm-route-inset);
  }
  .wallet-choice-cue::before,
  .wallet-choice-cue::after,
  .wallet-choice-cue span {
    position: absolute; width: 12px; height: 12px; border-radius: 3px;
    border: 3px solid var(--accent-strong); content: "";
  }
  .wallet-choice-cue::before { left: 10px; top: 10px; }
  .wallet-choice-cue::after { right: 10px; top: 10px; }
  .wallet-choice-cue span:nth-child(1) { left: 10px; bottom: 10px; }
  .wallet-choice-cue span:nth-child(2) {
    right: 12px; bottom: 12px; width: 7px; height: 7px;
    border: 0; background: var(--accent-strong);
  }
  .wallet-choice-cue span:nth-child(3) {
    right: 24px; bottom: 10px; width: 6px; height: 6px;
    border: 0; background: var(--fg); opacity: 0.76;
  }
  .wallet-choice-cue span:nth-child(4) {
    right: 10px; bottom: 25px; width: 6px; height: 6px;
    border: 0; background: var(--fg); opacity: 0.76;
  }
  .wallet-qr {
    display: block; width: min(100%, 220px, 42svh); height: auto; margin: 12px auto;
    border-radius: 18px; background: var(--card); border: 1px solid var(--border); padding: 10px;
  }
  .wallet-qr.pending {
    height: min(220px, 40svh); min-height: 150px; display: grid; place-items: center;
  }
  .wallet-qr.pending .dot { margin: 0; width: 16px; height: 16px; }
  .wallet-connect-qr-panel { padding: 14px; }
  .wallet-connect-qr-panel .helper { margin-top: 4px; }
  .wallet-connect-qr-panel .wallet-qr {
    width: min(100%, 220px); margin: 10px auto;
  }
  .wallet-connect-qr-panel .wallet-qr.pending {
    height: 220px; min-height: 180px;
  }
  .desktop-checkout-details { display: none; }
  .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .row + .row { margin-top: 10px; }
  .label { color: var(--subtle); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
  .value { font-weight: 750; overflow-wrap: anywhere; }
  .helper { color: var(--muted); margin-top: 5px; }
  .micro-steps {
    margin: 12px 0 0; padding-left: 20px; color: var(--muted);
  }
  .micro-steps li + li { margin-top: 5px; }
  .prompt-guide {
    margin: 14px 0; padding: 14px; border-radius: 16px;
    border: 1px solid var(--cm-usdc-border-soft);
    background:
      var(--cm-route-gradient-soft),
      var(--card);
  }
  .prompt-guide-title {
    color: var(--fg); font-size: 15px; line-height: 1.2; font-weight: 850;
  }
  .prompt-guide .helper { margin-top: 5px; }
  .prompt-map {
    display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 6px; align-items: center; margin-top: 12px;
  }
  .prompt-step {
    min-height: 78px; border-radius: 14px; padding: 10px 8px;
    border: 1px solid var(--border); background: var(--panel);
    display: grid; align-content: center; justify-items: center; gap: 4px;
    text-align: center;
  }
  .prompt-step strong {
    display: block; color: var(--fg); font-size: 12px; line-height: 1.15;
  }
  .prompt-step small {
    display: block; color: var(--muted); font-size: 11px; line-height: 1.2;
  }
  .prompt-step.active {
    border-color: var(--cm-usdc-border-strong);
    background: var(--cm-usdc-soft);
    box-shadow: var(--cm-focus);
  }
  .prompt-step.done {
    border-color: var(--cm-ok-border-strong);
    background: var(--cm-ok-tint);
  }
  .prompt-index {
    width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
    background: var(--card); color: var(--muted); border: 1px solid var(--border);
    font-size: 13px; line-height: 1; font-weight: 900;
  }
  .prompt-step.active .prompt-index {
    background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
  }
  .prompt-step.done .prompt-index {
    background: var(--success); color: var(--accent-fg); border-color: var(--success);
  }
  .prompt-rail {
    height: 2px; min-width: 12px; border-radius: 999px;
    background: var(--cm-route-rail);
  }
  .wallet-actions { display: grid; gap: 8px; margin-top: 14px; }
  .mobile-wallet-choice-panel .wallet-actions { margin-bottom: 12px; }
  .wallet-bound-context {
    margin-top: 12px; padding: 12px; border: 1px solid var(--border);
    border-radius: var(--cm-radius-control); background: var(--card);
  }
  .wallet-bound-context code { display: block; margin-top: 5px; overflow-wrap: anywhere; }
  .recovery-card { border-color: var(--cm-warn-border); background: var(--cm-warn-tint); }
  .recovery-card.sent-state { border-color: var(--cm-ok-border); background: var(--cm-ok-state); }
  .recovery-title { margin-top: 6px; color: var(--fg); font-size: 18px; line-height: 1.2; font-weight: 850; }
  .recovery-detail { margin: 8px 0 0; }
  .recovery-actions { display: grid; gap: 8px; margin-bottom: 12px; }
  .wallet-link {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px;
    align-items: center; gap: 10px; min-height: 52px;
    border: 1px solid var(--border); border-radius: var(--cm-radius-control);
    padding: 8px 12px; text-decoration: none;
    background: var(--card); color: var(--fg); font-weight: 750;
  }
  .wallet-link:hover {
    border-color: var(--cm-brand-border); background: var(--cm-brand-soft);
  }
  .wallet-link-mark {
    width: 34px; height: 34px; border-radius: 999px;
    display: grid; place-items: center;
    border: 1px solid var(--cm-brand-border); background: var(--cm-brand-soft);
    color: var(--accent-strong); font: 800 12px/1 var(--cm-font-mono);
  }
  .wallet-link-name { min-width: 0; }
  .wallet-link-arrow { color: var(--accent-strong); font-size: 24px; line-height: 1; text-align: right; }
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 14px; }
  .step {
    border-radius: var(--cm-radius-chip); padding: 6px 5px; text-align: center; font-weight: 650;
    color: var(--muted); background: transparent; border: 1px solid var(--border);
    font-size: 11px;
  }
  .step.active { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
  .step.done { color: var(--success); }
  .status { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); margin: 14px 0; min-height: 22px; }
  .wait-state {
    display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 12px;
    min-height: 64px; margin: 14px 0; padding: 14px 16px;
    border: 1px solid var(--cm-brand-border); border-radius: var(--cm-radius-control, 8px);
    background: var(--cm-brand-soft); color: var(--fg); font-weight: 750;
  }
  .wait-spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--accent); border-right-color: var(--accent);
    animation: checkout-spin 0.9s linear infinite;
  }
  .wait-copy { min-width: 0; }
  .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--subtle); margin-top: 6px; flex: 0 0 auto; }
  .dot.spin { animation: pulse 1.2s ease-in-out infinite; background: var(--accent); }
  .dot.ok { background: var(--success); }
  .dot.warn { background: var(--warn); }
  .dot.err { background: var(--danger); }
  @keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.08); } }
  @keyframes checkout-spin { to { transform: rotate(360deg); } }
  button {
    width: 100%; border: 0; border-radius: var(--cm-radius-control, 8px); min-height: 48px; padding: 13px 18px;
    background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 850;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  }
  button:hover { background: var(--accent-strong); }
  button:disabled { cursor: not-allowed; opacity: 0.55; }
  .secondary {
    margin-top: 8px; background: transparent; color: var(--fg); border: 1px solid var(--border);
    font-weight: 750;
  }
  .secondary:hover { background: var(--panel); }
  .button-icon {
    width: 18px; height: 18px; flex: 0 0 auto; fill: none;
    stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .close-checkout { margin-top: 14px; }
  code {
    font: var(--cm-type-mono, 500 11px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    color: var(--muted); word-break: break-all;
  }
  .fine { color: var(--subtle); font-size: 12px; margin-top: 12px; text-align: center; }
  .secured-by {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
  }
  .chainmore-secured-logo {
    width: 18px; height: 16px; flex: 0 0 auto;
  }
  .error { color: var(--danger); font-weight: 700; }
  .ok { color: var(--success); font-weight: 700; }
  .warn { color: var(--warn); font-weight: 700; }
  @media (min-width: 900px) {
    main { place-items: start center; padding: 16px 32px; }
    .card {
      width: min(100%, 980px); max-width: min(980px, calc(100vw - 48px));
      display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
      grid-template-areas: "brand action" "context action";
      grid-template-rows: auto minmax(0, 1fr);
      column-gap: 32px; padding: 32px;
    }
    .top { grid-area: brand; align-self: start; margin-bottom: 20px; }
    #content { display: contents; }
    .checkout-context {
      grid-area: context; align-self: stretch; padding-right: 4px;
      display: flex; flex-direction: column; min-height: 0;
    }
    .checkout-action {
      grid-area: action; align-self: start; min-height: 100%;
      padding-left: 32px; border-left: 1px solid var(--border);
      display: flex; flex-direction: column;
    }
    .checkout-action .secured-by { margin-top: auto; padding-top: 10px; }
    .desktop-checkout-details {
      display: grid; gap: 14px; margin-top: 4px; padding: 18px;
      border: 1px solid var(--border); border-radius: var(--cm-radius-card);
      background: var(--panel);
    }
    .desktop-method-visual {
      display: grid; grid-template-columns: 48px minmax(0, 1fr);
      align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
    }
    .desktop-method-visual .method-icon { width: 48px; height: 48px; }
    .desktop-method-visual .method-icon svg { width: 32px; height: 32px; }
    .desktop-method-visual-copy { min-width: 0; }
    .desktop-method-visual-copy strong { display: block; font-size: 17px; line-height: 1.25; }
    .desktop-method-visual-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
    .desktop-checkout-facts { display: grid; gap: 0; margin: 0; }
    .desktop-checkout-facts div {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      min-height: 38px; border-bottom: 1px solid var(--border);
    }
    .desktop-checkout-facts div:last-child { border-bottom: 0; }
    .desktop-checkout-facts dt { color: var(--muted); }
    .desktop-checkout-facts dd { margin: 0; color: var(--fg); font-weight: 750; text-align: right; }
    .desktop-wallet-note {
      display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px;
      padding: 12px; border: 1px solid var(--cm-brand-border);
      border-radius: var(--cm-radius-control); background: var(--card);
    }
    .desktop-wallet-note-icon {
      width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
      color: var(--accent-strong); background: var(--cm-brand-soft);
    }
    .desktop-wallet-note-icon svg { width: 22px; height: 22px; }
    .desktop-wallet-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
  }
  @media (max-height: 860px) {
    main { padding: 10px; }
    .card { padding: 14px; }
    .top { margin-bottom: 10px; }
    h1 { font-size: 17px; }
    .brand { font-size: 12px; }
    .steps { gap: 5px; margin-bottom: 10px; }
    .step { padding: 7px 5px; font-size: 11px; }
    .amount-panel { padding: 10px 0 9px; margin-bottom: 9px; }
    .amount { font-size: 31px; }
    .payment-method-panel, .panel { margin-bottom: 8px; }
    .payment-method-row { min-height: 48px; padding: 8px 10px; }
    .wallet-connect-qr-panel { padding: 10px; }
    .wallet-connect-qr-panel .helper:last-child { display: none; }
    .wallet-connect-qr-panel .wallet-qr { width: min(100%, 210px); margin: 6px auto; padding: 8px; }
    button { min-height: 40px; padding: 9px 14px; }
    .secondary { margin-top: 6px; }
    .status { margin: 6px 0; min-height: 18px; font-size: 13px; }
    .wait-state { min-height: 56px; margin: 8px 0; padding: 11px 13px; }
    .wait-spinner { width: 24px; height: 24px; }
    .dot { width: 8px; height: 8px; margin-top: 5px; }
    .fine { margin-top: 4px; }
  }
  @media (max-height: 760px) {
    .card { border-radius: 18px; padding: 14px; }
    .top { margin-bottom: 9px; }
    .mark { width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
    h1 { font-size: 17px; }
    .steps { gap: 5px; margin-bottom: 9px; }
    .step { padding: 7px 5px; font-size: 11px; }
    .amount-panel { border-radius: 16px; padding: 10px 0 9px; margin-bottom: 9px; }
    .amount-label { font-size: 11px; }
    .amount { font-size: 31px; margin-top: 4px; }
    .wallet-qr { width: min(100%, 170px, 32svh); margin: 8px auto; padding: 8px; }
    .wallet-qr.pending { height: min(190px, 36svh); min-height: 132px; }
    .wallet-connect-qr-panel { padding: 10px; }
    .wallet-connect-qr-panel .helper:last-child { display: none; }
    .wallet-connect-qr-panel .wallet-qr { width: min(100%, 200px); margin: 6px auto; padding: 8px; }
    .wallet-connect-qr-panel .wallet-qr.pending { height: 200px; min-height: 180px; }
    .panel { border-radius: 16px; padding: 12px; margin-bottom: 8px; }
    .success-card, .status-card { padding: 16px 12px; }
    .success-mark, .status-mark { width: 46px; height: 46px; margin-bottom: 9px; font-size: 28px; }
    .success-title, .status-title { font-size: 22px; }
    .receipt-lines { margin-top: 12px; padding-top: 12px; gap: 7px; }
    .release-pill { margin-top: 10px; min-height: 28px; padding: 4px 10px; }
    .status { margin: 6px 0; min-height: 18px; font-size: 13px; }
    .fine { margin-top: 4px; }
    .prompt-guide { padding: 12px; margin: 12px 0; }
    .prompt-map { grid-template-columns: 1fr; gap: 7px; }
    .prompt-step { min-height: auto; grid-template-columns: 28px 1fr; justify-items: start; text-align: left; column-gap: 8px; }
    .prompt-step small { grid-column: 2; }
    .prompt-rail { display: none; }
  }
  @media (max-height: 620px) {
    main { padding: 6px; }
    .card { border-radius: 16px; padding: 12px; }
    .top { margin-bottom: 9px; }
    .amount-panel { padding: 13px 14px; margin-bottom: 10px; }
    .amount { font-size: 32px; }
    .panel { padding: 12px; }
    .wallet-qr { width: min(100%, 164px, 32svh); }
    .wallet-qr.pending { height: min(164px, 32svh); min-height: 112px; }
    .wallet-connect-qr-panel .wallet-qr { width: min(100%, 180px); }
    .wallet-connect-qr-panel .wallet-qr.pending { height: 180px; min-height: 160px; }
    .prompt-guide { margin: 10px 0; }
    .status { margin: 8px 0; }
  }
  @media (max-width: 360px) {
    .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .step { padding: 7px 4px; font-size: 11px; }
    .wallet-choice.phone-choice { align-items: flex-start; }
    .wallet-choice-cue { width: 46px; height: 46px; border-radius: 14px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
    }
    .dot.spin { animation: none; }
    .wait-spinner { animation: none; border-style: dashed; }
  }
