/* Xpress Cash prototype: the phone app.
   A flat, typographic ledger. Soft Ivory is the page, hairlines separate rows, Xpress Green is only the action
   and the one welcome screen. Best value is marked with a lime highlighter, not a badge.
   Helvetica, fixed scale: 12 / 13 / 14 / 15 / 17 / 22 / 32. Radii: 6 controls, 8 groups. No shadows, no pills. */

.xc-phone {
  --green: #17801b; --emerald: #0e5e14; --lime: #b5de72; --tint: #e3f3e1; --orange: #f47b35;
  --bg: #f6f7f8; --white: #fff; --ink: #121614; --muted: #5c6660; --line: #e6e8ea; --edge: #cdd2d6; --danger: #b3261e;
  width: min(320px, 100%); height: 660px; border: 8px solid #0e1a17; border-radius: 40px; background: var(--bg); color: var(--ink);
  overflow: hidden; color-scheme: light; text-align: left;
  font: 400 15px/1.4 Helvetica, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.xc-phone *, .xc-phone *::before, .xc-phone *::after { box-sizing: border-box; }
.xc-phone h3, .xc-phone h4, .xc-phone p, .xc-phone ul { margin: 0; }
:where(.xc-phone) button { font: inherit; color: inherit; cursor: pointer; }
.xc-phone svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.xc-phone svg.fa { fill: currentColor; stroke: none; }
.xc-phone ::selection { background: var(--lime); color: var(--ink); }
.xc-phone input { caret-color: var(--green); }

.xc-app { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.xc-status { flex: none; height: 30px; padding: 11px 22px 0; font-size: 13px; font-weight: 700; background: var(--bg); color: var(--ink); }
.xc-scroll { flex: 1; min-height: 0; overflow-y: auto; background: var(--bg); scrollbar-width: none; overscroll-behavior: contain; }
.xc-scroll::-webkit-scrollbar { display: none; }

/* Splash and welcome: white ground with green type and a green action */
.xc-app[data-full] .xc-status, .xc-app[data-full] .xc-scroll, .xc-app[data-full] .xc-head, .xc-app[data-full] .xc-dock { background: #fff; color: var(--ink); border-color: transparent; }
.xc-app[data-full] .xc-lead { color: var(--muted); }
.xc-app[data-full] .xc-title { color: var(--emerald); }
.xc-app[data-full] .xc-primary.inv { background: var(--green); color: #fff; }
.xc-app[data-full] .xc-primary.inv:hover { background: var(--emerald); }
.xc-app[data-full] .xc-small, .xc-app[data-full] .xc-step { color: var(--muted); }
.xc-app[data-full] .xc-link { color: var(--emerald); }
.xc-app[data-full] :focus-visible { outline-color: #fff; }
.xc-app[data-full] .xc-display { font-size: 32px; margin-top: 18px; }

/* Header: same surface as the page, a hairline underneath */
.xc-head { padding: 2px 16px 16px; display: grid; gap: 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.xc-bar { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.xc-bar .xc-link { margin-left: auto; }
.xc-back { width: 44px; height: 44px; margin-left: -12px; padding: 10px; border: 0; background: none; border-radius: 6px; }
.xc-back:hover { background: var(--tint); }
.xc-title { font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.xc-title:focus { outline: none; }
.xc-display { font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; }
.xc-lab { font-size: 17px; color: var(--muted); }
.xc-sub, .xc-sum { font-size: 18px; color: var(--muted); }
.xc-sum { font-size: 21px; color: var(--ink); margin-top: 2px; }
.xc-hero { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.xc-lead { font-size: 19px; margin-top: 8px; }
.xc-small { font-size: 17px; color: var(--muted); }
.xc-step { font-size: 17px; color: var(--muted); }

/* Amount entry (Home header) */
.xc-amount { display: grid; gap: 2px; }
.xc-amt { flex: 1; display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; border-bottom: 1px solid var(--edge); }
.xc-amt:focus-within { border-bottom: 2px solid var(--emerald); margin-bottom: -1px; }
.xc-amt b { font-size: 21px; font-weight: 400; color: var(--muted); }
.xc-amt input { flex: 1; min-width: 0; padding: 0 0 2px; border: 0; outline: none; background: transparent; color: var(--ink); text-align: right; font: 700 22px/1.2 Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.xc-amt input::-webkit-outer-spin-button, .xc-amt input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.xc-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.xc-chip { min-height: 44px; border: 1px solid var(--edge); border-radius: 6px; background: transparent; color: var(--ink); font-size: 19px; font-weight: 700; }
.xc-chip:hover { border-color: var(--ink); }
.xc-chip[aria-pressed="true"] { background: var(--tint); color: var(--ink); border-color: var(--tint); }

/* Body */
.xc-body { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.xc-set h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.xc-rows { border-top: 1px solid var(--line); }
.xc-row, .xc-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 18px; }
.xc-row, .xc-line, .xc-res { border-bottom: 1px solid var(--line); }
.xc-row span:first-child { color: var(--muted); }
.xc-row span:last-child { text-align: right; }
.xc-row.strong { font-size: 19px; }
.xc-row.strong span { color: var(--ink); font-weight: 700; }
.xc-line { width: 100%; border-top: 0; border-left: 0; border-right: 0; background: none; text-align: left; min-height: 52px; }
button.xc-line:hover { background: var(--tint); }
.xc-line small { display: block; font-size: 17px; color: var(--muted); }
.xc-line svg { width: 20px; height: 20px; flex: none; color: var(--muted); }

/* Controls */
.xc-ctl { display: grid; gap: 6px; }
.xc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.xc-seg button { min-height: 44px; padding: 4px 6px; border: 1px solid var(--edge); border-radius: 6px; background: transparent; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.15; }
.xc-seg button:hover { border-color: var(--ink); }
.xc-seg button[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.xc-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.xc-input { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 0 14px; background: var(--white); border: 1px solid var(--edge); border-radius: 6px; }
.xc-input:focus-within { border-color: var(--emerald); box-shadow: inset 0 0 0 1px var(--emerald); }
.xc-input input { flex: 1; width: 0; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 700 17px/1 Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.xc-input input::-webkit-outer-spin-button, .xc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.xc-input b { font-size: 18px; color: var(--muted); }
.xc-error { min-height: 1.4em; font-size: 18px; font-weight: 700; color: var(--danger); }
.xc-error:empty { display: none; }
.xc-link { border: 0; background: none; padding: 10px 0; min-height: 44px; color: var(--emerald); font-size: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: left; border-radius: 6px; }
.xc-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.xc-foot { display: flex; justify-content: space-between; gap: 12px; }
.xc-ghost { min-height: 44px; padding: 0 16px; justify-self: start; border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); font-size: 18px; font-weight: 700; }
.xc-ghost:hover { background: var(--tint); }

.xc-ghost[aria-pressed="true"] { background: var(--tint); color: var(--ink); border-color: var(--tint); }
.xc-ghost.on-dark { margin-top: 8px; }

/* Docked action and tab bar */
.xc-dock { flex: none; padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.xc-primary { width: 100%; min-height: 52px; border: 0; border-radius: 6px; background: var(--green); color: #fff; font-size: 21px; font-weight: 700; transition: background 0.15s; }
.xc-primary:hover { background: var(--emerald); }
.xc-primary:active { background: var(--ink); }
.xc-primary.inv { background: #fff; color: var(--emerald); }
.xc-primary.inv:hover { background: var(--tint); }
.xc-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.xc-app[data-full] .xc-primary:focus-visible { outline-color: #fff; }
.xc-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); border-top: 1px solid var(--line); padding-bottom: 8px; }
.xc-tabs button { display: grid; justify-items: center; gap: 2px; padding: 8px 0 4px; min-height: 52px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; }
.xc-tabs svg { width: 24px; height: 24px; }
.xc-tabs button[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--green); }
.xc-tabs button:hover { color: var(--ink); }
.xc-tabs i { font-style: normal; margin-left: 4px; font-weight: 400; }

/* Results: one hairline list; the cedis are the largest thing in each row */
.xc-res { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; column-gap: 8px; width: 100%; padding: 12px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
button.xc-res:hover { background: var(--tint); }
.xc-res.top { background: var(--tint); padding-left: 12px; padding-right: 12px; margin: 0 -12px; width: calc(100% + 24px); }
.xc-res > svg { width: 20px; height: 20px; color: var(--muted); }
.xc-res-body { display: grid; gap: 2px; min-width: 0; }
.xc-res-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.xc-res-num b { font-size: 21px; line-height: 1.2; white-space: nowrap; }
.xc-res-num i { font-style: normal; font-size: 18px; color: var(--muted); white-space: nowrap; }
.xc-res-id { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.xc-res-id b { font-size: 19px; }
.xc-tags { display: flex; flex-wrap: wrap; gap: 0 8px; }
.xc-tags:empty { display: none; }
.xc-tag { font-style: normal; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); background: linear-gradient(transparent 55%, var(--lime) 55%); }
.xc-tag.alt { font-weight: 400; color: var(--muted); background: none; }
.xc-res-meta { font-size: 17px; color: var(--muted); }
.xc-res.off { color: var(--muted); grid-template-columns: minmax(0, 1fr); }
.xc-insight { font-size: 18px; }
.xc-note { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; }
.xc-left { padding-left: 18px; display: grid; gap: 4px; font-size: 17px; color: var(--muted); }
.xc-load { font-weight: 700; }
.xc-skel { display: grid; gap: 10px; }
.xc-skel i { display: block; height: 72px; border-radius: 6px; background: #e1e8d6; }
@media (prefers-reduced-motion: no-preference) { .xc-skel i { animation: xcpulse 1s ease-in-out infinite alternate; } @keyframes xcpulse { to { background: #d1dac4; } } }

/* Provider details: the cost scale */
.xc-scale { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.xc-scale-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 18px; }
.xc-scale-h span { color: var(--muted); }
.xc-scale-h b { font-size: 21px; }
.xc-track { position: relative; height: 6px; margin: 6px 4px 30px; background: #e1e8d6; }
.xc-fill { position: absolute; inset: 0 auto 0 0; background: var(--green); }
.xc-tick { position: absolute; top: -6px; width: 2px; height: 18px; background: var(--ink); }
.xc-tick em { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 15px; white-space: nowrap; color: var(--muted); }

/* Hand-off and onboarding */
.xc-checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.xc-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 18px; }
.xc-checks svg { width: 22px; height: 22px; color: var(--emerald); }
.xc-onb-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.xc-statements { list-style: none; padding: 0; display: grid; }
.xc-statements li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.xc-statements li:first-child { border-top: 0; padding-top: 0; }
.xc-statements b { font-size: 19px; }
.xc-statements span { font-size: 18px; color: var(--muted); }

.xc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.xc-phone :focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.xc-phone button:disabled { opacity: 0.5; cursor: default; }

.xc-foot-note { font-size: 17px; color: var(--muted); }
.xc-nb { white-space: nowrap; }

/* Home calculator: two rows, you send and they get */
.xc-brand { display: flex; align-items: center; gap: 10px; padding-top: 10px; font-size: 17px; }
.xc-logo { display: block; height: 34px; width: auto; border-radius: 6px; }
.xc-amount { margin-top: 14px; }
.xc-get { display: grid; gap: 2px; margin-top: 6px; }
.xc-calc { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xc-ccy { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 6px; font-size: 19px; font-weight: 700; }
.xc-est { flex: 1; text-align: right; font: 700 22px/1.2 Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); }
.xc-get-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xc-rate { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 0 0 8px; border: 0; background: none; color: var(--emerald); font-size: 17px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.xc-rate:hover { color: var(--ink); }
.xc-rate svg { width: 18px; height: 18px; }

/* Bottom sheet and scrim */
.xc-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(23, 43, 39, 0.55); }
.xc-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 86%; overflow-y: auto; display: grid; gap: 12px; padding: 20px 16px; background: var(--bg); border-radius: 12px 12px 0 0; scrollbar-width: none; }
.xc-sheet::-webkit-scrollbar { display: none; }
.xc-copy { font-size: 18px; color: var(--muted); }
.xc-ghost.block { width: 100%; justify-self: stretch; min-height: 48px; }
.xc-sheet .xc-title:focus { outline: none; }

/* Product tour: spotlight and coach mark */
.xc-tour { position: absolute; inset: 0; z-index: 30; }
.xc-spot { position: absolute; border-radius: 8px; box-shadow: 0 0 0 1000px rgba(23, 43, 39, 0.65); outline: 2px solid #fff; pointer-events: none; }
.xc-pop { position: absolute; left: 12px; right: 12px; display: grid; gap: 4px; padding: 14px 16px 10px; background: var(--bg); color: var(--ink); border-radius: 8px; }
.xc-pop-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.xc-pop .xc-count { margin-right: auto; font-size: 17px; color: var(--muted); }
.xc-pop .xc-link { color: var(--emerald); }
.xc-sm { width: auto; min-height: 44px; padding: 0 22px; font-size: 19px; }
.xc-arrow { position: absolute; width: 14px; height: 14px; background: var(--bg); transform: rotate(45deg); }
.xc-pop.below .xc-arrow { top: -6px; }
.xc-pop.above .xc-arrow { bottom: -6px; }
.xc-rate, .xc-get-h .xc-lab { white-space: nowrap; }

/* Splash: the logo mark, the name and the tagline, centred on Deep Emerald. Tap to skip. */
.xc-app[data-splash] .xc-scroll { display: flex; flex-direction: column; }
.xc-app[data-splash] .xc-head { flex: 1; padding: 0; border: 0; }
.xc-splash { display: grid; place-content: center; justify-items: center; gap: 12px; width: 100%; height: 100%; padding: 24px; border: 0; background: none; color: var(--emerald); text-align: center; }
.xc-splash-mark { width: 104px; height: auto; border-radius: 6px; }
.xc-splash-name { font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.xc-splash-tag { font-size: 19px; color: var(--muted); }

/* Profile */
.xc-who { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.xc-who b { display: block; font-size: 21px; }
.xc-who small { display: block; font-size: 17px; color: var(--muted); }
.xc-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--edge); border-radius: 50%; font-size: 19px; font-weight: 700; color: var(--emerald); }
.xc-switch { flex: none; position: relative; width: 48px; height: 44px; padding: 0; border: 0; background: none; }
.xc-switch::before { content: ""; position: absolute; left: 0; top: 10px; width: 48px; height: 24px; border-radius: 12px; background: var(--edge); transition: background 0.15s; }
.xc-switch::after { content: ""; position: absolute; left: 3px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.xc-switch[aria-checked="true"]::before { background: var(--green); }
.xc-switch[aria-checked="true"]::after { transform: translateX(24px); }
@media (prefers-reduced-motion: reduce) { .xc-switch::before, .xc-switch::after { transition: none; } }

/* Send flow: selected recipient and the transfer trail */
.xc-line[aria-pressed="true"] { background: var(--tint); }
.xc-line[aria-pressed] svg { color: var(--emerald); }
.xc-trail { list-style: none; margin: 0; padding: 0; display: grid; }
.xc-trail li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.xc-trail li:first-child { border-top: 0; padding-top: 0; }
.xc-trail svg { width: 18px; height: 18px; margin-top: 2px; color: var(--emerald); }
.xc-trail i { width: 12px; height: 12px; margin: 5px; border: 1.5px solid var(--edge); border-radius: 50%; }
.xc-trail b { display: block; font-size: 19px; }
.xc-trail small { font-size: 17px; color: var(--muted); }
.xc-trail li:not([aria-current]) b { color: var(--muted); }

/* Send and receive: one panel, two legs, a currency tag on each */
.xc-calcbox { margin-top: 14px; padding: 4px 14px 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.xc-leg { padding: 10px 0; }
.xc-leg + .xc-leg { border-top: 1px solid var(--line); }
.xc-calcbox .xc-lab { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.xc-leg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.xc-calcbox .xc-amt { flex: 1; justify-content: flex-start; border-bottom: 0; }
.xc-calcbox .xc-amt:focus-within { border-bottom: 0; margin: 0; box-shadow: 0 2px 0 var(--emerald); }
.xc-calcbox .xc-amt input { text-align: left; }
.xc-calcbox .xc-est { text-align: left; }
.xc-calcbox .xc-ccy { min-height: 0; padding: 2px 8px; border: 0; border-radius: 6px; background: var(--tint); color: var(--emerald); font-size: 15px; font-weight: 700; }
.xc-calcbox .xc-rate { min-height: 44px; padding-left: 0; }

.xc-body > .xc-calcbox { margin-top: 0; }

/* Where are you sending money */
.xc-prog { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.xc-prog li { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.xc-prog i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.xc-prog li.on i { background: var(--green); }
.xc-prog li[aria-current] { color: var(--ink); font-weight: 700; }
.xc-panel { display: grid; gap: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.xc-input.xc-pill { border-radius: 24px; min-height: 48px; padding: 0 8px 0 16px; }
.xc-pill input { font-weight: 400; }
.xc-tagc { font-style: normal; flex: none; padding: 2px 8px; border-radius: 6px; background: var(--tint); color: var(--emerald); font-size: 15px; font-weight: 700; }
.xc-country { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xc-country .xc-lab, .xc-radios legend { margin: 0; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.xc-country-name { margin-top: 2px; font-weight: 700; font-size: 21px; }
.xc-radios { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.xc-radios legend { padding: 0; margin-bottom: 4px; }
.xc-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; cursor: pointer; }
.xc-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.xc-select { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 24px; background: var(--white); color: var(--ink); font: inherit; }
.xc-primary { border-radius: 24px; }

/* Bottom navigation: four equal tabs, icon over label, a short green bar marks the current one */
.xc-tabs { grid-template-columns: repeat(5, 1fr); padding: 0 2px 8px; background: var(--bg); border-top: 1px solid var(--line); }
.xc-tabs button { position: relative; gap: 4px; min-height: 56px; padding: 10px 0 6px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.xc-tabs svg { width: 22px; height: 22px; }
.xc-tabs button span { line-height: 1.1; }
.xc-tabs button[aria-current="page"] { color: var(--emerald); font-weight: 700; box-shadow: none; }
.xc-tabs button[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--green); }
.xc-tabs button:hover { color: var(--ink); }
.xc-tabs button:focus-visible { outline-offset: -4px; border-radius: 6px; }

.xc-display.xc-ask { font-size: 36px; line-height: 1.15; }


/* Panel icons: flags on the currency tags, an icon on each delivery option, a chevron on the select */
.xc-tagc { display: inline-flex; align-items: center; gap: 6px; }
.xc-phone .xc-flag { width: 16px; height: 12px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(23, 43, 39, 0.18); }
.xc-radio .xc-ico { display: inline-flex; width: 18px; height: 18px; flex: none; color: var(--emerald); }
.xc-phone .xc-radio .xc-ico svg { width: 18px; height: 18px; }
.xc-selwrap { position: relative; display: block; }
.xc-selwrap .xc-select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.xc-phone .xc-selwrap > svg { position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--muted); pointer-events: none; }

/* Receiving country selector */
.xc-country-sel { display: inline-block; margin-top: 2px; }
.xc-country-select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 20px 0 0; font: 700 17px/1.3 Helvetica, Arial, sans-serif; color: var(--ink); cursor: pointer; }
.xc-phone .xc-country-sel > svg { right: 0; width: 12px; height: 12px; margin-top: -6px; }
.xc-country-select:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; border-radius: 4px; }

/* Chevrons (back, next, select arrow) at 16px */
.xc-phone .xc-back svg { width: 16px; height: 16px; margin: 0 auto; }
.xc-phone .xc-line > svg:last-child, .xc-phone .xc-res > svg:last-child { width: 16px; height: 16px; }
.xc-phone .xc-selwrap > svg { width: 16px; height: 16px; margin-top: -8px; }

/* High Fidelity gallery: iPhone Pro Max class screen, 440 x 956 pt (1320 x 2868 px at 3x), plus the 8px bezel. */
.xc-gallery .xc-phone { width: 456px; height: 972px; border-radius: 56px; }
/* Prototype: the same Pro Max size; on a narrow screen it narrows to fit and keeps its height. */
#xc-proto.xc-phone { width: min(456px, 100%); height: 972px; border-radius: 56px; }

/* Receiving country: the label sits above the value, not jammed against it */
.xc-country > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.xc-country .xc-lab { display: block; }
.xc-country-sel { margin-top: 0; }

/* Currency tags: flag and code sit on the panel with no tinted background */
.xc-tagc, .xc-calcbox .xc-ccy { background: none; padding-left: 0; padding-right: 0; }

/* Send screen, in the style of the supplied design: brand label and tag, then icon tiles and a highlight strip */
.xc-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.xc-wm { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.xc-tagline { padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); color: var(--lime); font-size: 12px; font-weight: 700; }
.xc-choice { margin-top: 8px; }
.xc-choice h4 { margin: 0 0 12px; font-size: 17px; }
.xc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xc-tiles li { display: grid; align-content: start; gap: 2px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.xc-phone .xc-tiles svg { width: 20px; height: 20px; margin-bottom: 12px; color: var(--green); }
.xc-tiles b { font-size: 18px; }
.xc-tiles span { font-size: 15px; line-height: 1.3; color: var(--muted); }
.xc-save { margin: 10px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 18px; }
/* The Send header is a Deep Emerald band, as in the supplied design */
.xc-app:has(.xc-brandrow, .xc-today) .xc-status { background: var(--emerald); color: #fff; }
.xc-head:has(.xc-brandrow, .xc-today) { background: var(--emerald); color: #fff; border-color: transparent; padding-bottom: 20px; }
.xc-head:has(.xc-brandrow, .xc-today) .xc-sub { color: rgba(255, 255, 255, 0.88); font-size: 18px; }
.xc-head:has(.xc-brandrow, .xc-today) .xc-prog li { color: rgba(255, 255, 255, 0.78); }
.xc-head:has(.xc-brandrow, .xc-today) .xc-prog li[aria-current] { color: #fff; }
.xc-head:has(.xc-brandrow, .xc-today) .xc-prog i { background: rgba(255, 255, 255, 0.28); }
.xc-head:has(.xc-brandrow, .xc-today) .xc-prog li.on i { background: var(--lime); }
.xc-splash-mark { width: 148px; border-radius: 0; }

/* Prototype: scale the device to the window height so it fits without scrolling */
.xc-stage { --z: 1; }
@media (max-height: 1100px) { .xc-stage { --z: .8; } }
@media (max-height: 940px) { .xc-stage { --z: .68; } }
@media (max-height: 820px) { .xc-stage { --z: .58; } }
@media (max-height: 720px) { .xc-stage { --z: .5; } }
#xc-proto.xc-phone { width: 456px; zoom: var(--z); }

/* Manage transfers: tappable history rows, schedules, warnings, date fields */
button.xc-res { font: inherit; cursor: pointer; }
.xc-sched { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.xc-sched b { display: block; font-size: 19px; }
.xc-sched small { display: block; font-size: 17px; color: var(--muted); }
.xc-sched-act { display: flex; gap: 24px; }
.xc-note.xc-warn { border-color: var(--danger); }
.xc-note.xc-warn b { color: var(--danger); }
.xc-input input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 44px; font-weight: 400; }
.xc-set .xc-ghost { margin-top: 8px; }

/* Review: one receipt instead of three labelled blocks */
.xc-to { display: grid; gap: 2px; padding: 4px 0 14px; }
.xc-to b { font-size: 22px; line-height: 1.2; }
.xc-to span:last-child { font-size: 18px; color: var(--muted); }
.xc-receipt .xc-row.strong { border-top: 2px solid var(--ink); font-size: 21px; }
.xc-fineprint { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.xc-link.xc-inline { display: inline; min-height: 0; padding: 0; font-size: inherit; font-weight: 400; }

/* My Account: the title is not a control, so it never shows a focus ring; header sits clear of the status bar */
.xc-phone .xc-title:focus, .xc-phone .xc-title:focus-visible { outline: none; }
.xc-head > .xc-who:first-child { margin-top: 10px; }
.xc-who .xc-display { margin: 0; }

/* Home, exchange rates, help */
.xc-chart { display: block; width: 100%; height: auto; }
.xc-chart text { font-size: 11px; fill: var(--muted); }
.xc-chart .xc-grid { stroke: var(--line); stroke-width: 1; }
.xc-chart .xc-series { fill: none; stroke: var(--emerald); stroke-width: 2.2; stroke-linejoin: round; }
.xc-chart .xc-now { fill: var(--emerald); stroke: var(--bg); stroke-width: 2; }
.xc-chart .xc-target { stroke: var(--green); stroke-width: 1.4; stroke-dasharray: 5 4; }
.xc-chart .xc-tt { fill: var(--emerald); font-weight: 700; }
.xc-faq details { border-top: 1px solid var(--line); }
.xc-faq details:last-child { border-bottom: 1px solid var(--line); }
.xc-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 0; font-size: 19px; font-weight: 700; cursor: pointer; }
.xc-faq summary::-webkit-details-marker { display: none; }
.xc-faq summary svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform 0.15s; }
.xc-faq details[open] summary svg { transform: rotate(90deg); }
.xc-faq p { margin: 0 0 14px; font-size: 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .xc-faq summary svg { transition: none; } }

/* My Account home: same layout as the product prototype's phone account page */
.xc-who-lg { gap: 14px; margin-top: 10px; }
.xc-who-lg .xc-avatar { width: 56px; height: 56px; border: 0; background: var(--emerald); color: #fff; font-size: 21px; }
.xc-who-lg .xc-display { margin: 0; }
.xc-who-lg small { display: block; margin-top: 2px; font-size: 17px; color: var(--muted); }
.xc-card > h4 { margin-bottom: 8px; font-size: 17px; font-weight: 700; color: var(--emerald); }
.xc-card .xc-rows { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.xc-card .xc-row, .xc-card .xc-line { padding-left: 14px; padding-right: 14px; }
.xc-card .xc-row:first-child, .xc-card .xc-line:first-child { border-top: 0; }
.xc-folds { display: grid; }
.xc-fold { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.xc-fold b { display: block; font-size: 19px; }
.xc-fold small { display: block; font-size: 17px; color: var(--muted); }
.xc-fold svg { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* Activity, Recipients and Send follow the account home pattern: clear of the status bar, labelled cards, hairline link rows */
.xc-head > .xc-display:first-child { margin-top: 10px; }
.xc-card .xc-res { padding-left: 14px; padding-right: 14px; margin: 0; width: 100%; }
.xc-card .xc-res:last-child { border-bottom: 0; }
.xc-card .xc-list { border-top: 0; }
.xc-card > .xc-note { margin: 0; }
/* Send: the four benefit tiles become plain rows, the lime callout a quiet line */
.xc-choice h4 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--emerald); }
.xc-tiles { grid-template-columns: 1fr; gap: 0; }
.xc-tiles li { padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.xc-phone .xc-tiles svg { display: none; }
.xc-save { margin: 0; padding: 14px 0 0; background: none; border-top: 2px solid var(--emerald); border-radius: 0; color: var(--emerald); }

/* Home dashboard: greeting, today's rate and the one primary action on the emerald header */
.xc-head:has(.xc-today) { background: var(--emerald); color: #fff; border-color: transparent; padding-bottom: 18px; gap: 10px; }
.xc-head:has(.xc-today) .xc-title { color: #fff; }
.xc-today { display: grid; gap: 2px; }
.xc-today span { font-size: 17px; color: rgba(255, 255, 255, 0.82); }
.xc-today b { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.xc-today small { font-size: 17px; color: rgba(255, 255, 255, 0.82); }
.xc-head:has(.xc-today) .xc-primary { margin-top: 6px; }

/* Send: the live figure sits in the header band, so the wordmark row and tagline are gone */
.xc-head > .xc-ask:first-child { margin-top: 10px; }
.xc-today .xc-est { font: inherit; letter-spacing: inherit; }

/* Smooth transitions: screens slide, tabs cross-fade, sheets rise, controls respond. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes xc-fwd { from { transform: translateX(26px); opacity: 0.4; } to { transform: none; opacity: 1; } }
  @keyframes xc-back { from { transform: translateX(-26px); opacity: 0.4; } to { transform: none; opacity: 1; } }
  @keyframes xc-tab { from { opacity: 0.35; } to { opacity: 1; } }
  @keyframes xc-rise { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes xc-scrim { from { opacity: 0; } to { opacity: 1; } }
  .xc-app[data-enter="fwd"] .xc-scroll, .xc-app[data-enter="fwd"] .xc-dock { animation: xc-fwd 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .xc-app[data-enter="back"] .xc-scroll, .xc-app[data-enter="back"] .xc-dock { animation: xc-back 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .xc-app[data-enter="tab"] .xc-scroll { animation: xc-tab 0.18s ease-out both; }
  .xc-app[data-sheet="in"] .xc-sheet { animation: xc-rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .xc-app[data-sheet="in"] .xc-scrim { animation: xc-scrim 0.2s ease-out both; }
  .xc-primary, .xc-btn, .xc-seg button, .xc-tabs button, .xc-card { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
  .xc-primary:active { transform: scale(0.985); }
  .xc-tabs button svg { transition: transform 0.15s; }
  .xc-tabs button[aria-current="page"] svg { transform: translateY(-1px); }
}
