
.ui-sendflow {
  box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: min(560px, 100%); min-width: 0; container-type: inline-size; padding-bottom: var(--ui-sendflow-kb, 0px); color: var(--ui-fg); background: var(--ui-bg);
  font: 15px/1.45 var(--ui-font);
}
.ui-sendflow-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: max(6px, env(safe-area-inset-top)) 8px 6px; border-bottom: 1px solid var(--ui-border); }
.ui-sendflow-head p { display: grid; place-items: center; min-height: 44px; margin: 0; color: var(--ui-muted); font-size: 13px; }
.ui-sendflow-back { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ui-fg); font: 24px/1 var(--ui-font); cursor: pointer; touch-action: manipulation; }
.ui-sendflow-back:focus-visible { outline: none; box-shadow: var(--ui-focus); }
.ui-sendflow-bar { height: 3px; background: var(--ui-subtle); grid-column: 1 / -1; margin-top: 6px; }
.ui-sendflow-bar span { display: block; height: 100%; background: var(--ui-accent); transition: width .2s; }
.ui-sendflow-mid { display: grid; min-height: 0; min-width: 0; }
.ui-sendflow-scroll { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 16px; }
.ui-sendflow-step { display: grid; gap: 12px; min-width: 0; }
.ui-sendflow-step[hidden] { display: none; }
.ui-sendflow-step h2 { margin: 0; font-size: 21px; line-height: 1.25; outline: none; }
.ui-sendflow-field { display: grid; gap: 4px; min-width: 0; }
.ui-sendflow-field label { color: var(--ui-muted); font-size: 13px; font-weight: 600; }
/* 16 px and up, or iOS zooms the page when one is focused. */
.ui-sendflow-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: var(--ui-surface); color: var(--ui-fg); font: 16px/1.3 var(--ui-font); }
.ui-sendflow-input:focus { outline: none; border-color: var(--ui-accent); box-shadow: var(--ui-focus); }
.ui-sendflow-input[aria-invalid="true"] { border-color: var(--ui-danger); }
textarea.ui-sendflow-input { min-height: 96px; resize: vertical; }
.ui-sendflow-big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-sendflow-hint { margin: 0; color: var(--ui-muted); font-size: 13px; }
.ui-sendflow-err { margin: 0; color: var(--ui-danger); font-size: 14px; }
.ui-sendflow-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ui-sendflow-payee { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 6px 12px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.ui-sendflow-payee[aria-pressed="true"] { border-color: var(--ui-accent); background: var(--ui-accent-soft); }
.ui-sendflow-payee:focus-visible { outline: none; box-shadow: var(--ui-focus); }
.ui-sendflow-payee small { color: var(--ui-muted); font-size: 13px; }
.ui-sendflow-payee b { font-weight: 600; overflow-wrap: anywhere; }
.ui-sendflow-mark { color: var(--ui-accent); font-weight: 700; }
.ui-sendflow-new { display: grid; gap: 10px; padding-top: 4px; }
.ui-sendflow-new h3 { margin: 0; font-size: 15px; }
.ui-sendflow-limits { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.ui-sendflow-limits li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--ui-border); font-size: 14px; font-variant-numeric: tabular-nums; }
.ui-sendflow-limits li:first-child { border-top: 0; }
.ui-sendflow-limits span { color: var(--ui-muted); }
.ui-sendflow-over { background: var(--ui-danger-soft); }
.ui-sendflow-over span, .ui-sendflow-over b { color: var(--ui-danger); }
.ui-sendflow-sum { display: grid; gap: 0; margin: 0; }
.ui-sendflow-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-height: 52px; padding: 4px 0; border-top: 1px solid var(--ui-border); }
.ui-sendflow-row:first-child { border-top: 0; }
.ui-sendflow-row dt { color: var(--ui-muted); font-size: 13px; }
.ui-sendflow-row dd { grid-column: 1; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: pre-wrap; }
.ui-sendflow-change { grid-column: 2; grid-row: 1 / span 2; min-width: 64px; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--ui-radius-sm); background: transparent; color: var(--ui-accent); font: 600 14px/1 var(--ui-font); cursor: pointer; touch-action: manipulation; }
.ui-sendflow-change:focus-visible { outline: none; box-shadow: var(--ui-focus); }
.ui-sendflow-total dd { font-size: 20px; }
.ui-sendflow-done h2 { color: var(--ui-success); }
.ui-sendflow-foot { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ui-border); background: var(--ui-bg); }
.ui-sendflow-foot .ui-btn { width: 100%; }
.ui-sendflow-side { display: none; }
@container (min-width: 640px) {
  .ui-sendflow-mid { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
  .ui-sendflow-scroll { padding: 22px 28px; }
  .ui-sendflow-side { display: block; min-height: 0; overflow-y: auto; padding: 22px 20px; border-left: 1px solid var(--ui-border); background: var(--ui-subtle); }
  .ui-sendflow-side h3 { margin: 0 0 8px; font-size: 13px; color: var(--ui-muted); }
  .ui-sendflow-foot { display: flex; justify-content: flex-end; padding-inline: 28px; }
  .ui-sendflow-foot .ui-btn { width: auto; min-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .ui-sendflow-bar span { transition: none; } }


.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--ui-radius-sm);
  font: 500 14px/1 var(--ui-font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  --b: var(--ui-accent); --bf: var(--ui-accent-fg); --bs: var(--ui-accent-soft);
}
.ui-btn:focus-visible { outline: none; box-shadow: var(--ui-focus); }
.ui-btn[disabled], .ui-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.ui-btn-neutral { --b: var(--ui-fg); --bf: var(--ui-bg); --bs: var(--ui-subtle); }
.ui-btn-danger { --b: var(--ui-danger); --bf: #fff; --bs: var(--ui-danger-soft); }
.ui-btn-solid { background: var(--b); color: var(--bf); }
.ui-btn-solid:hover { background: color-mix(in srgb, var(--b) 88%, var(--ui-fg)); }
.ui-btn-soft { background: var(--bs); color: var(--b); }
.ui-btn-soft:hover { background: color-mix(in srgb, var(--bs) 80%, var(--b)); }
.ui-btn-outline { background: transparent; color: var(--b); border-color: var(--ui-border); }
.ui-btn-outline:hover { border-color: var(--b); background: var(--bs); }
.ui-btn-ghost { background: transparent; color: var(--b); }
.ui-btn-ghost:hover { background: var(--bs); }
.ui-btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.ui-btn-lg { height: 46px; padding: 0 22px; font-size: 16px; }
.ui-btn-full { display: flex; width: 100%; }
.ui-btn-spin { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-btn-spin .7s linear infinite; }
@keyframes ui-btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ui-btn-spin { animation-duration: 2s; } }

