/* The cross-border transfer application (the 2026-11-25 drawings, v2 green theme): light mint, deep green ink,
   white 22px cards, mint panels, gradient primary buttons. Phone first; wider screens get the same column. */
:root {
  --bg: #EDF7F2; --bg2: #F5FAF7; --bg3: #F2F8F5; --ink: #0A3020; --ink2: #23392F; --muted: #687A72; --ph: #7C8C85; --line: #DCEAE2; --card: #FFFFFF;
  --mint: #E3F4EA; --mint2: #D3EEDF; --info: #E6F3EC; --soft: #EEF3F0; --green: #0C8A55; --green-d: #087247; --dash: #9CC9B1; --todo: #C5DCCF;
  --warn-bg: #FFF3D6; --warn-ink: #6B4500; --bad: #B3261E; --bad-bg: #FDE7E4; --amber: #D99A00;
  --shadow: 0 1px 2px rgba(10,48,32,.04), 0 6px 18px rgba(10,48,32,.05);
  --ring: 0 0 0 3px rgba(12,138,85,.14);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Noto Sans Lao", sans-serif;
  color: var(--ink); font-size: 16px; line-height: 1.4; background: var(--bg2);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg3) 100%) fixed; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(12,138,85,.32); }
input::placeholder, textarea::placeholder { color: var(--ph); }
.ico { flex: none; display: block; }
.mono { font-family: var(--mono); }

.testnet { background: #8A5A00; color: #fff; font-weight: 700; font-size: 12px; text-align: center; padding: 4px 12px; }
.screen { max-width: 480px; margin: 0 auto; padding: 14px 20px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; min-height: 100vh; }
.testnet + .screen { min-height: calc(100vh - 26px); }
.screen.intro { padding-top: 18px; }
.grow { flex: 1; }

/* Headers. */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.lang { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink2);
  font-size: 14px; font-weight: 600; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; }
.nav .wordmark { font-size: 20px; }
.back { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--ink2); background: none; border: 0; padding: 6px 0; justify-self: start; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.steps-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bar { height: 5px; border-radius: 3px; background: var(--mint2); }
.bar.on { background: var(--green); }
.title { display: flex; flex-direction: column; gap: 6px; }
h1 { font-size: 28px; font-weight: 800; line-height: 1.15; }
.intro h1 { font-size: 30px; letter-spacing: -.01em; }
.intro .title { gap: 8px; }
.lead { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Cards and panels. */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card.form { gap: 18px; }
.card.tight { gap: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head.base { align-items: baseline; }
h2 { font-size: 17px; font-weight: 700; }
h2 .opt, .opt { font-size: 14px; font-weight: 400; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--green-d); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.chip.off { background: var(--soft); color: var(--muted); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.count { font-size: 13px; color: var(--muted); }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.feat-text { display: flex; flex-direction: column; gap: 2px; }
.feat-text b { font-size: 16px; }
.feat-text span { font-size: 14px; color: var(--muted); }
.panel { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.panel .ico { margin-top: 1px; }
.panel.info { background: var(--info); color: var(--ink2); }
.panel.info .ico { color: var(--green); }
.panel.warn { background: var(--warn-bg); color: var(--warn-ink); }
.panel.bad { background: var(--bad-bg); color: #6E120D; }
.hint { font-size: 13px; color: var(--muted); }
.hint.center { text-align: center; }
.err { font-size: 13px; color: var(--bad); font-weight: 600; }

/* Buttons. */
.primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 16px; border: 0; background: linear-gradient(180deg, #11935C, var(--green-d));
  color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(8,114,71,.22); }
.primary:hover:not(:disabled) { background: linear-gradient(180deg, #0F8A56, #066540); color: #fff; }
.primary:active:not(:disabled) { transform: scale(.985); }
.primary:disabled { background: #A9CDBB; box-shadow: none; color: #F3FAF6; }
.actions { display: flex; flex-direction: column; gap: 12px; }
.actions.close { gap: 10px; }
.text-link { align-self: center; font-size: 15px; font-weight: 600; color: var(--green); background: none; border: 0; padding: 4px 8px; text-decoration: none; }
.text-link:hover { color: var(--green-d); }
.outline { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 14px; background: #fff; border: 1.5px solid var(--green);
  color: var(--green-d); font-size: 15px; font-weight: 700; text-decoration: none; padding: 0 12px; }
.outline:disabled { opacity: .5; }
.soft { height: 46px; padding: 0 16px; border-radius: 14px; background: var(--soft); border: 0; color: var(--ink2); font-size: 15px; font-weight: 600; }
.row-btns { display: flex; gap: 10px; }
.icon-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--ink2); display: grid; place-items: center; padding: 0; }
.icon-btn:hover { background: rgba(10,48,32,.05); }
.icon-btn.muted { color: var(--muted); }
.small-btn { border: 0; background: none; padding: 4px 0; font-size: 13px; font-weight: 600; color: var(--green); }
.small-btn.red { color: var(--bad); }
.dashed { height: 48px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--dash); color: var(--green); font-size: 15px; font-weight: 600; display: flex;
  align-items: center; justify-content: center; gap: 8px; width: 100%; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(12,138,85,.25); border-top-color: var(--green); animation: spin .8s linear infinite; flex: none; }
.primary .spin { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.spin.big { width: 36px; height: 36px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fields. */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink2); }
.label .opt { font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.input, .select select, textarea { width: 100%; min-height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font: inherit; font-size: 15px;
  color: var(--ink); outline: none; }
.input:focus, .select select:focus, textarea:focus { border: 1.5px solid var(--green); box-shadow: var(--ring); }
textarea { padding: 12px 14px; resize: none; line-height: 1.45; }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding: 0 36px 0 12px; }
.select select.empty { color: var(--ph); }
.select select option { color: var(--ink); }
.select .ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.amount { display: flex; align-items: center; min-height: 52px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.amount:focus-within { border: 1.5px solid var(--green); box-shadow: var(--ring); }
.amount.bad { border-color: var(--bad); }
.amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.amount input:focus-visible { box-shadow: none; }
.amount .unit { padding-left: 12px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 14px; font-size: 15px;
  font-weight: 600; color: var(--ink2); cursor: pointer; }
.choices.three .choice { justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; font-size: 14px; padding: 0 6px; }
.choice.on { border: 1.5px solid var(--green); background: var(--mint); font-weight: 700; color: var(--green-d); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); flex: none; }
.choices.three .choice input { width: 16px; height: 16px; }
.contact { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; }
.save-line { text-align: center; font-size: 13px; color: var(--muted); min-height: 18px; }
.save-line.bad { color: var(--bad); }

/* Uploads. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile-box { position: relative; height: 104px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.tile-box.empty { background: #fff; border: 1.5px dashed var(--dash); color: var(--green); font-size: 13px; font-weight: 600; }
.tile-box.done { background: repeating-linear-gradient(135deg, var(--mint) 0 10px, var(--mint2) 10px 20px); color: var(--ink2); font-size: 12px; border: 0; padding: 0 10px; }
.tile-box.done .more { font-size: 12px; font-weight: 600; color: var(--green-d); }
.tile-box.busy { background: var(--bg2); border: 1px solid var(--line); align-items: stretch; gap: 8px; padding: 0 14px; font-size: 13px; color: var(--ink2); }
.badge { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 9px; }
.progress { height: 6px; border-radius: 3px; background: var(--mint2); display: block; overflow: hidden; }
.progress > span { display: block; height: 6px; border-radius: 3px; background: var(--green); width: 0; transition: width .2s; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 26px; }
.tile-foot b { font-size: 14px; }
.tile-sub { display: flex; flex-direction: column; }
.tile-sub b { font-size: 14px; }
.tile-sub span { font-size: 12px; color: var(--muted); }
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-mini { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink2); min-width: 0; }
.file-mini span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-mini .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.file-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-meta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span { font-size: 12px; color: var(--muted); }
.file-meta .progress { margin-top: 6px; }

/* Wallets. */
.wallet { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.wallet-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.wallet-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wallet-meta b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; flex-wrap: wrap; }
.wallet-meta code { font-family: var(--mono); font-size: 14px; color: var(--ink2); }
.wallet-meta .kya { font-size: 12px; color: var(--muted); }
.net-badge { background: #fff; border: 1px solid var(--line); color: var(--ink2); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 8px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checklist li.todo { color: var(--muted); }
.tick { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.tick.todo { background: transparent; border: 2px solid var(--todo); }

/* The connect sheet. */
.overlay { position: fixed; inset: 0; background: rgba(10,48,32,.45); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 -8px 30px rgba(10,48,32,.18); z-index: 21; }
.grabber { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); flex: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head > div { display: flex; flex-direction: column; gap: 4px; }
.sheet-head h2 { font-size: 22px; font-weight: 800; }
.sheet-head p { font-size: 14px; color: var(--muted); }
.round-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--soft); color: var(--ink2); display: grid; place-items: center; border: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.pill.on { border: 1.5px solid var(--green); background: var(--mint); font-weight: 700; color: var(--green-d); }
.pill input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.wallets { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wallet-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left;
  color: var(--ink); text-decoration: none; width: 100%; }
.wallet-item:last-child { border-bottom: 0; }
.wallet-item:hover { background: var(--bg2); color: var(--ink); }
.wallet-item.off { opacity: .5; pointer-events: none; }
.wallet-item > .grow { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; }
.wallet-item small { font-size: 13px; font-weight: 400; color: var(--muted); }
.wmark { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--mint); color: var(--green-d); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.wmark.grey { background: var(--soft); color: var(--ink2); }
.wallet-item .chev { color: var(--muted); }
.sheet .foot { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0; text-align: center; font-size: 15px; color: var(--ink2); }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr canvas { width: min(64vw, 240px); height: auto; image-rendering: pixelated; display: block; border-radius: 12px; border: 1px solid var(--line); }

/* Review. */
.promo-label { font-size: 17px; font-weight: 700; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.promo-btn { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--mint); color: var(--green-d); font-size: 15px; font-weight: 700; white-space: nowrap; }
.benefit { display: flex; gap: 10px; align-items: flex-start; background: var(--info); border-radius: 14px; padding: 12px 14px; }
.benefit .tick { width: 22px; height: 22px; margin-top: 1px; }
.benefit > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.benefit b { font-size: 15px; color: var(--ink); }
.summary { padding: 6px 18px; gap: 0; }
.sum-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sum-row .k { font-size: 13px; color: var(--muted); }
.sum-row .v { font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.sum-row .v code { font-family: var(--mono); font-size: 14px; }
.sum-row .edit { font-size: 14px; font-weight: 600; background: none; border: 0; padding: 4px 0; color: var(--green); }
.consents { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.consents label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink2); padding: 6px 0; cursor: pointer; }
.consents input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.consents .doc { color: var(--green); font-weight: 600; }

/* Status. */
.done-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; text-align: center; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--mint2); color: var(--green); display: grid; place-items: center; }
.done-ico.warn { background: var(--warn-bg); color: var(--amber); }
.done-ico.bad { background: var(--bad-bg); color: var(--bad); }
.done-head p { font-size: 15px; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.number { display: flex; justify-content: space-between; align-items: center; background: var(--info); border-radius: 12px; padding: 10px 12px; gap: 8px; }
.number > span { font-size: 14px; color: var(--ink2); }
.number code { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.number .icon-btn { width: 32px; height: 32px; border-radius: 8px; color: var(--green-d); }
.number > div { display: flex; align-items: center; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .line { width: 2px; flex: 1; min-height: 20px; background: var(--mint2); }
.timeline .line.on { background: var(--green); }
.timeline .body { display: flex; flex-direction: column; padding-bottom: 14px; }
.timeline li:last-child .body { padding-bottom: 0; }
.timeline .body b { font-size: 15px; }
.timeline .body span { font-size: 13px; color: var(--muted); }
.timeline li.todo b { color: var(--muted); }
.timeline li.current b { color: var(--green-d); }
.timeline li.warn b { color: var(--warn-ink); }
.timeline li.bad b { color: var(--bad); }
.dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; border: 2px solid var(--todo); color: #fff; }
.dot.done { background: var(--green); border: 0; }
.dot.current { border: 6px solid var(--green); }
.dot.warn { border: 6px solid var(--amber); }
.dot.bad { background: var(--bad); border: 0; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(10,48,32,.92); color: #fff; padding: 10px 18px;
  border-radius: 99px; font-size: 15px; font-weight: 600; z-index: 30; box-shadow: var(--shadow); max-width: calc(100vw - 40px); text-align: center; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 60vh; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
