.app[data-page="credits"] .content{max-width:1180px;padding:28px 40px 56px}.app[data-page="credits"] .composer{display:none!important}
#credits-view{color:var(--account-text)}#credits-view[hidden]{display:none}
.credits-back{color:var(--account-muted);font-size:14px;white-space:nowrap}.credits-back:hover{color:var(--account-accent)}
.credits-wallet{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;background:linear-gradient(115deg,var(--account-accent-bg),var(--account-surface) 75%)}
.credits-wallet-main{display:flex;align-items:center;gap:20px}.credits-wallet-icon{font-size:32px;color:var(--account-accent);display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:var(--account-accent-bg)}
.credits-eyebrow{font-size:13px;color:var(--account-muted)}#credits-balance{display:block;font-size:34px;font-weight:600;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.credits-wallet-actions{display:flex;align-items:center;gap:20px;font-size:13px}.credits-wallet-actions button{color:var(--account-muted);font-size:13px}.credits-wallet-actions a{color:var(--account-accent)}
.credits-tabs{display:flex;gap:28px;border-bottom:1px solid var(--account-line);margin:26px 0;padding:0 3px}.credits-tabs a{display:block;padding:0 0 14px;color:var(--account-muted);font-size:15px;border-bottom:2px solid transparent}.credits-tabs a[aria-current="page"]{border-color:var(--account-accent);color:var(--account-accent)}
.credits-shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}
.credits-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.credits-section-heading h2,.credits-summary h2,.credits-help h2{font-size:17px;font-weight:600;margin:0}.credits-section-heading>span{color:var(--account-muted);font-size:12px}
.credits-packages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.credits-package{position:relative;display:block;min-width:0;padding:21px 22px 18px;border:1px solid var(--account-line);border-radius:15px;background:var(--account-surface);cursor:pointer}.credits-package:hover{background:var(--account-raised)}.credits-package:has(input:checked){border-color:var(--account-accent);background:var(--account-accent-bg);box-shadow:inset 0 0 0 1px var(--account-accent)}.credits-package:has(input:focus-visible){outline:2px solid var(--account-accent);outline-offset:4px}
.credits-package input{position:absolute;width:1px;height:1px;opacity:0}.credits-package-name{display:flex;justify-content:space-between;gap:8px;font-size:15px;font-weight:500;margin-bottom:18px}.credits-package-name:after{content:"";width:17px;height:17px;border:1px solid var(--account-muted);border-radius:50%;flex-shrink:0}.credits-package:has(input:checked) .credits-package-name:after{content:"✓";display:grid;place-items:center;font-size:12px;background:var(--account-accent);color:var(--account-surface);border-color:var(--account-accent)}
.credits-package-total{display:block;font-size:29px;line-height:1.3;font-weight:600;letter-spacing:-.4px;overflow-wrap:anywhere}.credits-package-total small{font-size:13px;font-weight:400;letter-spacing:0;margin-left:6px;color:var(--account-muted)}.credits-package-breakdown{display:block;color:var(--account-accent);font-size:12px;margin-top:8px;line-height:1.6}.credits-package-description{display:block;color:var(--account-muted);font-size:12px;line-height:1.6;margin-top:6px}.credits-package-price{display:block;font-size:22px;font-weight:600;border-top:1px solid var(--account-line);margin-top:18px;padding-top:14px}.credits-package-tag{position:absolute;top:-10px;left:20px;padding:2px 9px;border-radius:6px;font-size:11px;background:var(--account-accent);color:var(--account-surface)}
.credits-purchase-note{font-size:13px;line-height:1.7;color:var(--account-muted);margin:18px 0 0}
.credits-summary{padding:24px}.credits-summary>p:first-of-type{color:var(--account-accent);font-size:15px;margin:22px 0}.credits-summary dl{margin:0}.credits-summary dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;line-height:1.6;padding:9px 0}.credits-summary dt{color:var(--account-muted)}.credits-summary dd{margin:0;font-variant-numeric:tabular-nums}.credits-summary dl>.credits-summary-total{border-top:1px solid var(--account-line);margin-top:8px;padding-top:18px}.credits-summary-total dd{font-size:20px;color:var(--account-accent);font-weight:600}
.credits-summary-price{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 20px}.credits-summary-price>span{font-size:13px;color:var(--account-muted)}.credits-summary-price strong{font-size:28px;font-weight:600}
#credits-purchase{display:block;width:100%;padding:12px 10px;border:0;border-radius:10px;background:var(--account-accent);color:var(--account-surface);font-size:14px;font-weight:600;opacity:.55;cursor:not-allowed}.credits-summary-note{font-size:12px;color:var(--account-muted);line-height:1.7;margin:13px 0 22px}.credits-summary-link{font-size:13px;color:var(--account-accent)}
.credits-help{margin-top:28px;padding:24px}.credits-help h2{margin-bottom:10px}.credits-help details{border-bottom:1px solid var(--account-line);padding:15px 0}.credits-help details:last-child{border-bottom:0;padding-bottom:0}.credits-help summary{font-size:14px;cursor:pointer;line-height:1.7}.credits-help details p{font-size:13px;line-height:1.8;color:var(--account-muted);margin:12px 0 0}
.credit-ledger{padding:24px}.credits-secondary{padding:8px 12px;border:1px solid var(--account-line);border-radius:8px;background:transparent;color:var(--account-muted);font-size:13px;line-height:1.5;white-space:nowrap}.credits-secondary:hover{color:var(--account-accent);border-color:var(--account-accent)}
.credits-direction{display:flex;gap:5px;width:fit-content;padding:4px;border-radius:10px;background:var(--account-raised);margin:0 0 20px}.credits-direction button{padding:7px 15px;color:var(--account-muted);font-size:13px;border-radius:7px}.credits-direction button[aria-pressed="true"]{background:var(--account-accent-bg);color:var(--account-accent)}
.credits-filter-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:22px}.credits-field{display:flex;flex-direction:column;gap:7px;color:var(--account-muted);font-size:12px;min-width:0}.credits-search{flex:1;min-width:150px}.credits-field input,.credits-field select{box-sizing:border-box;max-width:100%;min-width:0;height:40px;padding:8px 10px;border:1px solid var(--account-line);border-radius:9px;background:var(--account-raised);color:var(--account-text);font:inherit;font-size:13px;color-scheme:dark}.credits-field input::placeholder{color:var(--account-muted)}[data-theme="light"] .credits-field input,[data-theme="light"] .credits-field select{color-scheme:light}
.credits-search-button{height:40px;padding:8px 16px;border-radius:9px;background:var(--account-accent-bg);color:var(--account-accent);font-size:13px}.credits-filter-form>.credits-secondary{height:40px}
.credits-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}.credits-table th{font-size:12px;font-weight:400;color:var(--account-muted);padding:12px 10px;border-bottom:1px solid var(--account-line)}.credits-table th:first-child{width:44%;padding-left:0}.credits-table th:last-child{width:24%;padding-right:0}.credits-table td{padding:18px 10px;vertical-align:middle;border-bottom:1px solid var(--account-line);font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.credits-table td:first-child{padding-left:0}.credits-table td:last-child{padding-right:0}.credits-table tr:last-child td{border-bottom:0}
.credit-record-title{display:flex;gap:10px;align-items:flex-start}.credit-record-icon{width:31px;height:31px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:var(--account-raised);color:var(--account-accent);font-size:18px}.credit-record-content{min-width:0}.credit-record-content strong{font-size:14px;font-weight:500;line-height:1.6}.credit-record-content small{display:block;font-size:12px;color:var(--account-muted);line-height:1.7;margin-top:3px}.credit-record-content details{margin-top:4px;font-size:12px;color:var(--account-muted)}.credit-record-content summary{cursor:pointer}.credit-record-content details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:6px 0 0}.credit-amount{font-size:15px;font-weight:600}.credit-positive{color:#97d3b4}[data-theme="light"] .credit-positive{color:#25774f}.credit-record-time{font-size:12px!important;line-height:1.7;color:var(--account-muted)}
.credits-status{font-size:13px;line-height:1.7;color:var(--account-accent);padding:12px 14px;border-radius:9px;background:var(--account-accent-bg);margin:14px 0}.credits-ledger-empty{text-align:center;padding:55px 16px;line-height:1.8;color:var(--account-muted);font-size:14px}
.credits-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--account-line);padding-top:18px;margin-top:10px;color:var(--account-muted);font-size:12px}.credits-pagination>div{display:flex;align-items:center;gap:13px}#credits-view :disabled{opacity:.45;cursor:default}#credits-view a:focus-visible,#credits-view button:focus-visible,#credits-view input:focus-visible,#credits-view select:focus-visible,#credits-view summary:focus-visible{outline:2px solid var(--account-accent);outline-offset:3px}.app .nav a.credit-nav-active{background:var(--account-accent-bg);color:var(--account-accent)}
@media(max-width:1100px){.app[data-page="credits"] .content{padding:24px}.credits-shop-layout{grid-template-columns:minmax(0,1fr) 255px;gap:18px}.credits-package{padding:20px 16px 16px}.credits-summary{padding:21px}}
@media(max-width:850px){.credits-shop-layout{grid-template-columns:1fr}.credits-summary{display:block}.credits-summary dl{max-width:none}.credits-summary-price{margin:20px 0}.credits-summary-note{margin-bottom:16px}.credits-table th:first-child{width:39%}.credits-table th:last-child{width:24%}}
@media(max-width:600px){.app[data-page="credits"] .content{padding:20px 14px 36px}.credits-heading h1{font-size:25px}.credits-wallet{align-items:flex-start;flex-direction:column;padding:20px;gap:18px}.credits-wallet-main{gap:13px}.credits-wallet-icon{width:42px;height:42px;font-size:27px;border-radius:13px}#credits-balance{font-size:30px}.credits-wallet-actions{width:100%;justify-content:space-between;gap:10px;font-size:12px}.credits-wallet-actions button{font-size:12px}.credits-tabs{margin:22px 0}.credits-packages{gap:12px;grid-template-columns:1fr}.credits-package{padding:21px}.credits-package-total{font-size:29px}.credits-section-heading{align-items:flex-start;flex-wrap:wrap;gap:7px}.credits-section-heading h2{font-size:16px}.credits-summary,.credits-help,.credit-ledger{padding:18px}.credits-direction{width:100%;gap:0}.credits-direction button{flex:1;padding:8px 5px;font-size:12px}.credits-filter-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.credits-field{grid-column:1/-1}.credits-search{min-width:0}.credits-field select,.credits-field input{width:100%;font-size:16px}.credits-search-button{min-height:40px}.credits-table,.credits-table tbody{display:block}.credits-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.credits-table tr{display:grid;grid-template-columns:1fr auto;gap:9px;border-bottom:1px solid var(--account-line);padding:17px 0}.credits-table td{display:block;border:0;padding:0!important;min-width:0;font-size:13px}.credits-table td:first-child{grid-column:1/-1;margin-bottom:3px}.credits-table td:nth-child(2){text-align:left}.credits-table td:nth-child(3){text-align:right;color:var(--account-muted);font-size:12px}.credits-table td:nth-child(3):before{content:"余额 ";font-size:12px}.credits-table td:last-child{grid-column:1/-1;padding-left:41px!important}.credits-table td:nth-child(2){padding-left:41px!important}.credit-record-content strong{font-size:14px}.credits-pagination{align-items:flex-start;flex-direction:column;gap:13px}.credits-pagination>div{width:100%;justify-content:space-between;gap:7px}.credits-pagination button{padding:8px;font-size:12px}.credits-back{font-size:13px}}
#credits-purchase:not(:disabled){opacity:1;cursor:pointer}.credits-payment-panel{margin-top:22px;padding:24px}.credits-payment-panel[hidden]{display:none}.credits-payment-panel h2{font-size:18px;margin:0 0 14px}.credits-payment-panel>small{display:block;color:var(--account-muted);overflow-wrap:anywhere}.credits-payment-panel form{margin:16px 0}.credits-payment-primary{padding:12px 20px;border-radius:10px;background:var(--account-accent);color:var(--account-surface);font-weight:600;cursor:pointer}.credits-payment-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--account-line)}.credits-payment-row:last-child{border:0}.credits-payment-row strong{font-size:14px;font-weight:500}.credits-payment-row small{display:block;font-size:12px;color:var(--account-muted);margin-top:5px;overflow-wrap:anywhere}@media(max-width:600px){.credits-payment-row{align-items:flex-start;flex-direction:column}.credits-payment-panel{padding:18px}}
