/* Scoped adaptation of the accepted paper-white Usage & balance design. */
#view-wallet{max-width:1100px;margin:0 auto;color:#1E192D;font-family:Nunito,PaiNunito,PaiTitles,'PingFang SC',sans-serif;padding-bottom:40px}
#view-wallet .pai-wallet-top{display:flex;align-items:center;justify-content:space-between;margin:0 0 28px;color:#716B7B}
#view-wallet .pai-wallet-top .text-button{display:flex;gap:12px;align-items:center;min-height:44px;padding:0;font-size:13px;color:#716B7B}
#view-wallet .pai-wallet-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#view-wallet .wallet-view-heading{margin-bottom:34px}#view-wallet .wallet-view-heading h1{font-size:32px;line-height:1.4;color:#1E192D;letter-spacing:-.025em}#view-wallet .view-subtitle{font-size:14px;line-height:1.8;color:#716B7B;margin-top:8px}
#view-wallet .wallet-content{display:grid;grid-template-columns:minmax(290px,.95fr) minmax(330px,1.05fr);gap:48px;align-items:start}
#view-wallet .wallet-balance-card{display:block;position:sticky;top:24px;min-height:0;padding:26px 28px 24px;border:0;border-radius:26px;background:#F3F0ED;box-shadow:none;color:#1E192D;overflow:visible;backdrop-filter:none}
#view-wallet .wallet-balance-card::before,#view-wallet .wallet-balance-card::after{display:none}
#view-wallet .wallet-balance-copy{position:static;min-width:0}#view-wallet .pai-wallet-balance-label{display:flex;justify-content:space-between;align-items:center;color:#716B7B;font-size:14px;font-weight:500;margin-bottom:10px}
#view-wallet .pai-wallet-balance-label .icon-button{width:32px;height:32px;min-width:32px;min-height:32px;color:#716B7B;background:none;border:0;box-shadow:none}
#view-wallet .pai-wallet-balance-label svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5}
#view-wallet #wallet-available-credits{font-family:Nunito,PaiNunito,PaiTitles,sans-serif;font-size:clamp(42px,4.4vw,64px);font-weight:600;line-height:1.15;letter-spacing:-.055em;font-variant-numeric:tabular-nums;display:block;color:#1E192D;overflow-wrap:anywhere}
#view-wallet #wallet-available-credits small{font-size:16px;letter-spacing:0;color:#716B7B;font-weight:500;white-space:nowrap}
#view-wallet #pai-wallet-bonus{font-size:12px;color:#716B7B;margin:16px 0 0;line-height:1.7}
#view-wallet .pai-wallet-actions{display:flex;gap:22px;align-items:center;margin-top:26px}
#view-wallet .pai-wallet-actions .primary-button{background:#1E192D;color:#FFFEFB;border:0;border-radius:15px;box-shadow:none;min-height:48px;padding:12px 24px;display:flex;gap:9px;align-items:center;justify-content:center;font-size:15px;white-space:nowrap}
#view-wallet .pai-wallet-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
#view-wallet .pai-wallet-actions .text-button{font-size:13px;color:#716B7B;min-height:44px;padding:0}
#view-wallet .wallet-balance-details{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0 0;padding-top:22px;border-top:1px solid #DDD7D8;color:#1E192D}
#view-wallet .wallet-balance-details>div{border:0;background:none;padding:0;min-width:0;border-radius:0}#view-wallet .wallet-balance-details>div+div{border-left:1px solid #DDD7D8;padding-left:17px}
#view-wallet .wallet-balance-details dt{color:#716B7B;font-size:12px;line-height:1.8;font-weight:400}#view-wallet .wallet-balance-details dd{color:#1E192D;font-size:21px;line-height:1.5;font-weight:600;margin:9px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#view-wallet #wallet-available-cny{font-size:12px;color:#716B7B;line-height:1.9;margin:21px 0 0}
#view-wallet .wallet-section{background:none;box-shadow:none;border:0;border-radius:0;padding:0;min-width:0}#view-wallet .wallet-section-heading{margin:0 0 10px;align-items:center}#view-wallet .wallet-section-heading h2{font-size:18px;color:#1E192D}#view-wallet .wallet-history-link{color:#716B7B;font-size:13px;min-height:44px;padding:0;background:none}
#view-wallet .wallet-history-link svg{width:17px;height:17px}#view-wallet .wallet-record-list{gap:0}
.pai-wallet-sheet .wallet-section{background:none;border:0;box-shadow:none;border-radius:0;padding:0}.pai-wallet-sheet .wallet-section-heading{margin-bottom:18px}.pai-wallet-sheet .wallet-section-heading h2{display:none}.pai-wallet-sheet .wallet-section-heading p{font-size:13px;line-height:1.8;color:#716B7B;margin:0}.pai-wallet-sheet .wallet-payment-status{display:none}
#view-wallet .wallet-record,#wallet-ledger-dialog .wallet-record,.pai-wallet-sheet .wallet-record{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;padding:20px 0;margin:0;width:100%;min-width:0;text-align:left;background:none;border:0;border-bottom:1px solid #E5E2DD;border-radius:0;box-shadow:none;font-family:inherit;color:#1E192D}
.pai-wallet-record-icon{display:grid;place-items:center;width:36px;height:40px;background:#FAF9F7;border-radius:12px;color:#716B7B}.pai-wallet-record-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#view-wallet .wallet-record-copy,#wallet-ledger-dialog .wallet-record-copy,.pai-wallet-sheet .wallet-record-copy{min-width:0;display:block}
#view-wallet .wallet-record-copy strong,#wallet-ledger-dialog .wallet-record-copy strong,.pai-wallet-sheet .wallet-record-copy strong{display:block;color:#1E192D;font-size:14px;font-weight:500;line-height:1.65;overflow-wrap:anywhere}
#view-wallet .wallet-record-copy>span,#wallet-ledger-dialog .wallet-record-copy>span,.pai-wallet-sheet .wallet-record-copy>span{display:block;color:#716B7B;font-size:11px;line-height:1.7;margin-top:5px}
#view-wallet .wallet-record-delta,#wallet-ledger-dialog .wallet-record-delta{min-width:0;text-align:right;align-self:center;white-space:nowrap;color:#1E192D}
#view-wallet .wallet-record-delta strong,#wallet-ledger-dialog .wallet-record-delta strong{font-size:14px;line-height:1.6;color:#1E192D;font-weight:600}
#view-wallet .wallet-record-delta span,#wallet-ledger-dialog .wallet-record-delta span{display:block;font-size:11px;color:#716B7B;margin-top:4px}
#wallet-ledger-dialog .wallet-record-metadata{grid-column:2/4;display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:#716B7B}
.pai-wallet-orders-entry{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;background:none;border:0;border-top:1px solid #E5E2DD;border-bottom:1px solid #E5E2DD;padding:22px 0;margin-top:16px;color:#1E192D}.pai-wallet-orders-entry strong{display:block;font-size:14px;font-weight:500}.pai-wallet-orders-entry small{display:block;color:#716B7B;font-size:12px;line-height:1.8;margin-top:5px}.pai-wallet-orders-entry svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.5}
.pai-wallet-help{margin-top:12px;color:#716B7B;font-size:12px}.pai-wallet-help summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.pai-wallet-help summary::after{content:'+';margin-left:auto;font-size:18px}.pai-wallet-help[open] summary::after{content:'−'}.pai-wallet-help p{line-height:1.9;margin:0 0 16px}
.pai-wallet-sheet,#wallet-ledger-dialog,#payment-checkout-dialog{background:#FFFEFB;color:#1E192D;font-family:Nunito,PaiNunito,PaiTitles,'PingFang SC',sans-serif;border:0;border-radius:26px;width:min(520px,calc(100vw - 40px));height:auto;max-height:calc(100dvh - 48px);padding:0;box-shadow:0 24px 70px #1E192D15;overflow:hidden}
.pai-wallet-sheet::backdrop,#wallet-ledger-dialog::backdrop,#payment-checkout-dialog::backdrop{background:#1E192D47;backdrop-filter:none}
.pai-wallet-sheet-panel,#wallet-ledger-dialog .wallet-ledger-panel,#payment-checkout-dialog .payment-checkout-card{background:#FFFEFB;color:#1E192D;display:flex;flex-direction:column;max-height:calc(100dvh - 48px);border:0;border-radius:0;box-shadow:none;padding:0}
.pai-wallet-sheet-heading,#wallet-ledger-dialog .wallet-ledger-dialog-heading,#payment-checkout-dialog .payment-checkout-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 26px 16px;flex:none;background:none;border:0}
.pai-wallet-sheet h2,#wallet-ledger-dialog h2,#payment-checkout-dialog h2{color:#1E192D;font-size:23px;line-height:1.5;margin:0}.pai-wallet-sheet .icon-button,#wallet-ledger-dialog .icon-button,#payment-checkout-dialog .icon-button{color:#716B7B;background:none;border:0;box-shadow:none;min-width:40px;min-height:40px}.pai-wallet-sheet .icon-button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5}
.pai-wallet-sheet-body,#wallet-ledger-dialog .wallet-ledger-dialog-body,#payment-checkout-dialog .payment-checkout-body{padding:0 26px 26px;overflow:auto;overscroll-behavior:contain;min-height:0}
#wallet-ledger-dialog .eyebrow{display:none}#wallet-ledger-dialog .wallet-ledger-dialog-heading p{color:#716B7B;font-size:12px;line-height:1.8;margin:9px 0 0}
.pai-wallet-sheet .wallet-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pai-wallet-sheet .wallet-package-card{background:#F3F0ED;border:0;box-shadow:none;border-radius:17px;display:flex;flex-direction:column;align-items:center;padding:17px 8px;gap:10px;text-align:center;color:#1E192D;min-width:0}
.pai-wallet-sheet .wallet-package-heading{order:2;display:block;margin:0}.pai-wallet-sheet .wallet-package-heading h3{display:none}.pai-wallet-sheet .wallet-package-heading strong{color:#716B7B;font-size:15px;white-space:nowrap}
.pai-wallet-sheet .wallet-package-credits{order:1;display:flex;flex-direction:column;align-items:center;gap:0;margin:0;color:#1E192D}.pai-wallet-sheet .wallet-package-credits strong{font-size:28px;line-height:1.3;font-weight:600;color:#1E192D}.pai-wallet-sheet .wallet-package-credits span{color:#716B7B;font-size:12px}
.pai-wallet-sheet .wallet-package-details{order:3;color:#716B7B;font-size:11px;line-height:1.7;margin:0;min-height:36px}.pai-wallet-sheet .wallet-package-action{order:4;min-height:44px;font-size:13px;white-space:normal;border-radius:12px;padding:8px 12px;width:100%;box-shadow:none}.pai-wallet-sheet .wallet-package-action::before{display:none}
.pai-wallet-sheet .primary-button,#payment-checkout-dialog .primary-button{background:#1E192D;color:#FFFEFB;border:0;box-shadow:none;border-radius:14px;min-height:48px}.pai-wallet-sheet .secondary-button,#payment-checkout-dialog .secondary-button{background:#F1EFF3;color:#716B7B;border:0;box-shadow:none;border-radius:14px;min-height:44px}
.pai-wallet-sheet .wallet-recharge-markets{margin:0 0 22px;display:flex;flex-wrap:wrap;gap:8px}.pai-wallet-sheet .payment-channel-option,#payment-checkout-dialog .payment-channel-option{background:#F3F0ED;border:0;color:#716B7B;min-height:44px;box-shadow:none;border-radius:12px}.pai-wallet-sheet .payment-channel-option.is-selected,#payment-checkout-dialog .payment-channel-option.is-selected{background:#EEE3EC;color:#78375F}
.pai-wallet-sheet .wallet-redemption-form{display:grid;grid-template-columns:1fr;gap:18px}.pai-wallet-sheet input{background:#F1EFEB;color:#1E192D;border:0;border-radius:13px;min-height:52px;font-size:16px;padding:13px 16px;width:100%;box-shadow:none}.pai-wallet-sheet .wallet-redemption-note{font-size:12px;color:#716B7B;line-height:1.85;margin-top:18px}
.pai-wallet-sheet .wallet-order-record{grid-template-columns:minmax(0,1fr) auto}.pai-wallet-sheet .wallet-order-status{font-size:13px;color:#1E192D}.pai-wallet-sheet .wallet-order-status span{font-size:12px;color:#716B7B}.pai-wallet-sheet .wallet-order-action{min-height:44px;color:#1E192D}
.pai-wallet-facts{margin:0}.pai-wallet-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:22px;padding:17px 0;border-bottom:1px solid #E5E2DD}.pai-wallet-facts dt{font-size:13px;color:#716B7B;line-height:1.75}.pai-wallet-facts dd{font-size:15px;color:#1E192D;line-height:1.75;text-align:right;overflow-wrap:anywhere;margin:0;max-width:65%}
#payment-checkout-dialog .payment-checkout-summary{background:#F3F0ED;border:0;border-radius:18px;color:#1E192D;padding:20px}#payment-checkout-dialog .payment-checkout-summary strong{color:#1E192D}#payment-checkout-dialog .payment-checkout-details{color:#1E192D}#payment-checkout-dialog .payment-checkout-details dt,#payment-checkout-dialog .payment-checkout-note{color:#716B7B}#payment-checkout-dialog .payment-checkout-actions{padding:18px 26px 26px;background:none;border:0;flex:none}
#view-wallet .wallet-empty,.pai-wallet-sheet .wallet-empty,#wallet-ledger-dialog .wallet-empty{border:0;background:none;box-shadow:none;color:#716B7B;padding:32px 0;font-size:13px}
@media(max-width:1120px){#view-wallet .wallet-content{grid-template-columns:1fr;gap:34px;max-width:720px}#view-wallet .wallet-balance-card{position:relative}#view-wallet #wallet-available-credits{font-size:60px}}
@media(max-width:760px){body[data-pai-view=wallet] .mobile-topbar,body[data-pai-view=wallet] .mobile-nav{display:none!important}body[data-pai-view=wallet] .app-main{padding:13px 22px calc(24px + env(safe-area-inset-bottom))!important}#view-wallet{padding:0!important}#view-wallet .pai-wallet-top{margin-bottom:22px}#view-wallet .wallet-view-heading{margin:0 0 25px;padding:0}#view-wallet .wallet-view-heading h1{font-size:28px}#view-wallet .view-subtitle{font-size:13px;margin-top:6px}#view-wallet .wallet-balance-card{padding:21px 23px 20px;border-radius:23px}#view-wallet #wallet-available-credits{font-size:62px}#view-wallet .wallet-content{gap:30px}#view-wallet .wallet-balance-details dd{font-size:20px}#view-wallet .wallet-section-heading h2{font-size:17px}
.pai-wallet-sheet,#wallet-ledger-dialog,#payment-checkout-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;height:auto;max-height:calc(100dvh - 20px);border-radius:25px 25px 0 0}.pai-wallet-sheet-panel,#wallet-ledger-dialog .wallet-ledger-panel,#payment-checkout-dialog .payment-checkout-card{max-height:calc(100dvh - 20px)}.pai-wallet-sheet-body,#wallet-ledger-dialog .wallet-ledger-dialog-body{padding-bottom:calc(25px + env(safe-area-inset-bottom))}.pai-wallet-sheet .wallet-package-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pai-wallet-sheet .wallet-package-card{min-height:0}#payment-checkout-dialog .payment-checkout-actions{padding-bottom:calc(25px + env(safe-area-inset-bottom))}}
@media(max-width:359px){body[data-pai-view=wallet] .app-main{padding-left:16px!important;padding-right:16px!important}#view-wallet .wallet-balance-card{padding:20px}#view-wallet #wallet-available-credits{font-size:50px}#view-wallet .pai-wallet-actions{gap:14px}#view-wallet .pai-wallet-actions .primary-button{padding:12px 17px}#view-wallet .wallet-balance-details dd{font-size:18px}#view-wallet .wallet-record{grid-template-columns:30px minmax(0,1fr) auto;gap:9px}#view-wallet .wallet-record-delta strong{font-size:12px}.pai-wallet-record-icon{width:30px}#view-wallet .wallet-record-copy strong{font-size:13px}.pai-wallet-sheet-heading{padding-left:20px;padding-right:20px}.pai-wallet-sheet-body{padding-left:20px;padding-right:20px}.pai-wallet-sheet .wallet-package-credits strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){#view-wallet *,.pai-wallet-sheet *{scroll-behavior:auto!important;transition:none!important}}
/* Cancel inherited compact-workspace heading and summary layouts for this subpage. */
#view-wallet .wallet-view-heading{display:block;min-height:0;height:auto;gap:0}
#view-wallet .wallet-view-heading h1,#view-wallet .wallet-view-heading .view-subtitle{display:block!important}
#view-wallet .wallet-balance-details>div{display:block;min-height:0;height:auto}
#view-wallet .wallet-record{min-height:0;height:auto}
#view-wallet:not([hidden]){display:block}#view-wallet .wallet-view-heading>div{display:block!important}
#view-wallet .wallet-record-copy strong,#wallet-ledger-dialog .wallet-record-copy strong,.pai-wallet-sheet .wallet-record-copy strong{white-space:normal;overflow:visible;text-overflow:clip}
#view-wallet .wallet-balance-details>div{backdrop-filter:none}
.pai-wallet-sheet,#wallet-ledger-dialog,#payment-checkout-dialog{max-width:none}
#view-wallet .wallet-balance-copy{display:block}
#view-wallet .wallet-view-heading>div{gap:0;padding:0;margin:0;min-height:0}
#view-wallet .wallet-view-heading h1{margin:0}#view-wallet .wallet-view-heading .view-subtitle{margin-bottom:0}

#payment-checkout-dialog .payment-checkout-summary>span{font-size:13px;line-height:1.7}
#payment-checkout-dialog .payment-checkout-details dt,#payment-checkout-dialog .payment-checkout-note{font-size:12px;line-height:1.8}
#payment-checkout-dialog .payment-checkout-details dd{font-size:14px;line-height:1.8}
#payment-checkout-dialog .payment-checkout-actions button{font-size:15px}
@media(prefers-reduced-motion:reduce){#view-wallet *,.pai-wallet-sheet *{animation:none!important}}

/* This account subpage hides the dock, so its scroller owns the full shell. */
@media(max-width:760px){body[data-pai-view=wallet] .app-main{height:100%!important;padding-top:calc(13px + env(safe-area-inset-top))!important}}

#view-wallet .pai-wallet-balance-controls{display:flex;align-items:center;gap:5px}
#view-wallet .pai-wallet-unit{display:flex;align-items:center;gap:2px;padding:3px;background:#EAE6E4;border-radius:12px}
#view-wallet .pai-wallet-unit button{border:0;background:transparent;color:#716B7B;min-height:38px;min-width:50px;padding:7px 10px;font-family:inherit;font-weight:500;font-size:12px;line-height:1.3;border-radius:9px;box-shadow:none;white-space:nowrap;-webkit-tap-highlight-color:transparent}
#view-wallet .pai-wallet-unit button[aria-pressed=true]{background:#FFFEFB;color:#1E192D}
#view-wallet .pai-wallet-unit button:focus-visible,#view-wallet .pai-wallet-help summary:focus-visible{outline:2px solid #AD8B9D;outline-offset:3px}
#view-wallet.is-token-view #wallet-available-credits{font-size:clamp(34px,4vw,48px);letter-spacing:-.04em}
#view-wallet.is-token-view .wallet-balance-details dd{font-size:16px}
#view-wallet .pai-wallet-help,#view-wallet .pai-wallet-help[open],#view-wallet .pai-wallet-help summary,#view-wallet .pai-wallet-help summary:hover,#view-wallet .pai-wallet-help summary:active,#view-wallet .pai-wallet-help summary:focus{background:transparent!important;box-shadow:none;color:#716B7B}
#view-wallet .pai-wallet-help summary,#view-wallet .pai-wallet-help summary *{-webkit-tap-highlight-color:transparent;user-select:none}
@media(max-width:359px){#view-wallet .pai-wallet-balance-label{font-size:12px}#view-wallet .pai-wallet-unit button{min-width:44px;padding:7px}#view-wallet.is-token-view #wallet-available-credits{font-size:38px}#view-wallet.is-token-view .wallet-balance-details dd{font-size:16px}}

#view-wallet .wallet-error .text-button{margin-left:auto;white-space:nowrap;color:#78375F;min-height:44px;background:none;border:0;font-size:13px}
#view-wallet.is-token-view .wallet-balance-details dd{line-height:1.65}
@media(max-width:359px){#view-wallet.is-token-view .wallet-balance-details dd{font-size:14px}}

.wallet-extra-options{grid-column:1/-1;color:#625a69}.wallet-extra-options summary{cursor:pointer;padding:.5rem 0}.wallet-extra-options[open] summary{margin-bottom:.4rem}
