:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;color:#15151c;background:#eeedf2;font-synthesis:none;--accent:#4934f5;--muted:#83838f;--card:#f1f1f4;--line:#eeeef2;--error:#b83b45}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:0;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #a699ff;outline-offset:4px}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:scale(.98)}[hidden]{display:none!important}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.prototype{max-width:440px;margin:26px auto}.prototype-label{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;letter-spacing:.8px;color:#62616e;margin-bottom:14px;font-weight:500}.label-divider{color:#b5b2c0;padding:0 3px}.status-dot{width:6px;height:6px;background:var(--accent);border-radius:50%}.sheet{background:#fff;border:1px solid #e3e1e9;border-radius:28px;box-shadow:0 18px 65px #3025550b;overflow:hidden;min-height:796px;display:flex;flex-direction:column}.page-header{height:88px;display:grid;grid-template-columns:60px 1fr 60px;align-items:center;padding:0 22px;gap:8px}.page-header h1{text-align:center;font-size:21px;letter-spacing:1px;margin:0;font-weight:650}.icon-button{background:#f3f3f5;width:43px;height:43px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:27px;color:#17171b}.icon-button svg{width:23px;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.icon-button:disabled{opacity:.32}.text-button{background:transparent;color:#5c518b;font-size:13px;justify-self:end;padding:12px 0}.mode-strip{margin:0 22px 15px;padding:8px 11px;border-radius:9px;background:#f5f2ff;color:#786997;font-size:11px;display:flex;justify-content:space-between;letter-spacing:.3px}.mode-strip.live{background:#edf8f4;color:#43816e}.page{flex:1;display:flex;flex-direction:column}.recipient-row{width:100%;display:flex;align-items:center;gap:10px;padding:17px 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;background:#fff;color:#15151c;min-height:62px;font-size:15px}.recipient-row .muted{flex-shrink:0}.recipient-row #recipient-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.row-arrow{color:#a6a2b3;font-size:23px}.amount-entry{text-align:center;padding:30px 24px 3px;min-height:193px}.amount-input-wrap{display:flex;align-items:center;justify-content:center;gap:8px;min-height:70px}.amount-input-wrap input{font-size:54px;font-weight:650;letter-spacing:-1.7px;border:0;background:transparent;color:#17171c;text-align:center;min-width:52px;width:90px;max-width:100%;padding:0;outline-offset:0;border-radius:8px}.amount-input-wrap input::placeholder{color:#cbcad1}.amount-input-wrap input.long{font-size:32px;letter-spacing:-.7px}.amount-currency{font-size:12px;color:#aba8b5;align-self:center;margin-top:16px}.fiat-estimate{font-size:20px;font-weight:500;margin-top:5px;font-variant-numeric:tabular-nums}.valuation-note{font-size:10px;color:#a29eac;margin:9px 0 0}.error-message{font-size:12px;line-height:1.5;min-height:20px;margin:11px 0 0;color:var(--error)}.balance-row{display:flex;align-items:center;gap:13px;margin:9px 24px 12px}.token-icon{width:47px;height:47px;background:#29a083;border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;color:white;font-family:Arial,sans-serif;font-size:34px;line-height:1;flex-shrink:0}.network-mark{position:absolute;bottom:-2px;right:-2px;width:20px;height:20px;border:2px solid white;border-radius:6px;background:#ef214a;color:white;font-size:19px;display:flex;align-items:center;justify-content:center}.balance-copy{flex:1;min-width:0}.balance-copy strong{font-size:18px;display:block;overflow-wrap:anywhere;line-height:1.4}.balance-copy span{display:block;color:var(--muted);font-size:11px;margin-top:4px}.pill-button{background:#f1f1f3;border-radius:28px;padding:13px 19px;font-size:15px;font-weight:600;color:#202029}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:2px 14px;padding:0 20px;margin:2px 0 17px}.keypad button{height:67px;background:#fff;border-radius:20px;font-size:30px;font-weight:600;color:#19191e}.keypad button:hover{background:#f7f6fb}.keypad svg{width:27px;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.page-footer{padding:12px 20px 15px;margin-top:auto;border-top:1px solid transparent}.primary-button{width:100%;height:60px;border-radius:32px;color:white;background:var(--accent);font-weight:650;font-size:18px;letter-spacing:.6px}.primary-button:hover:not(:disabled){background:#3c27e2}.primary-button:disabled{background:#f2f2f5;color:#c5c3cd}.footer-note{font-size:10px;text-align:center;color:#aaa6b5;margin:11px 0 0}.desktop-caption{display:flex;justify-content:space-between;font-size:10px;font-weight:600;letter-spacing:.8px;margin:17px 10px;color:#8c879b}.desktop-caption span{letter-spacing:0;font-weight:400}.review-content{padding:0 22px 20px}.section-label{font-size:14px;color:var(--muted);margin:12px 0 12px;font-weight:500}.card{background:var(--card);border-radius:21px}.summary-card{padding:21px;display:flex;align-items:center;gap:16px;margin-bottom:23px}.summary-card strong{font-size:21px;line-height:1.35;overflow-wrap:anywhere}.secondary-line{display:block;color:var(--muted);font-size:14px;margin-top:7px}.detail-card{padding:21px 24px;margin:0 0 18px}.detail-card>div+div{margin-top:23px}.detail-card dt{color:var(--muted);font-size:13px;margin-bottom:9px}.detail-card dd{margin:0;font-size:17px;font-weight:550;overflow-wrap:anywhere;line-height:1.65}.network-value{display:flex;gap:8px;align-items:center}.tron-symbol{background:#ed1b40;color:white;border-radius:7px;width:23px;height:23px;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1}.small-badge{font-size:10px;color:#918aa6;background:#e7e5ee;border-radius:5px;padding:1px 6px;font-weight:400;margin-left:1px}.fee-card{padding:20px;display:flex;align-items:center;justify-content:space-between;font-size:13px;gap:8px}.fee-card>div{text-align:right}.fee-card strong{font-size:14px;font-weight:550}.fee-card .secondary-line{font-size:11px}.review-note{font-size:11px;line-height:1.7;color:#9a95a6;margin:15px 8px 0;text-align:center}.review-page .page-footer{border-top-color:var(--line)}.send-result{border:1px solid #dcd5ff;background:#f6f3ff;color:#64508d;border-radius:13px;margin-top:16px;padding:14px;font-size:12px;line-height:1.7}.send-result strong,.send-result span{display:block}.send-result strong{font-size:14px;margin-bottom:4px}
dialog{border:1px solid #e4e0ed;border-radius:24px;padding:25px;width:min(420px,calc(100vw - 28px));max-height:90dvh;box-shadow:0 24px 90px #19152c30;color:#24212d}dialog::backdrop{background:#1c18365c;backdrop-filter:blur(4px)}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header h2{font-size:21px;margin:0}.dialog-header .icon-button{width:33px;height:33px}.dialog-description{font-size:12px;line-height:1.8;color:#888292;margin:14px 0 18px}.mode-tabs{display:flex;background:#f1eef7;padding:4px;border-radius:11px;gap:4px;margin-bottom:19px}.mode-tabs button{flex:1;padding:10px 6px;border-radius:8px;background:transparent;color:#888090;font-size:13px}.mode-tabs button[aria-pressed=true]{background:white;box-shadow:0 2px 7px #2411450a;color:#4f35aa;font-weight:600}.field-label{display:block;font-size:12px;font-weight:600;margin:15px 0 8px;color:#55505f}.field{width:100%;background:#faf9fc;border:1px solid #e1ddeb;border-radius:10px;padding:12px;color:#292330;min-height:44px;font-size:16px}.address-field{font-size:12px}.field-help{font-size:11px;line-height:1.65;color:#96909e;margin:8px 1px 12px}.contract-note{background:#f7f6f9;border-radius:10px;padding:12px;margin-top:17px;color:#7b7486;font-size:11px;line-height:1.8}.contract-note strong,.contract-note code,.contract-note span{display:block}.contract-note strong{font-weight:550}.contract-note code{font-size:10px;overflow-wrap:anywhere;margin:4px 0}.settings-error{min-height:18px;color:var(--error);font-size:12px;line-height:1.6;margin:12px 0}dialog .primary-button{height:49px;font-size:14px}body:has(dialog[open]){overflow:hidden}
@media(max-width:480px){:root{background:#fff}.prototype{margin:0;max-width:none}.prototype-label{margin:0;padding:12px 8px;background:#f7f5fc;font-size:10px}.sheet{border:0;box-shadow:none;border-radius:0;min-height:calc(100dvh - 37px)}.page-header{height:79px}.desktop-caption{display:none}.page-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}.keypad{flex:1;align-content:center}.keypad button{height:clamp(52px,8.4dvh,78px)}.amount-entry{min-height:175px;padding-top:23px}.balance-row{margin-top:3px}.review-content{padding-top:1px}.review-page .page-footer{margin-top:auto}.amount-input-wrap input{font-size:53px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.language-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 6px 14px;padding:0 4px;color:#645b77}
.language-toolbar>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.language-toolbar label{font-size:12px;font-weight:600}
#language-status{font-size:10px;color:#8b829d;line-height:1.5}
#language-select{font:inherit;font-size:12px;border:1px solid #ded8eb;background:white;color:#53436b;border-radius:9px;padding:9px 27px 9px 10px;max-width:52%;cursor:pointer}
#language-select:focus-visible{outline:3px solid #a699ff;outline-offset:3px}
html[lang=en] .page-header h1{font-size:19px;letter-spacing:0}
html[lang=en] .primary-button{font-size:16px;letter-spacing:0}
html[lang=en] .summary-card strong{font-size:20px}
@media(max-width:480px){.language-toolbar{margin:0;padding:10px 22px;border-bottom:1px solid var(--line);background:#faf9fc}.sheet{min-height:calc(100dvh - 104px)}}
.resource-card{padding:16px 20px;margin-top:14px}.resource-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:13px}.resource-grid>div{min-width:0}.resource-grid span{display:block;color:var(--muted);font-size:10px;line-height:1.4}.resource-grid strong{display:block;margin-top:4px;font-size:13px;overflow-wrap:anywhere}

/* Fill the viewport, but let the document grow when zoom or content needs space. */
html{width:100%;min-height:100%;background:#fff}
body{width:100%;min-height:100vh;min-height:100dvh;background:#fff}
.prototype{width:min(100%,591px);min-height:100vh;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;max-width:none;padding-inline:env(safe-area-inset-left) env(safe-area-inset-right)}
.prototype-label,.language-toolbar,.mode-strip,.desktop-caption{display:none!important}
.sheet{width:100%;min-height:0;flex:1;border:0;border-radius:32px 32px 0 0;box-shadow:none;overflow:visible}
.page{min-width:0;flex:1 0 auto;overflow:visible}
.page-header{height:114px;flex:0 0 114px;padding:0 25px;grid-template-columns:48px 1fr 48px}
.page-header h1{font-size:24px;letter-spacing:0;grid-column:2}
.text-button{visibility:hidden;pointer-events:none}
.recipient-row{min-height:103px;padding:17px 25px;font-size:21px}
.recipient-row .muted{font-size:20px}
.row-arrow{display:none}
.amount-entry{padding:59px 24px 0;min-height:260px}
.amount-input-wrap{min-height:84px}
.amount-input-wrap input{font-size:76px;width:120px;line-height:1}
.amount-input-wrap input.long{font-size:42px}
.amount-currency{font-size:15px;margin-top:24px}
.fiat-estimate{font-size:25px;margin-top:15px}
.valuation-note{display:none}
.error-message{min-height:22px;margin-top:9px}
.error-message.pending-message{color:var(--muted)}
.balance-row{margin:22px 25px 10px;gap:18px}
.token-icon{width:62px;height:62px;font-size:43px}
.network-mark{width:25px;height:25px;font-size:22px}
.balance-copy strong{font-size:24px}
.balance-copy span{font-size:16px;margin-top:5px}
.pill-button{padding:17px 24px;font-size:18px}
.keypad{flex:1 0 auto;align-content:stretch;grid-template-rows:repeat(4,minmax(44px,1fr));gap:0 14px;padding:0 25px;margin:13px 0 7px}
.keypad button{height:auto;min-height:44px;border-radius:20px;font-size:34px}
.keypad svg{width:30px;height:30px}
.page-footer{flex:0 0 auto;padding:16px 25px max(25px,env(safe-area-inset-bottom));margin-top:auto}
.primary-button{height:86px;border-radius:44px;font-size:21px}
.footer-note{display:none}
.review-content{flex:0 0 auto;min-width:0;padding:0 25px 12px;overflow:visible}
.section-label{font-size:19px;margin:12px 0 16px}
.card{border-radius:25px}
.summary-card{padding:24px;min-height:118px;margin-bottom:28px;gap:18px}
.summary-card strong{font-size:25px}
.secondary-line{font-size:19px;margin-top:8px}
.detail-card{padding:24px 31px;margin-bottom:22px;min-height:360px}
.detail-card>div+div{margin-top:24px}
.detail-card dt{font-size:17px;margin-bottom:10px}
.detail-card dd{font-size:22px;line-height:1.5}
.network-value{gap:9px}
.tron-symbol{width:28px;height:28px;font-size:29px}
.fee-card{min-height:136px;padding:23px 25px;font-size:18px}
.fee-card strong{font-size:20px}
.fee-card .secondary-line{font-size:16px}
.resource-card{padding:16px 20px;margin-top:14px}
.review-note{font-size:13px;margin:9px 8px 0;line-height:1.4}
.resource-card,.review-note{display:none!important}
.amount-currency,.small-badge{display:none!important}
.send-result{margin-top:8px;padding:10px;font-size:11px;line-height:1.4}
.send-result strong{font-size:13px}
.review-page .page-footer{border-top-color:var(--line);padding-top:15px}

@media(max-width:591px){
  .sheet{border-radius:32px 32px 0 0}
  .page-header{height:calc(78px + env(safe-area-inset-top));flex-basis:calc(78px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .page-header h1{font-size:22px}
  .recipient-row{min-height:103px;padding-inline:25px;font-size:19px}
  .amount-entry{padding-top:40px;min-height:220px}
  .amount-input-wrap input{font-size:64px}
  .fiat-estimate{font-size:22px}
  .balance-row{margin-top:14px}
  .balance-copy strong{font-size:21px}
  .balance-copy span{font-size:14px}
  .pill-button{font-size:16px;padding:14px 20px}
  .keypad{padding-inline:25px;margin-top:5px}
  .keypad button{font-size:31px}
  .primary-button{height:70px;font-size:19px}
  .page-footer{padding-inline:25px;padding-bottom:max(25px,env(safe-area-inset-bottom))}
  .review-content{padding-inline:25px}
  .section-label{font-size:17px}
  .summary-card{min-height:112px;padding:20px}
  .summary-card strong{font-size:22px}
  .secondary-line{font-size:17px}
  .detail-card{min-height:0;padding:20px 25px}
  .detail-card dd{font-size:19px}
  .fee-card{min-height:112px;padding:20px}
  .fee-card strong{font-size:18px}
  .fee-card .secondary-line{font-size:14px}
}

@media(max-height:760px){
  .page-header{height:calc(78px + env(safe-area-inset-top));flex-basis:calc(78px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .recipient-row{min-height:70px}
  .amount-entry{padding-top:20px;min-height:150px}
  .balance-row{margin-top:5px}
  .token-icon{width:48px;height:48px;font-size:34px}
  .network-mark{width:20px;height:20px;font-size:18px}
  .balance-copy strong{font-size:18px}
  .balance-copy span{font-size:12px}
  .keypad button{font-size:27px}
  .page-footer{padding-top:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .primary-button{height:58px;font-size:17px}
  .detail-card{min-height:0}
}

/* Clip each image, not the wrapper: the network badge extends past the token. */
.token-icon{background:transparent;color:transparent;font-size:0}
.usdt-logo{display:block;width:100%;height:100%;aspect-ratio:1;flex-shrink:0;object-fit:contain;object-position:center;border-radius:50%;background:none}
.network-mark{display:flex;align-items:center;justify-content:center;padding:2px;background:#ef0027}
.network-mark .tron-logo{display:block;width:100%;height:100%}
.tron-symbol{display:flex;align-items:center;justify-content:center;background:#ef0027;font-size:0}
.tron-symbol .tron-logo{display:block;width:70%;height:70%}
.tron-logo{border-radius:50%;object-fit:contain;object-position:center}
.network-mark,.tron-symbol{overflow:hidden}
.recipient-row #recipient-label{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.fee-card{flex-wrap:wrap}
.fee-label{display:flex;align-items:center;gap:5px;white-space:normal}
.fee-quote{display:flex;flex:1 1 145px;min-width:0;max-width:100%;flex-direction:column;align-items:flex-end;gap:2px;text-align:right;overflow-wrap:anywhere}
.fee-savings{display:inline-block;max-width:100%;padding:3px 7px;border-radius:6px;background:#e5f5ee;color:#138a69;font-size:14px;font-weight:600;white-space:normal}
.fee-total{display:flex;align-items:center;gap:7px;font-size:20px;font-weight:600}
.fee-total .tron-symbol{width:24px;height:24px}
.fee-quote .secondary-line{margin-top:0;color:#8d8b99;font-size:16px}
@media(max-width:591px){.fee-savings{font-size:13px}.fee-total{font-size:18px}.fee-quote .secondary-line{font-size:14px}}

.summary-card>div:last-child{flex:1;min-width:0}
.fiat-estimate,.secondary-line{overflow-wrap:anywhere}
.address-field{font-size:16px}
dialog{max-height:90vh;max-height:90dvh;overflow:auto}

/* Tighten spacing on shorter screens without shrinking the whole page or locking zoom. */
@media(max-height:900px){
  .page-header{height:calc(64px + env(safe-area-inset-top));flex-basis:calc(64px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .review-content{padding:0 20px 10px}
  .section-label{font-size:16px;margin:8px 0 10px}
  .summary-card{min-height:88px;padding:16px;margin-bottom:16px}
  .secondary-line{font-size:15px;margin-top:6px}
  .detail-card{min-height:0;padding:16px 20px;margin-bottom:16px}
  .detail-card>div+div{margin-top:16px}
  .detail-card dt{font-size:14px;margin-bottom:6px}
  .detail-card dd{font-size:17px;line-height:1.4}
  .fee-card{min-height:88px;padding:16px;font-size:15px}
  .review-page .page-footer{padding:10px 20px max(16px,env(safe-area-inset-bottom))}
  .review-page .primary-button{height:60px}
}

@media(max-height:700px){
  .page-header{height:calc(52px + env(safe-area-inset-top));flex-basis:calc(52px + env(safe-area-inset-top))}
  .review-content{padding:0 16px 8px}
  .section-label{font-size:14px;margin:6px 0 8px}
  .summary-card{min-height:70px;padding:12px 16px;margin-bottom:10px;gap:12px}
  .secondary-line{font-size:14px;margin-top:4px}
  .detail-card{padding:12px 16px;margin-bottom:10px}
  .detail-card>div+div{margin-top:10px}
  .detail-card dt{font-size:13px;margin-bottom:4px}
  .detail-card dd{font-size:16px;line-height:1.35}
  .fee-card{min-height:76px;padding:12px 16px;font-size:14px}
  .fee-savings{font-size:12px}
  .fee-total{font-size:16px}
  .fee-quote .secondary-line{font-size:12px}
  .review-page .page-footer{padding:8px 16px max(12px,env(safe-area-inset-bottom))}
  .review-page .primary-button{height:52px}
}

@media(max-height:600px){
  .review-content .section-label{margin-top:4px}
  .summary-card{padding-block:10px}
  .fee-card{padding-block:10px}
}

/* Landscape uses the extra width instead of squeezing or stretching the cards. */
@media(min-width:540px) and (max-height:500px){
  .prototype{width:min(100%,760px)}
  .review-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px 12px;align-content:start}
  .review-content .section-label{margin:0;font-size:14px}
  .review-content .section-label:first-child{grid-column:1;grid-row:1}
  .review-content .section-label:nth-of-type(2){grid-column:2;grid-row:1}
  .summary-card{grid-column:1;grid-row:2;min-height:0;margin:0;padding:10px 12px}
  .detail-card{grid-column:2;grid-row:2 / 4;min-height:0;margin:0;padding:10px 12px}
  .detail-card>div+div{margin-top:8px}
  .fee-card{grid-column:1;grid-row:3;min-height:0;padding:10px 12px}
  .send-result{grid-column:1 / -1;margin-top:0}
  .review-page .page-footer{padding-top:6px}
}

/* Match phone-scale type and icons to the references. Height changes affect
   spacing continuously, so browser bars do not suddenly resize the content. */
@media (max-width:591px) and (min-height:501px) {
  .prototype{
    --phone-gutter:clamp(16px,4.6vw,22px);
    --group-gap:clamp(14px,calc(3vh - 4px),22px);
    --card-padding:clamp(14px,4.1vw,18px);
    --action-height:clamp(50px,14.87vw,60px);
  }
  .page-header{
    height:calc(clamp(52px,8.5vh,72px) + env(safe-area-inset-top));
    flex-basis:calc(clamp(52px,8.5vh,72px) + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) var(--phone-gutter) 0;
  }
  .page-header h1,html[lang=en] .page-header h1{font-size:clamp(16px,4.35vw,18px);font-weight:600}
  .recipient-row{min-height:66px;padding:14px var(--phone-gutter);font-size:clamp(14px,4.1vw,17px);gap:8px}
  .recipient-row .muted{font-size:14px}
  .recipient-row #recipient-label{line-height:1.45}
  .amount-entry{padding:clamp(20px,4.5vh,40px) var(--phone-gutter) 0;min-height:clamp(150px,24vh,208px)}
  .amount-input-wrap{min-height:60px}
  .amount-input-wrap input{font-size:clamp(44px,12.3vw,54px);font-weight:600}
  .amount-input-wrap input.long{font-size:30px}
  .fiat-estimate{font-size:clamp(16px,4.6vw,19px);margin-top:10px}
  .balance-row{margin:var(--group-gap) var(--phone-gutter) 14px;gap:13px}
  .token-icon{width:clamp(40px,11.3vw,48px);height:clamp(40px,11.3vw,48px)}
  .network-mark{width:19px;height:19px;padding:1px;border-radius:5px}
  .balance-copy strong{font-size:clamp(16px,4.35vw,18px);font-weight:600}
  .balance-copy span{font-size:13px;margin-top:5px}
  .pill-button{min-width:68px;min-height:44px;padding:11px 17px;font-size:14px}
  .keypad{padding-inline:var(--phone-gutter);row-gap:6px;margin:6px 0 12px}
  .keypad button{font-size:clamp(24px,6.7vw,28px);font-weight:600;min-height:44px}
  .keypad svg{width:24px;height:24px}
  .page-footer,.review-page .page-footer{padding:10px var(--phone-gutter) max(16px,env(safe-area-inset-bottom))}
  .primary-button,.review-page .primary-button{height:var(--action-height);border-radius:32px}
  .primary-button,html[lang=en] .primary-button{font-size:15px;font-weight:600}

  .review-content{padding:0 var(--phone-gutter) 10px}
  .section-label{font-size:13px;line-height:1.4;margin:8px 0 12px}
  .card{border-radius:18px}
  .summary-card{min-height:0;padding:var(--card-padding);gap:13px;margin-bottom:var(--group-gap)}
  .summary-card strong,html[lang=en] .summary-card strong{font-size:clamp(17px,4.6vw,19px);font-weight:600}
  .secondary-line{font-size:13px;margin-top:6px}
  .detail-card{min-height:0;padding:var(--card-padding) calc(var(--card-padding) + 3px);margin-bottom:var(--group-gap)}
  .detail-card>div+div{margin-top:var(--group-gap)}
  .detail-card dt{font-size:12px;line-height:1.4;margin-bottom:7px}
  .detail-card dd{font-size:clamp(14px,4vw,16px);font-weight:550;line-height:1.5}
  .network-value{gap:7px}
  .tron-symbol{width:21px;height:21px;border-radius:5px;flex-shrink:0}
  .fee-card{min-height:0;padding:var(--card-padding);font-size:13px;gap:8px}
  .fee-label{color:var(--muted);text-align:left}
  .fee-quote{flex-basis:138px;gap:4px}
  .fee-card strong,.fee-total{font-size:15px}
  .fee-card .secondary-line,.fee-quote .secondary-line{font-size:12px}
  .fee-savings{font-size:11px;font-weight:500;padding:3px 5px}
  .fee-total .tron-symbol{width:18px;height:18px}
}
@supports (height:100dvh) {
  @media (max-width:591px) and (min-height:501px) {
    .prototype{--group-gap:clamp(14px,calc(3dvh - 4px),22px)}
    .page-header{height:calc(clamp(52px,8.5dvh,72px) + env(safe-area-inset-top));flex-basis:calc(clamp(52px,8.5dvh,72px) + env(safe-area-inset-top))}
    .amount-entry{padding-top:clamp(20px,4.5dvh,40px);min-height:clamp(150px,24dvh,208px)}
  }
}

/* Short viewports reserve room for the action without reducing readable type. */
@media (max-width:591px) and (min-height:501px) and (max-height:600px) {
  .amount-entry{min-height:120px;padding-top:16px}
  .error-message:empty{min-height:0;margin:0}
  .balance-row{margin-block:8px}
  .keypad{row-gap:2px;margin-block:4px 10px}
  .review-content{padding-bottom:6px}
  .review-content .section-label{margin-top:4px;margin-bottom:4px}
  .summary-card{padding-block:10px;margin-bottom:8px}
  .detail-card{padding-block:10px;margin-bottom:10px}
  .detail-card>div+div{margin-top:10px}
  .detail-card dt{margin-bottom:4px}
  .fee-card{padding-block:10px}
  .page-footer,.review-page .page-footer{padding-top:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
}

/* Explicit public-address sharing and order feedback stay in normal flow. */
.page-header{position:relative}
.wallet-button{position:absolute;right:20px;bottom:12px;background:#f1eefb;color:#513bb4;border-radius:14px;min-height:36px;padding:8px 10px;font-size:12px;font-weight:600}
.wallet-button:disabled{opacity:.55}
.recipient-row{cursor:default}
.order-status{font-size:11px;line-height:1.45;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}
.order-status:empty{display:none}
.order-status.error{color:var(--error)}
.order-link{background:transparent;color:#513bb4;font-size:12px;text-decoration:underline;padding:8px}
.order-footer-note{font-size:10px;line-height:1.45;color:#777180;text-align:center;margin:7px 0 0}
.secondary-button{width:100%;min-height:44px;border-radius:24px;background:#f1eefb;color:#513bb4;font-size:14px;font-weight:600;margin-top:14px;padding:10px}
#wallet-dialog .dialog-description{color:#625d6e}
#wallet-dialog .primary-button{height:auto;min-height:49px;padding:12px;font-size:13px}
#wallet-feedback{overflow-wrap:anywhere}
.send-result.error{background:#fff5f5;border-color:#ebcaca;color:#963a43}
.send-result .order-link{display:block;margin-top:8px;padding:7px 0}
@media(max-width:360px){.page-header h1,html[lang=en] .page-header h1{font-size:15px}.wallet-button{right:12px;font-size:11px;padding-inline:8px}}
@media(max-width:591px) and (min-height:501px) and (max-height:600px){.review-page .order-footer-note{margin-top:4px}.review-page .page-footer{padding-top:6px}.review-content{padding-bottom:4px}}
.visit-notice{font-size:10px;line-height:1.4;color:#726d7d;margin:5px 0;overflow-wrap:anywhere}
.recipient-row #recipient-label{white-space:pre-wrap;overflow-wrap:anywhere;text-overflow:clip}
#review-to{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:591px) and (min-height:501px) and (max-height:600px){
  .recipient-row{min-height:52px;padding-block:8px;font-size:13px}
  .amount-entry{padding-top:8px}
  .amount-input-wrap{min-height:48px}
  .fiat-estimate{margin-top:6px}
  .balance-row{margin-block:6px}
  .keypad{margin-bottom:4px}
}
