:root{font-family:"Instrument Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#172543;background:#f3f6fb;font-size:100%;line-height:1.55}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #4185f5;outline-offset:3px}
[hidden]{display:none!important}
.wrap{width:min(1100px,calc(100% - 72px));margin:auto}
.mast{background:white;border-bottom:1px solid #d6dfed}
.bar,.intro,.brand,.local,.providers,.voucher-top,.form-foot,footer{display:flex;align-items:center}
.bar{height:70px;justify-content:space-between}
.brand{font-weight:720;font-size:1.15rem;gap:13px;letter-spacing:.02em}
.mark{position:relative;display:block;width:32px;height:32px;border-radius:9px;background:#234baf}
.mark:before,.mark:after{content:"";position:absolute}
.mark:before{inset:6px 8px;border:1.8px solid #fff;border-radius:5px 5px 8px 8px;transform:rotate(-6deg)}
.mark:after{width:8px;height:4px;top:12px;left:11px;transform:rotate(-45deg);border:solid #fff;border-width:0 0 2px 2px}
.local{gap:8px;color:#465574;font-size:.875rem}
.local i{display:inline-block;width:8px;height:8px;background:#29816d;border-radius:50%}
.intro{justify-content:space-between;gap:30px;margin:46px 0 30px}
h1,h2,p{margin:0}
h1{font-size:clamp(2rem,4vw,2.85rem);letter-spacing:-.05em;font-weight:720;line-height:1.2}
.intro p{color:#5a6880;margin-top:12px}
.providers{gap:4px;background:#e5ebf4;border-radius:12px;padding:4px}
.providers button{border:0;background:transparent;color:#526078;min-height:44px;padding:0 18px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:650}
.providers button[aria-pressed=true]{color:#214baf;background:#fff;box-shadow:0 1px 4px #1d325126}
.spark,.terminal{font-size:1.2rem;line-height:1}
.terminal{font-family:monospace}
.layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(272px,.85fr);gap:24px;align-items:start}
.desk,.recent{background:white;border:1px solid #d6dfed;border-radius:15px}
.desk{overflow:hidden}
.tabs{display:flex;gap:22px;padding:0 30px;border-bottom:1px solid #dce3ef}
.tabs button{border:0;border-bottom:3px solid transparent;padding:17px 2px 14px;background:transparent;color:#53627b;font-size:.94rem;font-weight:600}
.tabs button[aria-pressed=true]{color:#224fac;border-bottom-color:#2e60c9}
form{padding:26px 30px 24px}
fieldset{margin:0;padding:0;border:0;min-width:0}
h2{font-size:1.25rem;line-height:1.4;letter-spacing:-.025em}
.hint,.form-foot p,#empty,#result p{color:#52627c;font-size:.94rem}
.hint{margin:7px 0 23px}
label:not(.check){display:block;margin:17px 0 7px;font-weight:620;font-size:.94rem}
small{font-size:.8rem;color:#63728a;font-weight:450}
input:not([type=checkbox]){width:100%;min-height:46px;padding:10px 13px;border:1px solid #aab8ce;border-radius:7px;background:#fff;color:#152441}
input::placeholder{color:#66758d}
input:hover{border-color:#7487a7}
.check{display:flex;align-items:center;gap:9px;min-height:44px;width:fit-content;font-size:.94rem;color:#3d506e;cursor:pointer;margin-top:10px}
.check input{width:17px;height:17px;margin:0;accent-color:#234da9}
.form-foot{margin-top:20px;padding-top:20px;border-top:1px solid #e1e7f0;justify-content:space-between;gap:16px}
.primary{border:0;background:#244fb2;color:#fff;font-weight:620;border-radius:8px;min-height:44px;padding:9px 22px;white-space:nowrap}
.primary:hover{background:#163e99}
aside{display:grid;gap:18px}
.voucher{position:relative;isolation:isolate;overflow:hidden;border-radius:15px;background:#203c81;color:white;padding:21px 25px 17px}
.voucher:before{content:"";position:absolute;inset:0 0 0 15%;background:repeating-radial-gradient(ellipse at 103% 18%,transparent 0,transparent 9px,#bfd6ff24 10px,transparent 11px);z-index:-1;mask-image:linear-gradient(95deg,transparent,#000)}
.voucher h2,.recent h2{font-size:1.03rem;font-weight:650}
.voucher-top{justify-content:space-between}
.refresh{border:1px solid #849ac7;border-radius:7px;background:#203c81;color:#fff;min-height:44px;padding:3px 14px;font-size:.88rem}
.refresh:hover{background:#324f90}
.quota-main{margin:8px 0 13px;display:flex;align-items:baseline;gap:10px}
.quota-main span:first-child{font-size:clamp(2.65rem,5vw,3.8rem);line-height:1.15;font-weight:650;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.quota-main span:last-child,.quota-pair span,#quota-info{color:#d7e4ff;font-size:.875rem}
.quota-pair{display:flex;gap:30px;padding:12px 0 0;border-top:1px dashed #8298c4}
.quota-pair div{display:flex;gap:9px;align-items:baseline}
#quota-info{margin-top:10px;line-height:1.4;font-size:.81rem}
.recent{padding:21px 24px}
#empty{margin-top:10px}
#history{padding:0;margin:4px 0 0;list-style:none}
#history button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;padding:10px 0;border:0;background:transparent;border-bottom:1px solid #e1e7f0;min-height:44px}
#history li:last-child button{border:0}
#history button:hover,.tabs button:hover{color:#2457bc}
#history strong{font-size:.92rem;overflow-wrap:anywhere;color:#234da2}
#history span{font-size:.84rem;color:#52627c;white-space:nowrap}
#result{margin:0 30px 24px;border-left:3px solid #315cba;background:#eef3fc;border-radius:3px 8px 8px 3px;padding:15px 18px;overflow-wrap:anywhere}
#result[data-error=true]{border-color:#a93544;background:#fff1f1}
#result strong{display:block;margin-bottom:4px}
#result p{margin-top:3px;color:#344760}
footer{justify-content:space-between;gap:15px;margin:28px 0 24px;color:#647187;font-size:.85rem}
a{color:#2551a6;text-underline-offset:3px}
.desk-links{display:flex;gap:18px;font-size:.94rem}.desk-links a{display:inline-flex;align-items:center;min-height:44px}
.card-notice,.batch-detail{margin:0 30px 22px}.card-notice{border-left:3px solid #4168b3;padding:10px 14px;background:#eef3fc}
.batch-detail{border-top:1px solid #d6dfed;padding-top:20px}.batch-detail .hint{margin-bottom:8px}
textarea{display:block;width:100%;margin:6px 0 12px;padding:10px;border:1px solid #aab8ce;border-radius:7px;font:1rem/1.6 ui-monospace,monospace;resize:vertical}
.secondary,.batch-list button{border:1px solid #aab8ce;border-radius:7px;background:white;color:#234da2;min-height:44px;padding:7px 14px}
.batch-list{padding:0;margin:8px 0 0;list-style:none;max-height:350px;overflow:auto}.batch-list button{border:0;text-align:left;padding:8px 0}
.redeem-wrap{max-width:710px;margin-bottom:36px}.redeem-wrap #redeem-form{border-top:1px solid #d6dfed}.redeem-wrap label:first-child{margin-top:0}
.stock-note{margin-top:10px;font-size:.875rem;color:#d7e4ff}
@media(max-width:760px){
 .wrap{width:calc(100% - 36px)}.bar{height:58px}.intro{margin:28px 0 20px;display:grid;gap:18px}.providers{justify-self:start}
 .layout{grid-template-columns:1fr;gap:16px}.tabs{padding:0 19px;gap:17px}form{padding:22px 20px}.voucher,.recent{padding:18px 21px}
 #result{margin:0 20px 20px}aside{gap:14px}.form-foot{align-items:flex-start}.form-foot p{align-self:center}
}
@media(max-width:390px){.form-foot{align-items:stretch;flex-direction:column}.form-foot p{align-self:flex-start}.tabs{gap:12px}.wrap{width:calc(100% - 28px)}}
