body:has(#app:not(.hidden) #rechargeView.active){height:100dvh;overflow:hidden;overscroll-behavior-y:none}
#app:has(#rechargeView.active){height:100dvh;min-height:0}
#app:has(#rechargeView.active)>.workspace{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:18px;overflow:hidden}
#app:has(#rechargeView.active)>.workspace>.workspace-status{flex:none}
#rechargeView.active{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.recharge-page-head,.recharge-tabbar,.recharge-read-status{flex:none}
#rechargeBuyPanel,#rechargeShopSurface{display:flex;flex:1;flex-direction:column;min-height:0}
#rechargeShopSurface{position:relative}
#rechargeRedeemPanel{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.recharge-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 24px}
.recharge-page-head h1{margin:0;font-size:25px;line-height:1.3;letter-spacing:0}
.recharge-balance{display:flex;align-items:baseline;gap:10px;font-size:13px;color:var(--muted)}
.recharge-balance strong{font-size:22px;color:var(--text);font-variant-numeric:tabular-nums}
.recharge-tabbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.recharge-tabs{display:flex;gap:24px}
.recharge-tabs button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:104px;min-height:44px;border:0;border-bottom:2px solid transparent;background:none;padding:10px 18px;font:inherit;font-size:14px;line-height:1.5;white-space:nowrap;color:var(--muted);cursor:pointer}
.recharge-tabs button[aria-selected="true"]{color:var(--text);border-bottom-color:#39baa3}
.recharge-tabs button:focus-visible{outline:2px solid #39baa3;outline-offset:4px}
.recharge-refresh{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:7px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:transparent;cursor:pointer}
.recharge-refresh svg{width:18px;height:18px}
.recharge-read-status{min-height:0;margin:0;color:var(--muted);font-size:13px}
#rechargeView [hidden],#redeemSection [hidden]{display:none!important}
.recharge-shop-status{position:absolute;z-index:1;top:12px;left:12px;max-width:calc(100% - 24px);padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--panel,#161a22);color:var(--text);font-size:13px;overflow-wrap:anywhere;pointer-events:none}
.recharge-shop-status:empty{display:none}
.recharge-shop-frame{display:block;flex:1;width:100%;height:100%;min-height:0;border:1px solid var(--line);border-radius:8px;background:#fff}
.recharge-shop-empty{display:grid;flex:1;place-content:center;justify-items:center;gap:13px;min-height:0;color:var(--muted);text-align:center}
.recharge-shop-empty svg{width:36px;height:36px;color:#39baa3}
.recharge-shop-empty strong{color:var(--text);font-size:16px;font-weight:500}
.recharge-shop-empty p{margin:0;font-size:13px}
.redeem-content{max-width:760px;margin:32px auto 0}
.redeem-form{display:grid;gap:12px;max-width:560px;margin:0 0 36px}
.redeem-form label{font-size:14px;color:var(--text)}
.redeem-form-row{display:flex;align-items:stretch;gap:10px}
.redeem-form-row input{flex:1;min-width:0;height:44px;border:1px solid var(--line);border-radius:6px;background:var(--input,#161a22);color:var(--text);padding:0 12px;font:inherit;font-size:14px;letter-spacing:0}
.redeem-form-row input:focus{outline:2px solid #39baa3;outline-offset:2px}
.redeem-form-row button{flex:none;min-width:106px;height:44px;border-radius:6px;padding:0 18px}
.redeem-status{min-height:22px;margin:0;font-size:13px;line-height:1.6;color:#39baa3;overflow-wrap:anywhere}
.redeem-status.is-error{color:#e86d7b}
.redeem-history{border-top:1px solid var(--line);padding-top:24px}
.redeem-history h2{margin:0 0 18px;font-size:17px;font-weight:600;letter-spacing:0}
.redeem-history p{color:var(--muted);font-size:13px}
.redeem-table-wrap{max-width:100%;overflow-x:auto}
.redeem-table{width:100%;border-collapse:collapse;font-size:13px}
.redeem-table th,.redeem-table td{padding:13px 8px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
.redeem-table th{font-weight:500;color:var(--muted)}
.redeem-table td{color:var(--text);font-variant-numeric:tabular-nums}
.redeem-table td:last-child{color:#39baa3}
.redeem-admin-block{padding:24px 0;border-bottom:1px solid var(--line)}
.redeem-admin-block:first-child{padding-top:4px}
.redeem-admin-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}
.redeem-admin-head h2{margin:0;font-size:19px}
.redeem-admin-head span{color:var(--muted);font-size:13px}
.redeem-admin-fields{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px}
.redeem-admin-fields label{display:flex;flex-direction:column;gap:8px;min-width:140px;color:var(--muted);font-size:13px}
.redeem-admin-fields input,.redeem-admin-fields select{width:100%;height:40px;border:1px solid var(--line);border-radius:6px;background:var(--input,#161a22);color:var(--text);padding:8px 10px;font:inherit}
.redeem-admin-fields input:focus-visible,.redeem-admin-fields select:focus-visible{outline:2px solid #39baa3;outline-offset:2px}
.redeem-admin-fields .redeem-shop-url{flex:1;min-width:240px}
.redeem-admin-fields .redeem-shop-toggle{flex:none;flex-direction:row;align-items:center;min-width:0;height:40px;color:var(--text)}
.redeem-shop-toggle input{width:16px;height:16px;accent-color:#39baa3}
.redeem-admin-fields button{height:40px;border-radius:6px;white-space:nowrap}
.redeem-admin-status{min-height:20px;margin:14px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.redeem-admin-counts{display:flex;flex-wrap:wrap;gap:12px 28px;margin-bottom:18px;color:var(--muted);font-size:13px}
.redeem-admin-counts strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.redeem-batch-actions{display:flex;align-items:center;gap:8px}
.redeem-batch-actions button{border-radius:6px;min-height:32px;white-space:nowrap}
.redeem-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px;font-size:13px;color:var(--muted)}
html[data-theme="light"] :is(.redeem-form-row input,.redeem-admin-fields input,.redeem-admin-fields select){background:#fff;color:#20252c;border-color:#d8dee7}
html[data-theme="light"] .redeem-status:not(.is-error){color:#117968}
@media(max-width:600px){.recharge-page-head{align-items:flex-start;flex-direction:column;gap:12px}.recharge-balance strong{font-size:20px}.recharge-tabbar{gap:8px}.recharge-tabs{flex:1;min-width:0;gap:8px}.recharge-tabs button{flex:1;min-width:80px;padding:10px 12px}.redeem-content{margin-top:20px}.redeem-form-row{flex-direction:column}.redeem-form-row input{flex:auto}.redeem-form-row button{width:100%}.redeem-admin-fields{align-items:stretch}.redeem-admin-fields label{flex:1 1 140px;min-width:0}.redeem-admin-fields .redeem-shop-url{flex-basis:100%;min-width:0}.redeem-admin-fields>button{width:100%}}
