/* Transfer: send money to another YourCryptoPal account, ask someone for money, and the requests asked of you.
   Colours and fonts come from /css/txlist.css (.ycp), like the history and stats pages. */
body { background-color: #11141A; }

.tr { padding: 30px 32px 70px; max-width: 1180px; }
.tr-head { margin-bottom: 24px; }
.tr-head h1 { margin: 0; font-family: "titles", sans-serif !important; font-weight: 400; font-size: 32px; color: #E4E8EF; }
.tr-head p { margin: 8px 0 0; font-size: 15px; color: #A5ACB9; }

/* Names people chose for themselves can be in any of several scripts: the site font only has Latin letters,
   so the rest falls back to the device's own font. */
.ycp .nm { font-family: 'YCP UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* Send / Request / Requests */
.tr-tabs { display: inline-flex; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ycp .tr-tabs button { height: 38px; padding: 0 15px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.ycp .tr-tabs button:hover { color: var(--text); }
.ycp .tr-tabs button.on { color: #fff; background: var(--surface-3); }
.tr-tabs .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.tr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; min-width: 0; }
.tr-wait { color: var(--muted); font-size: 14px; max-width: 760px; }
.tr-step { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.tr-step b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--grad); }
.tr-step h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.tr-step em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

/* Switched off, or could not load */
.off-card { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; }
.off-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(245, 185, 74, .12); color: var(--hold); }
.off-card b { display: block; font-size: 15.5px; font-weight: 600; color: var(--text); }
.off-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.off-card .btn { margin-top: 12px; }

.ycp .linkish { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--link); font-size: inherit; font-weight: 500; }
.ycp .linkish:hover { text-decoration: underline; }
.ycp .linkish[disabled] { color: var(--muted-2); text-decoration: none; cursor: default; }
.f-err { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.45; color: #FF9A9A; }

.ycp .input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); font-size: 15px; }
.ycp .input:focus-within { border-color: #6B6BFF; box-shadow: 0 0 0 3px rgba(107, 107, 255, .18); }
.ycp .input.bad { border-color: rgba(255, 122, 122, .6); }
.ycp .input input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 15px; }
.ycp .input input::placeholder { color: var(--muted-2); }
.ycp .input input[readonly] { color: var(--text-2); }
.ycp .input:has(input[readonly]) { background: var(--surface-2); box-shadow: none; border-color: var(--line-2); }

/* The person under the To field */
.who { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.av { flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-weight: 600; background: #3A4257; }
.av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.av.anon { background: #2A3040; color: var(--muted); }
.who .av { width: 44px; height: 44px; font-size: 16px; }
.who-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.who-t b { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.who-t span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.who-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.ok { color: var(--in); background: rgba(61, 214, 140, .1); }
.tag.saved { color: #C9B8FF; background: rgba(155, 123, 255, .14); }
.tag.new { color: var(--hold); background: rgba(245, 185, 74, .12); }
.tag.quiet { color: var(--muted); background: rgba(138, 146, 165, .14); }
.tag.bad { color: #FF9A9A; background: rgba(255, 122, 122, .12); }
.who-hint { display: flex; align-items: flex-start; gap: 7px; margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.who-hint .i { flex: none; margin-top: 2px; }

.people { margin-top: 16px; }
.people-l { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.people-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ycp .chip { display: flex; align-items: center; gap: 8px; height: 40px; max-width: 220px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13.5px; color: var(--text-2); }
.ycp .chip:hover { border-color: #3A4257; color: var(--text); }
.chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .av { width: 30px; height: 30px; font-size: 12px; }
.ycp .chip.on { color: #fff; border: 1.5px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; }
.ycp .chip.more { padding: 0 14px; color: var(--link); }

/* Amount */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); margin-bottom: 16px; }
.ycp .seg button { height: 34px; padding: 0 14px; display: flex; align-items: center; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ycp .seg button:hover:not([disabled]) { color: var(--text); }
.ycp .seg button.on { color: #fff; background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.ycp .seg button[disabled] { cursor: default; opacity: .5; }
.amt-box { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 10px 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); cursor: text; }
.amt-box:focus-within { border-color: #6B6BFF; box-shadow: 0 0 0 3px rgba(107, 107, 255, .18); }
.amt-box.bad { border-color: rgba(255, 122, 122, .6); }
.amt-box .lbl { flex: none; width: 74px; font-size: 13px; color: var(--muted); }
.amt-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font-size: 26px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.amt-box input::placeholder { color: var(--muted-2); font-weight: 500; }
.amt-box.locked, .amt-box.locked:focus-within { background: var(--surface-2); border-color: var(--line-2); box-shadow: none; cursor: default; }
.amt-box.locked input { color: var(--text); }
.amt-box.stale input { color: var(--muted); }
.ycp .cur-pick { position: relative; flex: none; display: flex; align-items: center; height: 42px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.ycp .cur-pick:hover { border-color: #3A4257; }
.ycp .cur-pick:focus-within { outline: 2px solid #7E7BFF; outline-offset: 2px; }
.cur-face { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; pointer-events: none; }
.cur-face img { width: 24px; height: 24px; border-radius: 50%; }
/* The native list, invisible over the face, so phones get their own picker and keyboards work as usual. */
.ycp .cur-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.ycp .cur-pick.fixed { cursor: default; }
.ycp .cur-pick.fixed select { display: none; }
.ycp .cur-pick.fixed .cur-face .i { display: none; }
.amt-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.amt-meta .linkish { font-size: 12.5px; }
.amt-swap { display: flex; align-items: center; justify-content: center; height: 0; position: relative; z-index: 1; }
.ycp .amt-swap button { width: 34px; height: 34px; margin: -1px 0; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); border: 3px solid var(--surface); color: var(--text-2); }
.ycp .amt-swap button:hover:not([disabled]) { color: #fff; }
.ycp .amt-swap button[disabled] { cursor: default; color: var(--muted-2); }
.amt-stack { display: flex; flex-direction: column; gap: 8px; }
.rate { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(155, 123, 255, .08); border: 1px solid rgba(155, 123, 255, .22); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.rate b { color: var(--text); font-weight: 600; }

/* Message and privacy */
.msg { position: relative; }
.ycp .msg textarea { display: block; width: 100%; min-height: 76px; resize: none; padding: 12px 14px 26px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.45; outline: 0; }
.ycp .msg textarea:focus { border-color: #6B6BFF; box-shadow: 0 0 0 3px rgba(107, 107, 255, .18); }
/* These fields show focus on their box, so the page-wide focus ring is not drawn around the field itself. */
.ycp .input input:focus-visible, .ycp .amt-box input:focus-visible, .ycp .msg textarea:focus-visible, .ycp .otp input:focus-visible { outline: 0; }
.ycp .msg textarea::placeholder { color: var(--muted-2); }
.msg .count { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: var(--muted-2); }
.priv { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
label.priv { cursor: pointer; }
.priv-t { display: block; min-width: 0; }
.priv-t b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.priv-t > span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.priv code { font-family: 'YCP Mono', monospace; font-size: 12px; color: var(--text-2); }
.priv > .i { flex: none; color: var(--muted); margin-top: 2px; }
.sw-input, .box-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sw { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #3A4257; position: relative; margin-top: 1px; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw-input:checked + .sw { background: var(--grad); }
.sw-input:checked + .sw::after { left: 19px; }
.sw-input:focus-visible + .sw { outline: 2px solid #7E7BFF; outline-offset: 2px; }

/* Summary */
.sum { position: sticky; top: 20px; }
.sum h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.sum-to { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); min-width: 0; }
.sum-to .av { width: 36px; height: 36px; font-size: 14px; color: #fff; }
.sum-to .av.anon { color: var(--muted); }
.sum-to > div { min-width: 0; }
.sum-to b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sum-to span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sum-to.empty b { color: var(--muted); font-weight: 500; }
.rows { margin: 0; }
.rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.rows dt { color: var(--muted); white-space: nowrap; }
.rows dd { margin: 0; min-width: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rows dd small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.rows .total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 13px; }
.rows .total dt { color: var(--text); font-weight: 600; }
.rows .total dd { font-size: 18px; font-weight: 700; }
.rows.stale dd { color: var(--muted); }
.note { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.note > span:first-child { flex: none; display: flex; margin-top: 1px; }
.note.ok { color: #BDF2D6; background: rgba(61, 214, 140, .08); border: 1px solid rgba(61, 214, 140, .22); }
.note.code { color: #F6DFB0; background: rgba(245, 185, 74, .08); border: 1px solid rgba(245, 185, 74, .25); }
.note.info { color: #CBD5FF; background: rgba(110, 168, 255, .08); border: 1px solid rgba(110, 168, 255, .22); }
.note.bad { color: #FFC9C9; background: rgba(255, 122, 122, .08); border: 1px solid rgba(255, 122, 122, .25); }
.note.wait { color: var(--muted); background: var(--bg); border: 1px solid var(--line-2); }
.ycp .btn.big { width: 100%; height: 50px; font-size: 15.5px; font-weight: 600; border-radius: 13px; }
.ycp .btn.primary[disabled] { box-shadow: none; filter: grayscale(.5); }
.fine { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted-2); }

/* Paying a request */
.note.paying { margin: 0; padding: 14px 16px; font-size: 13.5px; }
.note.paying b { color: #fff; font-weight: 600; }
.note.paying .linkish { margin-left: 4px; font-size: 13px; }

/* Review and done */
.rv { max-width: 600px; margin: 0 auto; }
.rv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rv-top h2 { margin: 0; font-size: 20px; font-weight: 600; }
.rv-top .linkish { font-size: 13.5px; }
.rv-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); margin-bottom: 8px; min-width: 0; }
.rv-hero .av { width: 52px; height: 52px; font-size: 18px; }
.rv-hero .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-hero .t span { font-size: 12.5px; color: var(--muted); }
.rv-hero .t b { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.rv-hero .t em { font-style: normal; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rv-msg { margin: 6px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.code-l { font-size: 14px; font-weight: 600; margin: 18px 0 4px; }
.code-s { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; overflow-wrap: anywhere; }
/* One real field for the code, drawn as six boxes. */
.otp { position: relative; display: flex; gap: 8px; width: fit-content; cursor: text; }
.otp span { width: 46px; height: 54px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: var(--text); font-family: 'YCP Mono', monospace; }
.otp span.cur { border-color: #6B6BFF; box-shadow: 0 0 0 3px rgba(107, 107, 255, .18); }
.otp.bad span { border-color: rgba(255, 122, 122, .55); }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; background: none; caret-color: transparent; }
.otp-r { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.otp-r .linkish { font-size: 12.5px; }
.save { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.save-h { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #4A5370; color: transparent; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.box-input:checked + .box { border-color: transparent; background: var(--grad); color: #fff; }
.box-input:focus-visible + .box { outline: 2px solid #7E7BFF; outline-offset: 2px; }
.save-h b { display: block; font-size: 14px; font-weight: 600; }
.save-h span span { font-size: 12.5px; color: var(--muted); }
.ycp .save .input { height: 42px; margin-top: 12px; font-size: 14px; }
.save .input .k { font-size: 12.5px; color: var(--muted); }
.rv-go { margin-top: 18px; }

.done { text-align: center; padding: 34px 26px 26px; }
.done-ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(61, 214, 140, .14); color: var(--in); }
.done h2 { margin: 0; font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.done .big-amt { margin: 10px 0 2px; font-size: 32px; font-weight: 700; color: var(--in); overflow-wrap: anywhere; }
.done .sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.done .rows { text-align: left; margin-top: 20px; padding: 6px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.done-b { display: flex; gap: 10px; margin-top: 20px; }
.done-b .btn { flex: 1; height: 46px; }

/* Requests */
.rq-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.rq-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.rq-h h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); }
.rq-h span { font-size: 12.5px; color: var(--muted); }
.rq { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rq:first-child { border-top: 0; }
.rq .av { width: 44px; height: 44px; font-size: 16px; align-self: flex-start; }
.rq-t { flex: 1; min-width: 0; }
.rq-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rq-top b { font-size: 14.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.rq-top span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.rq-amt { margin-top: 3px; font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rq-msg { margin-top: 3px; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.rq-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.rq-a { flex: none; display: flex; gap: 8px; }
.ycp .rq-a .btn { height: 40px; padding: 0 16px; }
.rq-empty { padding: 14px 0 6px; font-size: 13.5px; color: var(--muted); }
.rq-wrap .note { margin-bottom: 0; }

@media (max-width: 1100px) {
    .tr-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
}
@media (max-width: 920px) {
    .tr-grid { grid-template-columns: minmax(0, 1fr); }
    .sum { position: static; }
}
@media (max-width: 750px) {
    .tr { padding: 22px 16px 40px; }
    .tr-head { text-align: center; }
    .tr-head h1 { font-size: 28px; }
    .tr-tabs { display: flex; }
    .ycp .tr-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; }
    .tr-tabs button .i { display: none; }
    .tr-grid { gap: 16px; }
    .tr-card { padding: 16px; border-radius: 16px; }
    .amt-box { padding: 0 8px 0 14px; }
    .amt-box .lbl { width: 62px; }
    .amt-box input { font-size: 22px; }
    .who { flex-wrap: wrap; row-gap: 8px; }
    .who-t { flex: 1; }
    .who-r { flex-basis: 100%; margin-left: 0; padding-left: 56px; justify-content: flex-start; }
    .people-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .people-row::-webkit-scrollbar { display: none; }
    .ycp .chip { flex: none; }
    .otp { gap: 6px; }
    .otp span { width: 42px; height: 50px; }
    .rv-top h2 { font-size: 18px; }
    .done { padding: 26px 16px 18px; }
    .done-b { flex-direction: column; }
    .done-b .btn { flex: none; }
    .rq { flex-wrap: wrap; }
    .rq-a { width: 100%; padding-left: 58px; }
    .ycp .rq-a .btn { flex: 1; }
}
@media (max-width: 360px) {
    .otp span { width: 38px; height: 46px; font-size: 20px; }
}
