/* A single fixed shell for every wallet view; only the inner panel scrolls. */
#modal[data-kind="wallet"]{width:min(640px,calc(100vw - 32px));height:min(780px,calc(100dvh - 40px));max-height:none;max-width:none;margin:auto;padding:0;border:1px solid #fff;border-radius:24px;background:#fff;color:#19191c;overflow:hidden;box-shadow:0 30px 100px #24211c29}
#modal[data-kind="wallet"]::backdrop{background:rgb(31 30 29 / 48%);backdrop-filter:blur(2px)}
#modal[data-kind="wallet"] .modal-shell{height:100%;padding:28px 29px 18px;display:flex;flex-direction:column;overflow:hidden}
#modal[data-kind="wallet"] .modal-header{position:relative;flex:none;margin:0;padding:0 38px 0 0;background:#fff;min-height:45px}
#modal[data-kind="wallet"] .modal-header h2{margin:0;font-size:36px;line-height:1.2;letter-spacing:-1.3px;font-weight:750}
#modal[data-kind="wallet"] #modal-eyebrow{display:none}
#modal[data-kind="wallet"] .close-modal{right:-5px;top:-4px;background:transparent;width:36px;height:36px;border-radius:10px;color:#28282c}
#modal[data-kind="wallet"] .close-modal:hover{background:#f7f6f4}
#modal[data-kind="wallet"] #modal-body{display:flex;flex-direction:column;min-height:0;flex:1}
#modal[data-kind="wallet"] button{touch-action:manipulation}
#modal[data-kind="wallet"] :focus-visible{outline:2px solid #ff641c;outline-offset:3px}
.rw-balance{flex:none;font-size:17px;color:#94969f;line-height:26px;margin:0 0 16px}.rw-balance b{color:#727580;font-weight:550;font-variant-numeric:tabular-nums}
.rw-tabs{height:55px;display:flex;gap:17px;flex:none;border-bottom:1px solid #ececef;margin-bottom:20px}
.rw-tabs button{border:0;background:none;padding:0 12px 15px;position:relative;font-size:16px;min-width:90px;color:#44454f}
.rw-tabs button::after{content:'';position:absolute;bottom:-1px;height:4px;border-radius:4px;left:0;right:0;background:#ff641c;opacity:0;transform:scaleX(.6);transition:opacity .16s,transform .2s}
.rw-tabs button[aria-selected="true"]{font-weight:650;color:#18191b}.rw-tabs button[aria-selected="true"]::after{opacity:1;transform:scaleX(1)}
.rw-panel{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dedbd7 transparent;outline:none!important}
.rw-panel>*{animation:rw-reveal .16s ease-out}
.rw-form{min-height:100%;display:flex;flex-direction:column;gap:18px;padding:1px 1px 5px}
.rw-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:none}
.rw-method{height:112px;border:1px solid #e9e9ec;border-radius:11px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;position:relative;transition:background .18s,border-color .18s;font-size:13px;font-weight:550;min-width:0;padding:8px 3px}
.rw-method:hover{background:#fff9f4;border-color:#ffd1b7}.rw-method.is-selected{background:#fff0e6;border-color:#ffdfcc}
.rw-method::after{content:'';position:absolute;bottom:0;left:2px;right:2px;height:4px;border-radius:5px;background:#ff641c;opacity:0;transition:opacity .18s}.rw-method.is-selected::after{opacity:1}
.rw-mark{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;flex:none}.rw-mark svg{display:block;width:100%;height:100%}
.rw-fields{display:flex;flex-direction:column;gap:12px}.rw-field{display:flex;flex-direction:column;gap:8px;color:#626570;font-size:14px;font-weight:400}
.rw-field>input,.rw-network select,.rw-filters select{width:100%;min-width:0;height:48px;padding:0 14px;border:1px solid #dedfe5;border-radius:11px;background:#fff;color:#24252a;box-shadow:0 1px 2px #11111103;outline:none}
.rw-field input::placeholder{color:#a0a2ad}.rw-field input:focus,.rw-network select:focus{border-color:#ff9f70}
.rw-field input[aria-invalid="true"]{border-color:#d95335}
.rw-amount{display:flex;align-items:center;height:66px;border:1px solid #dedfe5;border-radius:12px;padding:0 22px;gap:12px;box-shadow:0 1px 2px #11111103}
.rw-amount:focus-within{border-color:#ff9f70}.rw-amount input{border:0;outline:none!important;box-shadow:none!important;min-width:0;width:100%;font-size:32px;font-weight:700;letter-spacing:-.7px;color:#18191b;background:transparent;font-variant-numeric:tabular-nums}
.rw-amount>span{font-size:25px;color:#a0a1ab;font-weight:600}.rw-amount button{border:0;background:#f7f6f4;border-radius:7px;padding:8px;color:#686a74;font-size:13px}
.rw-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rw-presets button{height:46px;border:1px solid #e6e5e9;border-radius:11px;background:#fcfbfa;font-size:13px;font-weight:550;white-space:nowrap;transition:border-color .18s,background .18s}.rw-presets button.is-selected{border-color:#ff8d50;background:#fff2e8}.rw-presets button:hover{border-color:#ff9f70}
.rw-checkout{margin-top:auto;display:flex;flex-direction:column;gap:10px}.rw-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:12px 20px;border-radius:12px;background:#f6f6f7;color:#686a75;font-size:14px}.rw-summary b{display:flex;align-items:center;gap:12px;color:#24242b;font-weight:600}.rw-summary .rw-mark{width:29px;height:29px}
.rw-primary{width:100%;min-height:58px;border:1px solid #ff5b17;border-radius:12px;background:linear-gradient(110deg,#ff6d24,#fa571b);color:#fff;font-size:17px;font-weight:650;transition:filter .15s,transform .15s}.rw-primary:hover{filter:brightness(1.045)}.rw-primary:active{transform:translateY(1px)}
.rw-tg-link{display:flex;justify-content:center;min-height:36px;margin:6px 0 2px}.rw-hint{font-size:12px;text-align:center;color:#898b96;line-height:18px;min-height:18px;margin:0}.rw-error{color:#c44528;font-size:12px;line-height:1.5;margin:0}.rw-error:empty{display:none}
.rw-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rw-network label{min-width:0;display:flex;flex-direction:column;gap:5px;color:#858793;font-size:11px}.rw-network select{height:44px;font-size:13px;font-weight:550}.rw-withdraw{gap:10px}.rw-withdraw .rw-fields{gap:8px}.rw-withdraw .rw-method{height:88px;gap:8px}.rw-withdraw .rw-mark{width:36px;height:36px}.rw-withdraw .rw-amount{height:56px}.rw-withdraw .rw-amount input{font-size:28px}.rw-withdraw .rw-summary{min-height:46px;padding:8px 16px}.rw-withdraw .rw-summary .rw-mark{width:24px;height:24px}.rw-withdraw .rw-primary{min-height:52px}
.rw-footer{height:50px;flex:none;display:flex;align-items:flex-end;justify-content:center;margin-top:14px;border-top:1px solid #ededf0;padding-bottom:9px}.rw-footer button{padding:0;border:0;border-bottom:1px dashed #93949d;background:none;color:#777985;font-size:13px;line-height:20px}
.rw-history{height:100%;display:flex;flex-direction:column;min-height:440px}.rw-filters{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;flex:none}.rw-filter-group{display:flex;gap:6px}.rw-filter-group button{height:40px;border:1px solid #e9e8eb;border-radius:10px;background:#fafafa;font-size:12px;padding:0 12px}.rw-filter-group button[aria-pressed="true"]{border-color:#ff9d6d;background:#fff1e7}.rw-filters select{width:auto;max-width:140px;height:40px;font-size:12px;padding:0 10px}
.rw-operations{flex:1;min-height:0}.rw-operation{width:100%;display:flex;align-items:center;gap:12px;min-height:79px;background:transparent;border:0;border-bottom:1px solid #eeeef1;padding:12px 0;text-align:left}.rw-operation:hover{background:#fdfaf7}.rw-operation>.rw-mark{width:46px;height:46px;border:1px solid #eee;border-radius:50%;padding:8px}
.rw-tx-text{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.rw-tx-text b{font-size:14px;font-weight:600}.rw-tx-text small{font-size:12px;color:#858794;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.rw-tx-text time{color:#9b9da6;font-size:11px}.rw-tx-value{display:flex;flex-direction:column;gap:9px;align-items:flex-end;flex:none}.rw-tx-value>b{font-size:16px;white-space:nowrap;font-weight:650;letter-spacing:-.3px}.is-positive{color:#00a251}
.rw-status{font-size:11px;display:inline-flex;gap:6px;align-items:center;white-space:nowrap}.rw-status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.rw-status.pending{color:#d78a13}.rw-status.success{color:#00a251}.rw-status.neutral,.rw-status.muted{color:#979ba6}
.rw-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;flex:none;font-size:12px}.rw-pagination>span{margin-right:auto;color:#9698a1}.rw-pagination b{font-weight:500}.rw-pagination b span{color:#9698a1}.rw-pagination button{width:32px;height:32px;border:1px solid #e9e8ec;border-radius:9px;background:#fff;font-size:22px}.rw-empty{height:100%;min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.rw-empty>span{font-size:28px;color:#ff641c;background:#fff2e7;width:64px;height:64px;border-radius:20px;display:grid;place-items:center}.rw-empty b{font-size:17px}.rw-empty p{margin:0;font-size:13px;color:#92949e;line-height:1.8}
.rw-review{display:flex;flex-direction:column;align-items:center;gap:16px;min-height:100%;padding:0 1px 5px}.rw-back{align-self:flex-start;background:none;border:0;padding:5px 0;color:#858793;font-size:13px}.rw-review-symbol{margin:8px 0 0;background:#fff3e9;border-radius:20px;padding:16px}.rw-review h3{font-size:22px;letter-spacing:-.5px;margin:0;text-align:center}.rw-review-amount{font-size:36px;font-weight:750;margin:0;letter-spacing:-1px}.rw-review dl{width:100%;font-size:13px;margin:0}.rw-review dl>div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #eeeef0;padding:14px 0}.rw-review dt{color:#888b96;flex:none}.rw-review dd{margin:0;text-align:right;overflow-wrap:anywhere}.rw-review>.rw-primary{margin-top:auto}.rw-service-note{width:100%;border-radius:12px;background:#fff4e9;padding:15px;color:#81624b;font-size:13px}.rw-service-note p{font-size:12px;line-height:1.6;margin:6px 0 0}
@keyframes rw-reveal{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:600px){#modal[data-kind="wallet"]{width:calc(100vw - 20px);height:calc(100dvh - 24px);border-radius:21px}#modal[data-kind="wallet"] .modal-shell{padding:23px 18px 12px}#modal[data-kind="wallet"] .modal-header{min-height:39px}#modal[data-kind="wallet"] .modal-header h2{font-size:30px}.rw-balance{font-size:14px;margin-bottom:10px}.rw-tabs{height:48px;margin-bottom:16px;gap:8px}.rw-tabs button{min-width:0;padding:0 9px 12px;font-size:14px}.rw-methods{gap:6px}.rw-method{height:91px;font-size:10px;gap:11px}.rw-mark{width:34px;height:34px}.rw-form{gap:18px}.rw-amount{padding:0 16px;height:60px}.rw-amount input{font-size:30px}.rw-presets{gap:6px}.rw-presets button{font-size:11px;height:42px}.rw-summary{padding:12px 14px;font-size:12px;min-height:54px}.rw-primary{min-height:54px;font-size:15px}.rw-footer{height:42px;margin-top:12px}.rw-filters{flex-wrap:wrap;gap:8px}.rw-filter-group button{padding:0 10px}.rw-filters select{max-width:100%;height:34px}.rw-operation{gap:9px;min-height:83px}.rw-tx-text b{font-size:13px}.rw-tx-text small{max-width:150px;font-size:11px}.rw-tx-value>b{font-size:14px}.rw-status{font-size:10px}.rw-operation>.rw-mark{width:35px;height:35px;padding:6px}.rw-withdraw{gap:11px}.rw-withdraw .rw-method{height:83px;font-size:10px}.rw-withdraw .rw-mark{width:30px;height:30px}.rw-field{font-size:12px}.rw-field>input{font-size:13px;padding:0 10px}.rw-network select{font-size:12px;padding:0 10px}.rw-review h3{font-size:21px}}
/* 16px editable controls prevent Safari's focus zoom from resizing the wallet. */
@media(max-width:600px){.rw-field>input,.rw-network select,.rw-filters select{font-size:16px}}
@media(max-width:600px) and (max-height:740px){.rw-withdraw .rw-method{height:70px;gap:6px}.rw-withdraw .rw-field>input{height:42px}.rw-withdraw .rw-network select{height:40px}.rw-withdraw .rw-amount{height:48px}.rw-withdraw .rw-summary{min-height:40px;padding:6px 12px}.rw-withdraw .rw-primary{min-height:46px}.rw-withdraw .rw-checkout{gap:8px}.rw-withdraw .rw-field{gap:6px}}
@media(prefers-reduced-motion:reduce){.rw-panel>*{animation:none}.rw-tabs button::after,.rw-method,.rw-primary{transition:none}}
