.wallet-page{max-width:1080px;margin:auto;padding:8px 0 35px;color:#30374d}.wallet-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0}.wallet-heading span{font-size:12px;color:#9b8db3}.wallet-heading h1{font-size:30px;margin:6px 0}.wallet-balance{background:linear-gradient(135deg,#eee8fc,#faf8ff);border:1px solid #e5dff2;border-radius:18px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.wallet-balance>div>span{font-size:13px;color:#8a7aab}.wallet-balance strong{display:block;font-size:36px;color:#6850aa;margin-top:10px;letter-spacing:-1px}.wallet-balance p{font-size:12px;color:#9a91aa}.wallet-balance a{font-size:13px;color:#7659bb;text-decoration:none}.wallet-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.wallet-products article{padding:20px;border:1px solid #e7e5ee;border-radius:12px}.wallet-scope{font-size:11px;color:#a698b8}.wallet-products h3{font-size:17px;margin:10px 0 20px}.wallet-product-price{display:flex;gap:8px;align-items:baseline;margin-bottom:16px}.wallet-product-price strong{font-size:23px;color:#7760ac}.wallet-product-price span{font-size:11px;color:#a0a4b0}.wallet-products button{width:100%;box-shadow:none;background:#f2edff;color:#7659bb}.wallet-table{overflow:auto}.wallet-table table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;white-space:nowrap}.wallet-table td,.wallet-table th{padding:13px 12px;border-bottom:1px solid #eeeef4;color:#818799}.wallet-table th{font-weight:500;background:#f9f9fc}.wallet-table code{color:#665083}.wallet-credit{color:#418369!important}.wallet-debit{color:#b37884!important}.wallet-payment strong{font-size:22px;color:#7659bb;margin-left:12px}.account-wallet-link{font-size:12px;color:#7861b7;margin-top:10px;display:block;text-decoration:none}@media(max-width:650px){.wallet-heading h1{font-size:25px}.wallet-balance{padding:20px;display:block}.wallet-balance strong{font-size:32px}.wallet-balance>div+div{margin-top:16px}.wallet-products{grid-template-columns:1fr}.wallet-heading>button{font-size:12px;padding:9px 12px}.wallet-table td,.wallet-table th{padding:12px 8px}}

.wallet-entry{margin:16px 0}.wallet-entry button{width:100%;box-shadow:none;background:#f5f0ff;color:#7659bb}.wallet-recharge-method{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;color:#897d9b;font-size:12px}.wallet-recharge-method button{font-size:11px;box-shadow:none}
.wallet-balance #wallet-topup{flex:0 0 auto;margin:0;white-space:nowrap;min-height:44px;padding:11px 20px}
@media(max-width:650px){.wallet-page .wallet-balance{flex-direction:row;align-items:center;gap:14px}.wallet-balance #wallet-topup{padding:10px 14px;font-size:13px}.wallet-page .wallet-balance strong{font-size:30px}}

.alipay-checkout{text-align:center;padding:18px 0;display:flex;align-items:center;flex-direction:column;gap:14px}.alipay-checkout>strong{font-size:28px;color:#3d87c6}.alipay-checkout>img{display:block;background:white;width:240px;height:240px;max-width:100%;border:1px solid #e0e8f0;border-radius:12px;padding:10px}.alipay-checkout p{font-size:14px;line-height:1.7;color:#7d7b8d;margin:0}.alipay-checkout small{font-size:12px;color:#9994aa;overflow-wrap:anywhere}
/* Single-provider recharge card */
#dialog:has(.recharge-card),#dialog:has(.alipay-checkout){width:min(440px,calc(100vw - 32px));padding:30px;border-radius:22px;max-height:88dvh;box-sizing:border-box}
.recharge-card{color:#30334d}.recharge-heading>span{font-size:12px;color:#9390a3;letter-spacing:1px}.recharge-heading h2{font-size:27px;margin:8px 0 10px}.recharge-heading p{font-size:13px;color:#9793a7;margin:0 0 28px}.recharge-heading b{color:#696179;font-weight:600;margin-left:7px}.recharge-card form>label{font-size:13px;color:#817b90;display:block;margin-bottom:10px}.recharge-amount{display:flex;align-items:center;gap:10px;border-bottom:2px solid #e5deee;padding:5px 0 14px}.recharge-amount>span{font-size:25px;color:#787087}.recharge-amount input{font-size:34px!important;font-weight:650;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;width:100%;min-width:0;padding:0!important;color:#383349!important;margin:0!important;appearance:textfield}.recharge-amount input::-webkit-inner-spin-button,.recharge-amount input::-webkit-outer-spin-button{appearance:none}.recharge-amount:focus-within{border-color:#a787d1}.recharge-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0 25px}.recharge-presets button{padding:9px 2px;font-size:13px;min-height:40px;background:#f8f5fc;color:#8b789f;border:1px solid #e9e1f1;border-radius:9px;box-shadow:none}.recharge-presets button.active{background:#efe6fb;border-color:#c5ace4;color:#7855a6}.recharge-pay-method{display:flex;align-items:center;justify-content:space-between;padding:0 0 16px;gap:20px}.recharge-pay-method>span{font-size:13px;color:#817b90}.recharge-provider{position:relative;padding:9px 16px;display:grid;place-items:center;min-width:72px;background:#f2f8ff!important;border:1px solid #bed8ff!important;border-radius:10px;box-shadow:none!important}.recharge-provider img{width:30px;height:30px;display:block}.recharge-provider i{position:absolute;right:3px;bottom:0;font-style:normal;color:#1677ff;font-size:11px}.recharge-card .form-error{margin:0 0 10px;font-size:12px}.recharge-card .form-error:empty{display:none}.recharge-card .recharge-submit{display:block;width:100%;min-height:48px;border:0;background:#1677ff!important;color:#fff!important;border-radius:11px;padding:13px;font-size:15px;font-weight:600;box-shadow:0 5px 16px #1677ff19}.recharge-submit:disabled{opacity:.45}.recharge-footnote{margin:12px 0 0!important;text-align:center;font-size:12px!important;color:#aaa4b5!important}.alipay-checkout>.alipay-provider-mark{width:40px;height:40px;padding:0;border:0;border-radius:0}.alipay-open-button{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;box-sizing:border-box;text-decoration:none;color:white!important;background:#1677ff;border-radius:11px;padding:12px 18px;font-size:15px;font-weight:600}.alipay-qr-backup{width:100%;font-size:12px;color:#9290a3}.alipay-qr-backup summary{cursor:pointer;padding:10px}.alipay-qr-backup img{width:220px;max-width:100%;background:white;border-radius:12px;margin:12px auto;display:block}.payment-query-button{width:100%;background:#f4f0fa!important;color:#8062a4!important;border:1px solid #e3d8ef;border-radius:10px;padding:12px;font-size:13px;box-shadow:none!important}@media(max-width:550px){#dialog:has(.recharge-card),#dialog:has(.alipay-checkout){padding:24px;border-radius:20px}.recharge-heading h2{font-size:24px}.recharge-heading p{margin-bottom:24px}.recharge-presets{gap:7px}.recharge-presets button{font-size:12px}.recharge-amount input{font-size:30px!important}}

.chapter-unlock>p{color:var(--muted)}.chapter-unlock-code{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.chapter-unlock-code strong,.chapter-unlock-code span{display:block}.chapter-unlock-code span{font-size:13px;color:var(--muted);margin-top:7px}.chapter-unlock-pay{padding-top:22px}.chapter-unlock-pay p{font-size:13px;color:var(--muted);line-height:1.7}.chapter-unlock-pay button{width:100%;background:#1677ff;color:white;border:0;display:flex;justify-content:center;align-items:center;gap:10px;padding:14px}.chapter-unlock-pay img{width:28px;height:28px;background:white;padding:3px;border-radius:6px}

.chapter-unlock-code button{white-space:nowrap;background:white;border:1px solid var(--line);color:var(--ink);padding:12px 16px;box-shadow:none}.chapter-unlock-code:last-child{border-bottom:0}.purchase-scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 18px}.purchase-scope-options label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px;border:1px solid var(--line);border-radius:12px;background:white;cursor:pointer}.purchase-scope-options label:has(input:checked){border-color:#8c73ce;background:#faf7ff}.purchase-scope-options strong{width:100%;padding-left:24px;color:var(--zone)}.purchase-balance{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid var(--line)}.purchase-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.purchase-methods button{background:white;color:var(--ink);border:1px solid var(--line);padding:13px 8px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:none}.purchase-methods img{width:23px;height:23px}.purchase-methods button:disabled{opacity:.45}.payment-amount-heading{display:flex;align-items:center;justify-content:center;gap:12px}.alipay-checkout .payment-main-qr{display:block;width:min(240px,100%);height:auto;margin:14px auto}.alipay-checkout .alipay-open-button{background:white;color:#1677ff;border:1px solid #bfd8fa;box-shadow:none}.payment-info{color:var(--muted);font-size:13px;line-height:1.6;text-align:center}

/* Purchase and checkout: explicit colors prevent inherited theme conflicts. */
#dialog:has(.purchase-options),#dialog:has(.alipay-checkout){max-height:88dvh;overflow-y:auto;width:min(460px,calc(100vw - 32px));box-sizing:border-box;padding:28px;border-radius:24px}
.purchase-eyebrow{font-size:12px;color:#8061b8}.purchase-options h2{margin:10px 0;font-size:26px}.purchase-intro{color:#80768f;font-size:13px;line-height:1.7}.purchase-scope-options{gap:12px;margin:22px 0}.purchase-scope-options label{position:relative;display:grid;grid-template-columns:20px 1fr;gap:8px;padding:18px 12px;min-height:90px;box-sizing:border-box}.purchase-scope-options input{width:16px;height:16px;margin:2px 0;accent-color:#7550c4}.purchase-scope-options strong{grid-column:2;padding:0;color:#7550c4;font-size:23px}.purchase-scope-options span{font-size:14px;font-weight:650;color:#34304a}.purchase-benefits{padding:16px 18px;background:#f8f5fc;border-radius:14px;margin-bottom:18px}.purchase-benefits p{margin:0;font-weight:600;font-size:14px;line-height:1.6}.purchase-benefits ul{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px;font-size:12px;color:#776b88}.purchase-benefits li:before{content:'✓';color:#8b65c3;margin-right:9px}.purchase-methods button{color:#39304e!important;min-height:50px;font-size:14px}.purchase-methods button:disabled{opacity:.55;background:#f7f5fa;color:#8d869a!important}.payment-amount-heading{display:flex;flex-direction:column;gap:8px}.payment-amount-heading img{width:36px;height:36px}.payment-amount-heading span{color:#837990;font-size:12px}.payment-amount-heading strong{font-size:32px;color:#343049}.alipay-checkout{padding:8px 0;gap:12px}.alipay-checkout .payment-main-qr{width:min(210px,100%);height:auto;box-sizing:border-box;padding:10px;margin:6px auto}.alipay-checkout .alipay-open-button{color:#1677ff!important;background:#eff6ff!important;min-height:48px}.alipay-checkout p{font-size:12px}.payment-query-button{min-height:44px}.activation-history article{display:flex;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid #eee7f3;font-size:12px}.activation-history article>div{flex:1;display:grid;gap:7px}.activation-history code{color:#8b789e}.activation-history article>span{color:#93889e}.activation-history b{color:#2b8a75;white-space:nowrap}@media(max-width:550px){.activation-history article{flex-wrap:wrap;gap:10px}.activation-history article>span{order:3;width:100%}#dialog:has(.alipay-checkout),#dialog:has(.purchase-options){padding:24px 20px}.purchase-options h2{font-size:24px}}

#dialog .purchase-scope-options{display:grid;grid-template-columns:1fr;gap:12px}#dialog .purchase-scope-options label{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:18px!important;min-height:98px;width:100%;margin:0;box-sizing:border-box}#dialog .purchase-scope-options .scope-copy{display:flex;flex-direction:column;gap:7px;min-width:0}#dialog .scope-copy b{font-size:15px;line-height:1.5;color:#34304a}#dialog .scope-copy small{font-size:11px;font-weight:400;color:#91849f;line-height:1.6}#dialog .purchase-scope-options strong{grid-column:auto!important;display:flex;flex-direction:column;align-items:flex-end;padding:0!important;font-size:24px;white-space:nowrap}#dialog .purchase-scope-options strong small{font-size:10px;font-weight:400;color:#91849f;margin-top:6px}#dialog .purchase-benefits p{font-size:13px;line-height:1.9;font-weight:500}.purchase-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.purchase-entry-grid article{display:flex;flex-direction:column;min-width:0;padding:26px;border:1px solid #dfeae7;border-radius:18px;background:linear-gradient(140deg,#f4fbf9,#fff)}.purchase-entry-grid article:nth-child(2){background:white}.purchase-entry-grid h3{font-size:21px;margin:12px 0}.purchase-entry-grid p{font-size:13px;line-height:1.9;color:#7d8890;margin:0 0 20px}.purchase-entry-grid select{width:100%;padding:12px;border:1px solid #dfeae7;border-radius:10px;background:white;color:#35434a;font-size:14px;margin:0 0 12px}.entry-price{font-size:25px;font-weight:700;color:#287f73;margin-top:auto;padding:16px 0}.entry-price small{font-size:11px;font-weight:400;color:#8b969a;margin-left:12px}.purchase-entry-grid button{width:100%;background:#e3f3ed!important;color:#287f73!important;box-shadow:none;border:1px solid #cfe5dd;min-height:46px}.purchase-entry-grid button:disabled{opacity:.5}@media(max-width:650px){.purchase-entry-grid{grid-template-columns:1fr;gap:14px}.purchase-entry-grid article{padding:20px}#dialog .purchase-scope-options label{gap:9px!important;padding:14px!important}#dialog .purchase-scope-options strong{font-size:21px}#dialog .scope-copy b{font-size:14px}}

.purchase-layout>div{min-width:0}
@media(min-width:760px){
 #dialog:has(.purchase-options){width:min(860px,calc(100vw - 64px));max-width:none;padding:28px 30px;max-height:calc(100dvh - 48px)}
 #dialog .purchase-options h2{font-size:25px;line-height:1.35;margin:7px 0 8px}
 #dialog .purchase-options .purchase-intro{font-size:13px;margin:0 0 22px;line-height:1.6}
 .purchase-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:26px;align-items:start}
 #dialog .purchase-scope-options{margin:0;gap:12px}
 #dialog .purchase-scope-options label{min-height:98px;padding:15px 12px!important;gap:9px!important}
 #dialog .scope-copy b{font-size:14px}
 #dialog .scope-copy small{font-size:10px}
 #dialog .purchase-scope-options strong{font-size:23px}
 .purchase-payment-panel{border-left:1px solid var(--line);padding-left:24px}
 #dialog .purchase-benefits{padding:14px 16px;margin:0 0 14px}
 #dialog .purchase-benefits p{font-size:12px;line-height:1.8;margin:0}
 #dialog .purchase-benefits ul{display:grid;gap:7px;margin-top:12px;font-size:12px;line-height:1.5}
 #dialog .purchase-balance{padding:12px 0;font-size:13px}
 #dialog #purchase-balance-hint{font-size:12px;line-height:1.5;margin:10px 0 16px}
 #dialog .purchase-methods{margin-top:0;gap:10px}
 #dialog .purchase-methods button{font-size:13px;padding:11px 6px;min-height:46px}
 #dialog #purchase-error{font-size:12px;margin:10px 0 0}
}
@media(max-width:759px){.purchase-layout{display:block}.purchase-choice-panel{margin-bottom:16px}}

.activation-code-help{display:inline-block;margin-top:12px;color:#277b70;font-size:13px;line-height:1.7;text-decoration:underline;text-underline-offset:3px}.activation-code-help:hover{color:#1c6359}.activation-code-help:focus-visible{outline:2px solid #277b70;outline-offset:4px;border-radius:3px}
.agent-tier-label{color:var(--zone,#3578b5);font-size:13px;line-height:1.7;margin-top:10px}
.agent-created-list{max-height:320px;overflow-y:auto;margin:22px 0;border:1px solid #dce6ee;border-radius:12px}.agent-created-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #eef2f6}.agent-created-list code{overflow-wrap:anywhere}.agent-created-actions{display:flex;gap:10px;flex-wrap:wrap}.agent-created p{font-size:13px;line-height:1.8}#agent-created-status{color:#3578b5;margin-top:12px}
.agent-entry-grid article{border-color:#dbe6f1;background:linear-gradient(135deg,#f0f6fc,#fff)}.agent-entry-grid .wallet-scope,.agent-entry-grid .entry-price{color:#3578b5}.agent-entry-grid button{background:#eaf3fc!important;color:#286ba5!important;border-color:#cddff0}.agent-entry-grid select{border-color:#dbe6f1}
#dialog:has(.agent-extract){width:min(520px,calc(100vw - 32px));max-width:none;box-sizing:border-box;padding:30px;max-height:calc(100dvh - 32px);overflow-y:auto}#dialog .agent-extract h2{font-size:26px;margin:8px 0 22px}.agent-extract-eyebrow{font-size:12px;font-weight:600;color:#3578b5}.agent-extract-product{display:grid;gap:7px;padding:18px 20px;background:#f0f6fc;border:1px solid #dce8f3;border-radius:14px;margin-bottom:22px}.agent-extract-product span,.agent-extract-product small{font-size:12px;color:#73869b}.agent-extract-product strong{font-size:19px;color:#253c53}#dialog .agent-extract form{display:flex;flex-direction:column;gap:12px}#dialog .agent-extract label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px;color:#35465b;margin:0}#dialog .agent-extract label small{font-size:11px;color:#8a97a7;font-weight:400}.agent-quantity-control{display:flex;align-items:center;gap:10px;margin-bottom:8px}#dialog .agent-quantity-control button{width:44px;height:44px;flex-shrink:0;padding:0;border:1px solid #d9e5f0;background:#f4f8fc;color:#3578b5;font-size:22px;box-shadow:none}#dialog .agent-quantity-control input{width:100%;min-width:0;box-sizing:border-box;height:44px;margin:0;text-align:center;border:1px solid #d9e5f0;border-radius:10px;font-size:17px}#dialog .agent-extract textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:80px;margin:0;padding:12px 14px;border:1px solid #d9e5f0;border-radius:10px;font:inherit;font-size:13px;line-height:1.7}#dialog .agent-extract textarea:focus,#dialog .agent-quantity-control input:focus{outline:2px solid #b8d5ef;outline-offset:2px}.agent-extract-summary{background:#f7f9fc;border-radius:12px;padding:16px 18px;margin-top:6px}.agent-extract-summary>div{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;font-size:13px;color:#6a7a8e}.agent-extract-summary b{color:#35465b}.agent-extract-summary strong{font-size:25px;color:#3578b5}.agent-extract-summary p{font-size:12px;color:#73869b;margin:0}#dialog .agent-extract-submit{width:100%;min-height:48px;background:#3578b5;color:white;border:0;font-size:15px;margin:0;box-shadow:none}#dialog .agent-extract-submit:disabled{opacity:.45}.agent-extract-footnote{font-size:11px!important;text-align:center;line-height:1.7;color:#8a97a7;margin:0!important}.agent-extract .form-error:empty{display:none}@media(max-width:600px){#dialog:has(.agent-extract){padding:24px 20px}#dialog .agent-extract h2{font-size:23px}.agent-extract-product{padding:15px}.agent-entry-grid article{padding:20px}}
