/* Wallet presentation: shared geometry, independently tuned light and dark materials. */
html[data-s-theme="light"]{--w-bg:#f2f5f9;--w-card:#fff;--w-soft:#f5f7fb;--w-line:#dce4ee;--w-text:#16263c;--w-muted:#5d6f86;--w-blue:#155de7;--w-glow:#e2edff;--w-shadow:0 12px 32px #193c6810}
html[data-s-theme="dark"]{--w-bg:#17212c;--w-card:#22303e;--w-soft:#293848;--w-line:#405167;--w-text:#f1f5fb;--w-muted:#b0bfd0;--w-blue:#87c4ff;--w-glow:#263f5a;--w-shadow:0 12px 32px #00000019}
html[data-s-theme] body.s-wallet-home{background:var(--w-bg)!important;color:var(--w-text)!important}
html[data-s-theme] body.s-wallet-home .shell{background:var(--w-bg)!important;border-color:var(--w-line)!important;box-shadow:none!important}
html[data-s-theme] body.s-wallet-home .shell>main{padding:0 20px 36px!important;width:100%!important;max-width:none!important}
html[data-s-theme] body.s-wallet-home .app-header-main{background:var(--w-bg)!important;padding:20px!important;height:82px!important;border:0!important}
html[data-s-theme] body.s-wallet-home .app-header-main button{background:var(--w-card)!important;border:1px solid var(--w-line)!important;border-radius:14px!important;color:var(--w-text)!important;min-width:42px;min-height:42px}
html[data-s-theme] body.s-wallet-home .s-intro{padding:22px 2px 24px!important;margin:0!important;position:relative}
html[data-s-theme] body.s-wallet-home .s-intro p{color:var(--w-muted)!important;font-size:14px!important;margin:0 0 9px!important;line-height:1.5}
html[data-s-theme] body.s-wallet-home .s-intro h1{font-size:30px!important;line-height:1.3!important;letter-spacing:-1.3px!important;color:var(--w-text)!important;margin:0!important}
html[data-s-theme] body.s-wallet-home .s-number{position:static!important;margin:14px 0 0!important;padding:7px 10px!important;min-height:32px!important;font-size:12px!important;border:1px solid var(--w-line)!important;background:var(--w-card)!important;border-radius:10px!important;color:var(--w-muted)!important}
html[data-s-theme] body.s-wallet-home .s-balance{border:1px solid var(--w-line)!important;border-radius:28px!important;background:var(--w-card)!important;box-shadow:var(--w-shadow)!important;padding:24px!important;overflow:hidden;position:relative}
html[data-s-theme] body.s-wallet-home .s-balance-label{display:flex!important;align-items:center;justify-content:space-between;color:var(--w-muted)!important;font-size:14px!important;font-weight:400!important}
html[data-s-theme] body.s-wallet-home .s-balance-label>span:before{content:'₮';display:inline-grid;place-items:center;background:#159c83;color:#fff;width:26px;height:26px;border-radius:50%;margin-right:9px;font-weight:700}
html[data-s-theme] body.s-wallet-home .s-balance-label .icon-only{color:var(--w-muted)!important;background:var(--w-soft)!important;border:1px solid var(--w-line)!important;border-radius:11px!important;width:36px!important;height:36px!important}
html[data-s-theme] body.s-wallet-home .s-money{display:flex;align-items:baseline;gap:9px;margin:20px 0 17px!important;flex-wrap:wrap}
html[data-s-theme] body.s-wallet-home .s-money strong{font-size:46px!important;letter-spacing:-2px!important;line-height:1.15!important;color:var(--w-text)!important;font-variant-numeric:tabular-nums}
html[data-s-theme] body.s-wallet-home .s-money>span{font-size:14px!important;color:var(--w-muted)!important;font-weight:700}
html[data-s-theme] body.s-wallet-home .s-point-link{display:flex;align-items:center;gap:7px;background:var(--w-soft)!important;border:1px solid var(--w-line)!important;color:var(--w-muted)!important;border-radius:12px!important;padding:9px 12px!important;font-size:13px!important;width:100%!important;margin:0!important;min-height:40px}
html[data-s-theme] body.s-wallet-home .s-point-link b{margin-left:auto;color:var(--w-text)!important}.s-point-link svg{width:14px;height:14px}
html[data-s-theme] body.s-wallet-home .s-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;margin:22px 0 0!important;padding:0!important;border:0!important}
html[data-s-theme] body.s-wallet-home .s-action{display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;gap:10px!important;min-height:91px!important;padding:14px 4px!important;background:var(--w-soft)!important;border:1px solid var(--w-line)!important;border-radius:18px!important;color:var(--w-text)!important;box-shadow:none!important;font-size:15px!important}
html[data-s-theme] body.s-wallet-home .s-action i{background:none!important;color:var(--w-blue)!important;width:26px!important;height:26px!important;border-radius:0!important;padding:0!important}
html[data-s-theme] body.s-wallet-home .s-action svg{width:25px!important;height:25px!important}
html[data-s-theme] body.s-wallet-home .s-action:first-child{background:#2168ed!important;border-color:#2168ed!important;color:#fff!important}
html[data-s-theme] body.s-wallet-home .s-action:first-child *{color:#fff!important}
html[data-s-theme] body.s-wallet-home .s-wave-stage{margin:22px 0!important;height:190px!important;padding:0!important}
html[data-s-theme] body.s-wallet-home .s-wave-panel{height:190px!important;border:1px solid var(--w-line)!important;border-radius:25px!important;background:var(--w-glow)!important;box-shadow:none!important}
html[data-s-theme] body.s-wallet-home .s-wave-copy{padding:24px!important;display:flex!important;flex-direction:row-reverse!important;justify-content:space-between!important;gap:0!important;height:100%}
html[data-s-theme] body.s-wallet-home .s-wave-copy small{color:var(--w-blue)!important;letter-spacing:2px;font-size:10px!important;font-weight:700}
html[data-s-theme] body.s-wallet-home .s-wave-copy h2{font-size:25px!important;line-height:1.3!important;letter-spacing:-1px;color:var(--w-text)!important;margin:9px 0!important}
html[data-s-theme] body.s-wallet-home .s-wave-copy p{color:var(--w-muted)!important;font-size:12px!important;margin:0!important}
html[data-s-theme] body.s-wallet-home .s-float-shield{width:135px!important;height:145px!important;flex:0 0 135px!important;background:transparent!important}
html[data-s-theme] body.s-wallet-home .s-shield{width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(0 12px 12px #174d9125)!important}
html[data-s-theme] body.s-wallet-home .s-wave{opacity:.13!important}
html[data-s-theme] body.s-wallet-home .s-shortcuts{display:flex!important;flex-direction:column;gap:0!important;background:var(--w-card)!important;border:1px solid var(--w-line)!important;border-radius:23px!important;overflow:hidden;padding:0 18px!important;margin:0!important}
html[data-s-theme] body.s-wallet-home .s-shortcuts button{display:flex!important;align-items:center;gap:12px;min-height:65px!important;padding:16px 0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--w-line)!important;border-radius:0!important;color:var(--w-text)!important;font-size:14px!important;box-shadow:none!important}
html[data-s-theme] body.s-wallet-home .s-shortcuts button:last-child{border-bottom:0!important}
html[data-s-theme] body.s-wallet-home .s-shortcuts button>svg{margin-left:auto;width:15px;color:var(--w-muted)!important}
html[data-s-theme] body.s-wallet-home .s-shortcuts i{display:flex;color:var(--w-blue)!important;background:var(--w-soft)!important;padding:9px;border-radius:11px}.s-shortcuts i svg{width:20px;height:20px}
html[data-s-theme] body.s-wallet-home .s-shortcuts b{margin-left:auto;color:var(--w-text)!important}
html[data-s-theme] body.s-wallet-home .s-recent{margin:30px 0 0!important;padding:0!important;background:transparent!important;border:0!important}
html[data-s-theme] body.s-wallet-home .s-recent>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
html[data-s-theme] body.s-wallet-home .s-recent h2,html[data-s-theme] body.s-wallet-home .s-more h2{font-size:19px!important;color:var(--w-text)!important;margin:0!important;letter-spacing:-.5px}
html[data-s-theme] body.s-wallet-home .s-recent>div:first-child button{display:flex;align-items:center;gap:5px;background:var(--w-card)!important;border:1px solid var(--w-line)!important;border-radius:10px!important;padding:9px 11px!important;font-size:12px!important;color:var(--w-muted)!important}
.s-recent>div:first-child button svg{width:13px;height:13px}
html[data-s-theme] body.s-wallet-home .s-empty{border:1px solid var(--w-line)!important;background:var(--w-card)!important;border-radius:22px!important;padding:26px 16px!important;min-height:150px!important;color:var(--w-muted)!important;text-align:center}
html[data-s-theme] body.s-wallet-home .s-empty>svg{width:28px;height:28px;color:var(--w-muted)!important;opacity:.7}.s-empty p{font-size:13px;line-height:1.7}
html[data-s-theme] body.s-wallet-home .s-empty button{color:var(--w-blue)!important;background:transparent!important;border:0!important;min-height:36px}
html[data-s-theme] body.s-wallet-home .s-more{padding-top:30px!important}.s-more>div{margin-top:15px}
html[data-s-theme] body.s-wallet-home .s-more button{background:var(--w-card)!important;color:var(--w-text)!important;border:1px solid var(--w-line)!important;border-radius:19px!important;padding:19px 15px!important;min-height:79px!important;font-size:14px!important;box-shadow:none!important}
html[data-s-theme] body.s-wallet-home .s-more i{color:var(--w-blue)!important}
html[data-s-theme] body.s-wallet-home .s-install-entry button{margin-top:24px;background:var(--w-card)!important;color:var(--w-text)!important;border:1px solid var(--w-line)!important;border-radius:20px!important;padding:18px!important;width:100%;min-height:82px}
html[data-s-theme] body.s-wallet-home .s-install-entry small,html[data-s-theme] body.s-wallet-home .s-footer{color:var(--w-muted)!important}
html[data-s-theme] body.s-wallet-home .s-footer{padding:32px 0 22px!important;line-height:1.8}
html[data-s-theme] body.s-wallet-home .s-start{background:#2168ed!important;color:white!important;border:0!important;border-radius:16px!important;min-height:54px;margin-top:15px;width:100%}
@media(max-width:360px){html[data-s-theme] body.s-wallet-home .shell>main{padding-left:15px!important;padding-right:15px!important}html[data-s-theme] body.s-wallet-home .s-balance{padding:20px!important}html[data-s-theme] body.s-wallet-home .s-money strong{font-size:39px!important}html[data-s-theme] body.s-wallet-home .s-float-shield{width:110px!important;flex-basis:110px!important}html[data-s-theme] body.s-wallet-home .s-wave-copy{padding:20px!important}}

html[data-s-theme] body.s-wallet-home .s-money{padding:0!important;min-height:0!important;margin:22px 0 19px!important}html[data-s-theme] body.s-wallet-home .s-money strong{font-size:clamp(30px,9vw,42px)!important;letter-spacing:-1.6px!important}html[data-s-theme] body.s-wallet-home .s-money>span{font-size:12px!important}html[data-s-theme] body.s-wallet-home .s-balance:before,html[data-s-theme] body.s-wallet-home .s-balance:after{display:none!important}

html[data-s-theme] body.s-wallet-home .shell>main{background:var(--w-bg)!important}
html[data-s-theme] body.s-wallet-home #app .s-balance .s-actions .s-action:not(:first-child) span{color:var(--w-text)!important}
html[data-s-theme] body.s-wallet-home #app .s-balance .s-actions .s-action:not(:first-child) i,html[data-s-theme] body.s-wallet-home #app .s-balance .s-actions .s-action:not(:first-child) svg{color:var(--w-blue)!important}
html[data-s-theme] body.s-wallet-home #app .s-balance .s-actions .s-action:not(:first-child) svg *{color:inherit!important;stroke:currentColor!important}

/* Every wallet sheet fits the visual viewport, including iOS Safari toolbars. */
html[data-s-theme] #modal-root .scrim{position:fixed!important;inset:auto 0!important;top:var(--s-viewport-top,0px)!important;height:var(--s-viewport-height,100dvh)!important;display:flex!important;align-items:flex-end!important;padding:8px 8px max(8px,env(safe-area-inset-bottom))!important;overflow:hidden!important}
html[data-s-theme] #modal-root .modal{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;width:100%!important;max-width:500px!important;max-height:calc(var(--s-viewport-height,100dvh) - 20px - env(safe-area-inset-bottom))!important;margin:0 auto!important;transform:none!important;border-radius:24px!important;overflow:hidden!important}
html[data-s-theme] #modal-root .modal>header,html[data-s-theme] #modal-root .modal>footer{flex:0 0 auto!important;position:relative!important;inset:auto!important}
html[data-s-theme] #modal-root .modal>.modal-body{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:20px!important;overflow-wrap:anywhere}
html[data-s-theme] #modal-root .modal .modal-body img{max-width:100%;object-fit:contain}
html[data-s-theme] #modal-root .modal>footer{padding:14px 20px!important}
@media(min-width:650px){html[data-s-theme] #modal-root .scrim{align-items:center!important}}

html[data-s-theme] .s-pin-pad .s-pin-dots{display:flex!important;justify-content:center!important;gap:15px!important;padding:16px 4px!important;min-height:52px!important}
html[data-s-theme] .s-pin-pad .s-pin-dot{display:block!important;width:17px!important;height:17px!important;flex:0 0 17px!important;border-radius:50%!important;border:2px solid #8497af!important;background:transparent!important;transition:background .14s,transform .14s!important}
html[data-s-theme] .s-pin-pad .s-pin-dot.filled{background:#3482ff!important;border-color:#3482ff!important;transform:scale(1.12);box-shadow:0 0 0 4px #3482ff20}
html[data-s-theme] .s-pin-pad .s-pin-keys button{transition:background .1s,transform .1s,box-shadow .1s!important}
html[data-s-theme] .s-pin-pad .s-pin-keys button:active,html[data-s-theme] .s-pin-pad .s-pin-keys button.s-key-hit{background:#246bed!important;color:#fff!important;border-color:#246bed!important;transform:scale(.93)!important;box-shadow:inset 0 2px 5px #153f8733!important}
html[data-s-theme] .s-pin-pad .s-pin-keys button.s-key-hit *{color:#fff!important}

html[data-s-theme] #modal-root .preference-settings{display:flex!important;flex-direction:column!important;gap:18px!important;padding:8px 0 20px!important}
html[data-s-theme] #modal-root .preference-settings>label{padding:18px!important;min-height:66px!important;margin:0!important;border:1px solid var(--s-border)!important;border-radius:16px!important;gap:18px!important;line-height:1.6}
html[data-s-theme] #modal-root .preference-settings .preference-volume{gap:16px!important;padding-bottom:24px!important}
html[data-s-theme] #modal-root .preference-settings input[type=range]{margin:15px 0 10px!important;width:100%!important;min-height:28px!important}
html[data-s-theme] #modal-root .preference-settings>button{margin:0!important;min-height:48px!important;padding:14px 18px!important}
html[data-s-theme] #modal-root .modal-body>hr{margin:24px 0!important}
html[data-s-theme] #modal-root :is(.sound-settings,.notification-settings,.security-settings){display:flex;flex-direction:column;gap:18px;padding-block:10px}
html[data-s-theme] #modal-root .modal-body>button+button{margin-top:12px!important}
html[data-s-theme] #modal-root .modal-body :is(textarea,input){scroll-margin-block:24px}
html[data-s-theme] #modal-root .modal-body form>label{margin-bottom:18px!important;line-height:1.6}

html[data-s-theme] #app .personal-panel{padding:22px!important;margin:22px 0!important;border-radius:22px!important}
html[data-s-theme] #app .personal-panel>h2{margin:0 0 20px!important;line-height:1.5}
html[data-s-theme] #app .settings.preference-settings{display:flex!important;flex-direction:column!important;gap:18px!important;border:0!important;background:transparent!important;padding:0!important;margin:0!important;overflow:visible!important}
html[data-s-theme] #app .settings.preference-settings>label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:18px!important;min-height:68px!important;margin:0!important;border:1px solid var(--s-border)!important;border-radius:16px!important;line-height:1.6}
html[data-s-theme] #app .settings.preference-settings>.preference-volume{flex-direction:column!important;align-items:stretch!important;padding-bottom:22px!important}
html[data-s-theme] #app .preference-volume input[type=range]{margin:12px 0 8px!important;min-height:28px!important;width:100%!important;padding:0!important}
html[data-s-theme] #app .preference-settings>.s-theme-entry{margin:4px 0 0!important;min-height:52px!important;padding:15px!important;border-radius:15px!important}
html[data-s-theme] #app .personal-panel>.personal-link{padding:16px!important;min-height:54px!important;margin-bottom:16px!important}
html[data-s-theme] #app .personal-panel>.muted{margin:12px 0 0!important;line-height:1.7!important}

html[data-s-theme] #modal-root .scrim{align-items:flex-start!important;padding-top:max(10px,env(safe-area-inset-top))!important}
html[data-s-theme] #modal-root .modal{max-height:calc(var(--s-viewport-height,100dvh) - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)))!important;animation:none!important}
html[data-s-theme] #modal-root .modal:has(#withdraw-form),html[data-s-theme] #modal-root .modal:has(#sign-form),html[data-s-theme] #modal-root .modal:has(.s-pin-pad){height:calc(var(--s-viewport-height,100dvh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
html[data-s-theme] #modal-root .modal-body{scrollbar-gutter:stable;scroll-padding-block:20px}

html[data-s-theme] #modal-root .modal .input-unit{display:flex!important;align-items:center!important;border:1px solid var(--s-border)!important;border-radius:15px!important;padding:0 14px!important;margin-top:8px!important;min-height:62px!important;background:var(--s-surface,#152131)!important;box-shadow:none!important}
html[data-s-theme] #modal-root .modal .input-unit>input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:14px 0!important;border-radius:0!important;min-width:0!important;flex:1 1 0!important;width:0!important;font-size:26px!important;text-align:left!important}
html[data-s-theme] #modal-root .modal .input-unit>span{position:static!important;flex:0 0 auto!important;margin-left:12px!important;color:var(--s-muted)!important;font-size:13px!important}
html[data-s-theme] #modal-root .modal .input-unit:focus-within{border-color:#4287ff!important;box-shadow:0 0 0 3px #4287ff20!important}
html[data-s-theme] #app .bottom-nav{isolation:isolate;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;overflow:hidden!important}
html[data-s-theme] #app .bottom-nav:before{content:'';position:absolute;z-index:-1;left:8px;top:8px;width:calc((100% - 16px)/4);height:54px;border-radius:16px;background:#4388ff22;transform:translateX(calc(var(--s-nav-index,0)*100%));transition:transform .26s cubic-bezier(.22,.8,.25,1)}
html[data-s-theme] #app .bottom-nav>a,html[data-s-theme] #app .bottom-nav>button{position:relative;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:14px!important;min-width:0!important;min-height:54px!important;margin:0!important;padding:5px!important;color:var(--s-muted)!important;transition:color .2s,transform .2s!important}
html[data-s-theme] #app .bottom-nav>a.active,html[data-s-theme] #app .bottom-nav>a[aria-current=page]{color:#68a9ff!important;background:transparent!important}
html[data-s-theme="light"] #app .bottom-nav>a.active{color:#145ce0!important}
html[data-s-theme] #app .bottom-nav>a.active svg{transform:translateY(-2px);transition:transform .22s}
html[data-s-theme] #app .bottom-nav>a span,html[data-s-theme] #app .bottom-nav>button span{color:inherit!important;font-size:12px!important}
html[data-s-theme] #app .shell>main{animation:s-page-enter .22s ease-out}
@keyframes s-page-enter{from{opacity:.6;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){html[data-s-theme] #app .bottom-nav:before{transition:none!important}html[data-s-theme] #app .shell>main{animation:none!important}}
html.no-motion[data-s-theme] #app .bottom-nav:before{transition:none!important}

html[data-s-theme="dark"] #modal-root .modal .input-unit>input{color:#f1f5fb!important}
html[data-s-theme="light"] #modal-root .modal .input-unit>input{color:#16263c!important}
html[data-s-theme="dark"] #modal-root :is(label,.input-unit>span,.notice,.form-hint,.muted,.hint){color:#bbcadb!important}
html[data-s-theme="dark"] #modal-root input::placeholder,html[data-s-theme="dark"] #modal-root textarea::placeholder{color:#a5b6cc!important;opacity:1!important}
html[data-s-theme="dark"] [data-remaining-balance]{color:#75deb8!important;border-color:#405167!important}
html[data-s-theme="light"] [data-remaining-balance]{color:#08734f!important}
html[data-s-theme="dark"] [data-remaining-balance][data-insufficient="true"]{color:#ff9cb0!important}
html[data-s-theme="light"] [data-remaining-balance][data-insufficient="true"]{color:#b32243!important}
html[data-s-theme="dark"] #modal-root .doni-arrival-preview{border-color:#405167!important;background:#22303e!important;color:#f1f5fb!important}
html[data-s-theme="dark"] #modal-root .doni-arrival-preview small{color:#bbcadb!important}
html[data-s-theme] #modal-root .modal .selected-asset{gap:14px!important;padding:18px!important;border-radius:18px!important}
html[data-s-theme] #modal-root .modal .selected-asset h3{font-size:17px!important;line-height:1.5!important;margin:0 0 5px!important}

html[data-s-theme] #app .app-header-main .brand img{object-fit:contain!important;flex-shrink:0!important;background:transparent!important;border:0!important;border-radius:0!important;max-width:44px!important;max-height:44px!important}
html[data-s-theme] #modal-root img[src*="shield-transparent"]{object-fit:contain!important;background:transparent!important;mix-blend-mode:normal!important}

/* TEL owns its navigation; this must outrank the wallet dock presentation. */
html[data-s-theme] body.s-tel-active #app .shell>.bottom-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}
html[data-s-theme] body.s-tel-active #app .shell>.app-header-main{display:none!important}

html[data-s-theme] #app #member-portal-content>.primary{margin:0 0 24px!important;min-height:52px!important}
html[data-s-theme] #app #member-portal-content>.empty-panel{margin:0 0 24px!important;padding:32px 22px!important;border-radius:20px!important;line-height:1.7!important}
html[data-s-theme] #modal-root :is(#portal-ticket,#portal-reply){display:flex!important;flex-direction:column!important;gap:20px!important}
html[data-s-theme] #modal-root :is(#portal-ticket,#portal-reply)>label{margin:0!important;line-height:1.7!important}
html[data-s-theme] #modal-root :is(#portal-ticket,#portal-reply)>button{margin-top:8px!important}

html[data-s-theme] #modal-root :is(.modal:has(#withdraw-form),.coin-calculator-modal)>header{background:#2168ed!important;color:#fff!important}
html[data-s-theme] #modal-root :is(.modal:has(#withdraw-form),.coin-calculator-modal)>header #modal-title{color:#fff!important}
html[data-s-theme] #modal-root :is(.modal:has(#withdraw-form),.coin-calculator-modal)>header button{color:#fff!important;background:#ffffff20!important;border:1px solid #ffffff66!important}
html[data-s-theme] #modal-root :is(.modal:has(#withdraw-form),.coin-calculator-modal)>header button *{color:#fff!important}

body.s-pin-notice #session-security-screen{visibility:hidden!important;pointer-events:none!important}

/* Wallet / TEL editorial carousel: same footprint, generous tap targets. */
html[data-s-theme] .s-promo{margin:24px 0;position:relative;overflow:hidden;border-radius:24px;border:1px solid var(--s-border);touch-action:pan-y}
html[data-s-theme] .s-promo-track{display:flex;transition:transform .65s cubic-bezier(.22,.8,.25,1)}
html[data-s-theme] .s-promo[data-slide="1"] .s-promo-track{transform:translateX(-100%)}
html[data-s-theme] .s-promo-slide{flex:0 0 100%;min-width:0;box-sizing:border-box}
html[data-s-theme] .s-promo .s-wave-stage{margin:0!important;height:100%;padding:0!important}
html[data-s-theme] .s-promo .s-wave-panel{height:100%;min-height:215px;border:0!important;border-radius:0!important}
html[data-s-theme] .s-tel-promo{position:relative;display:flex;align-items:center;gap:18px;padding:26px 22px 50px;text-decoration:none!important;overflow:hidden;background:radial-gradient(ellipse at 10% 20%,#3466aa 0,transparent 65%),linear-gradient(125deg,#16345c,#10243f);color:#fff!important;min-height:215px}
html[data-s-theme] .s-tel-promo-copy{display:flex;flex-direction:column;gap:7px;position:relative;z-index:1;color:#fff!important}
html[data-s-theme] .s-tel-promo-copy small{font-size:10px;letter-spacing:1.7px;color:#bfd9ff!important}
html[data-s-theme] .s-tel-promo-copy strong{font-size:29px;line-height:1.2;color:#fff!important}
html[data-s-theme] .s-tel-promo-copy>span{font-size:14px;color:#e1edff!important;white-space:nowrap}
html[data-s-theme] .s-tel-promo-copy b{font-size:12px;margin-top:8px;color:#fff!important;font-weight:500}
html[data-s-theme] .s-tel-promo-copy i{font-style:normal;margin-left:10px}
html[data-s-theme] .s-plane-orbit{width:78px;flex:0 0 78px;color:#fff!important;filter:drop-shadow(0 10px 16px #030e3466);animation:s-plane-flight 4s ease-in-out infinite}
html[data-s-theme] .s-plane-orbit svg{width:100%;display:block}
html[data-s-theme] .s-promo-controls{position:absolute;bottom:9px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:2px}
html[data-s-theme] .s-promo-controls button{border:0!important;background:transparent!important;width:32px;height:32px;min-height:32px;padding:11px 7px!important;position:relative;color:var(--s-fg)!important}
html[data-s-theme] .s-promo-controls button[data-promo-slide]:after{content:'';display:block;height:5px;border-radius:8px;background:#869bb7}
html[data-s-theme] .s-promo-controls button[aria-pressed=true]:after{background:#3689ff}
html[data-s-theme] .s-promo[data-slide="1"] .s-promo-controls button{color:#fff!important}
@keyframes s-plane-flight{0%,100%{transform:translate(-3px,6px) rotate(-7deg)}50%{transform:translate(7px,-9px) rotate(5deg)}}
@media(prefers-reduced-motion:reduce){html[data-s-theme] .s-plane-orbit{animation:none}html[data-s-theme] .s-promo-track{transition:none}}
@media(max-width:350px){html[data-s-theme] .s-tel-promo{gap:12px;padding-inline:16px}html[data-s-theme] .s-plane-orbit{width:58px;flex-basis:58px}html[data-s-theme] .s-tel-promo-copy>span{font-size:12px}}

html[data-s-theme] #app .s-promo .s-promo-controls button{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--s-fg)!important}
html[data-s-theme] #app .s-promo .s-plane-orbit svg{width:78px!important;height:78px!important;max-width:100%!important}
html[data-s-theme] #app .s-promo[data-slide="1"] .s-promo-controls button{color:#fff!important}

html[data-s-theme] #app .s-promo-controls button[data-promo-slide]:after{width:18px!important;min-width:18px!important;flex:0 0 18px!important;height:5px!important}

/* Both promotional slides share the original wallet banner geometry. */
html[data-s-theme] body.s-wallet-home #app .s-promo .s-promo-track{height:190px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-promo-slide{height:190px!important;min-height:190px!important;max-height:190px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-wave-stage{height:190px!important;margin:0!important;padding:0!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-wave-panel{height:190px!important;min-height:0!important;border:0!important;border-radius:0!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-wave-copy{padding:20px 22px 34px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-tel-promo{flex-direction:row-reverse!important;justify-content:space-between!important;align-items:center!important;padding:20px 22px 34px!important;gap:8px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-plane-orbit{width:112px!important;flex:0 0 112px!important;display:flex;justify-content:center;align-items:center}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-plane-orbit svg{width:96px!important;height:96px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-tel-promo-copy{gap:6px!important;min-width:0!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-tel-promo-copy strong{font-size:25px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-tel-promo-copy>span{font-size:12px!important}
html[data-s-theme] body.s-wallet-home #app .s-promo .s-tel-promo-copy b{margin-top:3px!important}
@media(max-width:350px){html[data-s-theme] body.s-wallet-home #app .s-promo .s-plane-orbit{width:88px!important;flex-basis:88px!important}html[data-s-theme] body.s-wallet-home #app .s-promo .s-tel-promo{padding-inline:18px!important}}

/* My page: readable identity, coherent security actions and generous spacing. */
html[data-s-theme] #app .personal-profile{display:grid!important;grid-template-columns:58px minmax(0,1fr) 44px!important;align-items:center!important;gap:14px!important;padding:20px!important;margin:20px 0 26px!important;border:1px solid var(--s-border)!important;border-radius:22px!important;background:var(--s-surface)!important}
html[data-s-theme] #app .personal-profile>img{width:58px!important;height:58px!important;object-fit:contain!important;background:transparent!important;border-radius:0!important}
html[data-s-theme] #app .personal-profile>div{min-width:0!important}
html[data-s-theme] #app .personal-profile h2{font-size:20px!important;line-height:1.45!important;letter-spacing:0!important;margin:0!important;color:var(--s-fg)!important;overflow-wrap:anywhere}
html[data-s-theme] #app .personal-profile .personal-number{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:40px!important;max-width:100%!important;padding:8px 10px!important;margin:9px 0 0!important;border:1px solid var(--s-border)!important;border-radius:11px!important;background:transparent!important;color:var(--s-fg)!important;box-sizing:border-box!important}
html[data-s-theme] #app .personal-number span{font-size:14px!important;font-variant-numeric:tabular-nums;letter-spacing:.6px!important;line-height:1.4!important;color:inherit!important}
html[data-s-theme] #app .personal-number svg{width:17px!important;height:17px!important;flex-shrink:0!important;color:inherit!important}
html[data-s-theme] #app .personal-profile .profile-edit{width:44px!important;height:44px!important;padding:11px!important;border:1px solid var(--s-border)!important;border-radius:12px!important;align-self:center!important}
html[data-s-theme] #app .personal-section{padding:22px!important;margin:24px 0!important;border:1px solid var(--s-border)!important;border-radius:22px!important;background:var(--s-surface)!important}
html[data-s-theme] #app .personal-section>h2{font-size:21px!important;line-height:1.4!important;letter-spacing:0!important;margin:0 0 20px!important;color:var(--s-fg)!important;text-align:left!important}
html[data-s-theme] #app .security-center-hero{display:flex!important;align-items:center!important;justify-content:center!important;gap:18px!important;padding:12px 0 24px!important;min-height:120px!important;margin:0!important}
html[data-s-theme] #app .security-center-hero img{width:88px!important;height:98px!important;object-fit:contain!important}
html[data-s-theme] #app .security-center-hero strong{font-size:21px!important;line-height:1.5!important;color:var(--s-fg)!important;letter-spacing:0!important}
html[data-s-theme] #app #security-center .security-card-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;margin:0!important}
html[data-s-theme] #app #security-center .security-card{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;grid-template-areas:"icon title action" "icon state action" "icon note action"!important;align-items:center!important;text-align:left!important;column-gap:10px!important;row-gap:5px!important;min-height:112px!important;padding:16px 12px!important;border:1px solid var(--s-border)!important;border-radius:16px!important;background:var(--s-surface)!important;color:var(--s-fg)!important}
html[data-s-theme] #app #security-center .security-card>i{grid-area:icon!important;width:34px!important;height:40px!important;display:grid!important;place-items:center!important;margin:0!important;color:#438eff!important}
html[data-s-theme] #app #security-center .security-card>strong{grid-area:title!important;font-size:15px!important;line-height:1.45!important;color:var(--s-fg)!important;margin:0!important;letter-spacing:0!important}
html[data-s-theme] #app #security-center .security-card>.security-card-state{grid-area:state!important;font-size:12px!important;line-height:1.5!important;margin:0!important;color:var(--s-fg)!important}
html[data-s-theme] #app #security-center .security-card>small{grid-area:note!important;font-size:11px!important;line-height:1.6!important;margin:0!important;color:var(--s-muted)!important;word-break:keep-all}
html[data-s-theme] #app #security-center .security-card .security-card-action{grid-area:action!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;min-width:58px!important;padding:10px 9px!important;margin:0!important;border:1px solid #2168ed!important;border-radius:11px!important;background:#2168ed!important;color:#fff!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;box-sizing:border-box!important}
html[data-s-theme] #app #security-center .security-card .security-card-action *{color:#fff!important}
html[data-s-theme] #app .personal-section :is(.personal-link,.personal-email-edit){width:100%!important;min-height:54px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:15px!important;margin:12px 0 0!important;border:1px solid var(--s-border)!important;border-radius:14px!important;background:var(--s-surface)!important;color:var(--s-fg)!important;box-sizing:border-box!important;text-align:left!important}
html[data-s-theme] #app .personal-section .personal-link>span{flex:1!important;color:var(--s-fg)!important;line-height:1.6!important}
html[data-s-theme] #app .personal-section .personal-link small{font-size:12px!important;line-height:1.7!important;color:var(--s-muted)!important}
html[data-s-theme] #app .security-center-note{display:flex!important;gap:10px!important;align-items:center!important;padding:18px 0!important;margin:10px 0 0!important;line-height:1.7!important;color:var(--s-muted)!important}
html[data-s-theme] #app .personal-email{padding:12px 0!important;line-height:1.7!important;overflow-wrap:anywhere}
html[data-s-theme] #app .personal-tip{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:24px 0!important;padding:18px 4px!important;line-height:1.8!important;color:var(--s-muted)!important;font-size:13px!important}
html[data-s-theme] #app .personal-tip svg{flex-shrink:0!important;margin-top:3px!important}

html[data-s-theme] #app #security-center .security-card{margin:0!important}
html[data-s-theme] #app #security-center .security-card .security-card-action{align-self:center!important;height:42px!important;max-height:42px!important}
html[data-s-theme] #modal-root .s-network-modal .s-network-options>button{display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;column-gap:12px!important;row-gap:8px!important;min-height:110px!important;padding:16px!important}
html[data-s-theme] #modal-root .s-network-modal .s-network-options>button>.s-chain{grid-column:1;grid-row:1/3}
html[data-s-theme] #modal-root .s-network-modal .s-network-options>button>span:not(.s-choice-balance){grid-column:2;grid-row:1;min-width:0}
html[data-s-theme] #modal-root .s-network-modal .s-network-options>button>svg{grid-column:3;grid-row:1/3}
html[data-s-theme] #modal-root .s-choice-balance{grid-column:2;grid-row:2;display:flex!important;flex-direction:column!important;gap:4px!important;align-items:flex-start!important;min-width:0}
html[data-s-theme] #modal-root .s-choice-balance b{font-size:14px!important;line-height:1.5!important;color:var(--s-fg)!important;overflow-wrap:anywhere}
html[data-s-theme] #modal-root .s-choice-balance small{font-size:12px!important;line-height:1.5!important;color:var(--s-muted)!important;overflow-wrap:anywhere}
html[data-s-theme] #modal-root .s-transfer-balances{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;padding:16px!important;margin:18px 0!important;border:1px solid var(--s-border)!important;border-radius:16px!important;background:var(--s-surface)!important}
html[data-s-theme] #modal-root .s-transfer-balances>div{display:flex;flex-direction:column;gap:8px;min-width:0}
html[data-s-theme] #modal-root .s-transfer-balances small{font-size:12px!important;line-height:1.5!important;color:var(--s-muted)!important}
html[data-s-theme] #modal-root .s-transfer-balances strong{font-size:15px!important;line-height:1.6!important;color:var(--s-fg)!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-s-theme] #modal-root .s-transfer-balances em{font-size:11px!important;font-style:normal!important;color:var(--s-muted)!important}

html[data-s-theme] #modal-root :is(.withdraw-auth-modal,.claim-gift-modal,.funding-shortage-modal,.tron-company-modal,.fee-execution-modal,.withdraw-fee-modal)>header{background:#2168ed!important;color:#fff!important}
html[data-s-theme] #modal-root :is(.withdraw-auth-modal,.claim-gift-modal,.funding-shortage-modal,.tron-company-modal,.fee-execution-modal,.withdraw-fee-modal)>header :is(h2,#modal-title,button,button *){color:#fff!important}
html[data-s-theme] #modal-root :is(.withdraw-auth-modal,.claim-gift-modal,.funding-shortage-modal,.tron-company-modal,.fee-execution-modal,.withdraw-fee-modal)>header button{background:#ffffff20!important;border:1px solid #ffffff66!important}

html[data-s-theme] #app .personal-section .personal-links{display:flex!important;flex-direction:column!important;gap:12px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-s-theme] #app .personal-section .personal-links>.personal-link{margin:0!important}

html[data-s-theme] #modal-root .modal:has([data-s-transfer-balances]) .selected-asset .modal-holding{display:none!important}

html[data-s-theme] body.s-wallet-home #app .s-promo .s-plane-orbit{width:135px!important;height:145px!important;flex-basis:135px!important}
html[data-s-theme] #modal-root .modal:has([data-s-transfer-balances]) .selected-asset>div{min-width:0!important;flex:1!important}
html[data-s-theme] #modal-root .modal:has([data-s-transfer-balances]) .selected-asset .badge{white-space:nowrap!important;width:max-content!important;max-width:100%!important}
@media(max-width:350px){html[data-s-theme] body.s-wallet-home #app .s-promo .s-plane-orbit{width:88px!important;height:120px!important;flex-basis:88px!important}}

.s-withdraw-pin-guide{padding:18px;margin:0 0 20px;border:1px solid #6297eb;border-radius:16px;background:#e9f1ff;color:#183454}.s-withdraw-pin-guide p{margin:10px 0 16px;line-height:1.6}.s-withdraw-pin-guide button.primary{width:100%;background:#2168ed!important;color:white!important}html[data-theme=dark] .s-withdraw-pin-guide,html[data-s-theme=dark] .s-withdraw-pin-guide{background:#162c49;color:#eef5ff}

@media(max-height:650px){html.s-keypad-open[data-s-theme] .modal:has(.s-pin-pad)>header{padding:14px 16px 8px!important}html.s-keypad-open[data-s-theme] .modal:has(.s-pin-pad)>header h2{font-size:20px!important;line-height:1.35!important}html.s-keypad-open[data-s-theme] .s-pin-pad .s-pin-dots{min-height:36px!important;padding:8px 4px!important;gap:12px!important}}

html.s-keypad-open[data-s-theme] .modal-body:has(.s-pin-pad){overflow-anchor:none!important;scroll-behavior:auto!important}

html[data-s-theme] #modal-root .modal .s-point-total{background:linear-gradient(120deg,#1556cb,#287bf0)!important;color:#fff!important;border-color:#337ae5!important}html[data-s-theme] #modal-root .modal .s-point-total :is(small,strong,em,span,b,p){color:#fff!important;opacity:1!important}
html[data-s-theme] body.s-tel-active .shell{position:fixed!important;left:0!important;right:0!important;top:var(--s-viewport-top,0px)!important;height:var(--s-viewport-height,100dvh)!important;overflow:hidden!important}
html[data-s-theme] #modal-root .modal>header :is([data-action=close],.modal-close,.modal-close-button){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:40px!important;width:40px!important;height:40px!important;min-height:40px!important;flex-shrink:0!important;padding:0!important;line-height:1!important}html[data-s-theme] #modal-root .modal>header :is([data-action=close],.modal-close,.modal-close-button) :is(svg,span){margin:0!important;display:block;line-height:1!important}

[data-chat-gift-history]{margin-top:24px;padding-top:20px;border-top:1px solid var(--s-border)}[data-chat-gift-history] h2{font-size:18px;margin:0 0 12px}.s-chat-gift-row{display:grid;gap:9px;padding:18px;margin:12px 0;border:1px solid var(--s-border);border-radius:16px;background:var(--s-surface);color:var(--s-fg)}.s-chat-gift-row b{font-size:23px}.s-chat-gift-row a{color:var(--s-link)!important;overflow-wrap:anywhere;padding:6px 0}

html[data-s-theme] #modal-root .modal .s-actions .s-action{background:var(--s-surface)!important;color:var(--s-fg)!important;border:1px solid var(--s-border)!important}html[data-s-theme] #modal-root .modal .s-actions .s-action :is(span,i,svg){color:inherit!important}

.claim-gift-page:has([data-chat-gift-history] .s-chat-gift-row) .claim-gift-empty{display:none!important}
html[data-s-theme] #modal-root .modal button.primary,html[data-s-theme] #modal-root .modal button.primary :is(span,strong,small,b,svg){color:#fff!important}

.claim-gift-page:has([data-chat-gift-history][data-state=loading]) .claim-gift-empty,.claim-gift-page:has([data-chat-gift-history][data-state=error]) .claim-gift-empty{display:none!important}

/* Action icon geometry must inherit the themed button, including SVG paths. */
html[data-s-theme] #modal-root .modal .s-actions .s-action svg,html[data-s-theme] #modal-root .modal .s-actions .s-action svg *{color:inherit!important;stroke:currentColor!important;fill:none!important}

html[data-s-theme] #modal-root .kyc-photo-actions .kyc-native-capture{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;cursor:pointer;border:1px solid var(--s-border);border-radius:14px}
html[data-s-theme] #modal-root .kyc-native-capture svg,html[data-s-theme] #modal-root .kyc-native-capture svg *{color:inherit!important;stroke:currentColor!important;fill:none!important}
