/* Agent split: a receipt and one sentence in, one number and one Send out.
   Reads tokens.css and components.css only. The manual claim page (/r/<token>) is the "Adjust" link. */
html { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.as .hdr__t { padding-left: 0; }

/* ---- 1. ask: the receipt, then the sentence ---- */
.as__ask { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--s5); padding: var(--s3) var(--gut) var(--s4); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.as__ask::-webkit-scrollbar { display: none; }
.as__shot { flex: none; display: flex; align-items: center; gap: var(--s4); min-height: 72px; border-radius: var(--r-card); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: transform var(--t-press) var(--ease-out); }
.as__shot:active { transform: scale(.97); }
.as__shot:focus-within { outline: 2px solid var(--flare-text); outline-offset: 3px; }
.as__shot-g { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; overflow: hidden; }
.as__shot-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as__shot-l { flex: 1; min-width: 0; font: 700 20px/1.15 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.as__shot-l small { display: block; margin-top: 4px; font: 500 var(--fs-body)/1.3 var(--font-ui); letter-spacing: 0; color: var(--ink-2); }
.as__shot .chev { color: var(--ink-3); flex: none; }
.as__say { flex: 1; min-height: 132px; width: 100%; resize: none; border: 0; outline: 0; padding: 0; margin: 0; background: none; color: var(--ink); caret-color: var(--flare); font: 800 32px/1.08 var(--font-display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.as__say::placeholder { color: var(--ink-3); }
@media (max-height: 640px), (max-width: 340px) { .as__say { font-size: 26px; } }

/* ---- 2. confirm: the number is the hero ---- */
.as__hero { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px var(--gut) 12px; text-align: center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.as__hero::-webkit-scrollbar { display: none; }
.as__hero > :first-child { margin-top: auto; }
.as__hero > :last-child { margin-bottom: auto; }
.as__to { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.as__to .nm { font: 600 20px/1.15 var(--font-ui); color: var(--ink-2); max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as__to .nm b { font: 800 26px/1.02 var(--font-display); letter-spacing: -.035em; color: var(--ink); }
.as__to .nm.is-long b { font-size: 20px; }
/* where it goes, under the name: a wrong contact has to be visible before the tap */
.as__dest { margin-top: -6px; font: 500 var(--fs-body)/1.2 var(--font-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.as__hero .amt-box { width: 100%; }
.as__why { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 16px; border-radius: 22px; font: 500 var(--fs-row)/1.25 var(--font-ui); color: var(--ink-2); max-width: 100%; transition: background-color var(--t-fast); }
.as__why:active { background: var(--fill); }
.as__why--still { padding: 0 16px; }
.as__why--still:active { background: none; }
a.as__shot { color: inherit; }
.as__why span { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as__why svg { color: var(--ink-3); }
.as__you { font: 600 var(--fs-body)/1.2 var(--font-ui); color: var(--ink-2); }
.as__you b { font: 700 var(--fs-row)/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 6px; }
.as__list { width: calc(100% + 2 * var(--gut)); margin: 4px calc(-1 * var(--gut)) 0; text-align: left; }
.as__list .field { margin: 0 var(--gut) var(--s2) calc(var(--gut) + 62px); height: 48px; }
@media (max-height: 700px) { .as__hero { gap: 8px; } .as__to .av { --s: 64px !important; } }
@media (max-height: 600px) { .as__to { flex-direction: row; } .as__to .av { --s: 44px !important; } .as__to .nm { text-align: left; } }

/* the lines that were matched, on the confirm screen */
.as__lines { width: min(100%, 320px); display: flex; flex-direction: column; gap: 6px; text-align: left; }
.as__lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 var(--fs-body)/1.25 var(--font-ui); }
.as__lines span { min-width: 0; overflow-wrap: anywhere; }
.as__lines small { display: block; font: 500 var(--fs-cap)/1.2 var(--font-ui); color: var(--ink-2); }
.as__lines b { flex: none; font: 700 var(--fs-body)/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* the receipt the others will see, with private details covered */
.as__proof { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 10px 6px 6px; border-radius: 24px; background: var(--fill); text-align: left; max-width: 100%; transition: transform var(--t-press) var(--ease-out); }
.as__proof:active { transform: scale(.97); }
.as__proof img { width: 52px; height: 52px; border-radius: 18px; object-fit: cover; flex: none; }
.as__proof span { font: 600 var(--fs-body)/1.2 var(--font-ui); min-width: 0; }
.as__proof small { display: block; margin-top: 3px; font: 500 var(--fs-cap)/1.2 var(--font-ui); color: var(--ink-2); }
.as__proof svg { color: var(--ink-3); flex: none; }
.as__proofbig { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---- 3. the one question ---- */
.as__q { flex: 1; min-height: 0; padding: var(--s6) var(--gut) var(--s4); display: flex; flex-direction: column; gap: var(--s5); overflow-y: auto; overscroll-behavior: contain; }
.as__qt { font: 800 34px/1.04 var(--font-display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.as__q .field--big input { font-size: 36px; width: 100%; }
.as__q .chip { height: 48px; max-width: 100%; }
.as__chips .chip { white-space: normal; height: auto; min-height: 48px; padding: 8px 18px; text-align: left; }
.as__q .chip span { overflow: hidden; text-overflow: ellipsis; }

/* ---- the thumb zone ---- */
.as__cta { display: flex; flex-direction: column; gap: var(--s3); }
.as__cta .field input { font-size: 17px; }
.as__go { display: flex; align-items: center; gap: var(--s2); }
.as__go .pill { flex: 1; min-width: 0; }
.as__mic { background: var(--fill); width: 56px; height: 56px; }
.as__mic[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.as__err { min-height: 18px; margin: 0; text-align: center; font: 600 var(--fs-body)/1.2 var(--font-ui); color: var(--flare-text); }
.as__err:empty { display: none; }
.as__note { margin: 0; text-align: center; font: 500 var(--fs-body)/1.3 var(--font-ui); color: var(--ink-2); }
.as__more { display: flex; justify-content: center; gap: 4px; }
.pill.is-busy { pointer-events: none; }

/* sheets with fields (sign in, pay handles) */
.rn-sheet .sheet__body { padding: 0 var(--gut) var(--s2); display: flex; flex-direction: column; gap: var(--s3); }
.rn-sheet .field input { font-size: 17px; }
.rn-sheet .row { padding-left: 0; padding-right: 0; }
.rn-sheet .state { padding: var(--s4) 0 var(--s2); }
.rn-sheet .state__g { width: 88px; height: 88px; }
.rn-sheet .state__t { font-size: 28px; }
.rn-sheet .link { align-self: center; }

/* details sheet */
.as-sheet .lbl { padding-top: var(--s4); }
.as-sheet .row { min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.as-sheet .row__end { font-weight: 600; }
