:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;color:#172037;background:#f6f8fc;font-size:16px;--blue:#2354e8;--muted:#66738c;--line:#e2e7f0}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}[hidden]{display:none!important}.topbar{height:88px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(28px,calc((100vw - 1200px)/2));gap:54px}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:750;white-space:nowrap}.brand-mark{width:43px;height:43px;display:grid;place-items:center;background:var(--blue);color:white;border-radius:12px;font-size:24px}.brand-en{display:block;font-size:10px;letter-spacing:2px;line-height:1.4;color:#63738f}.topbar nav{display:flex;height:100%;gap:32px;align-items:center;flex:1}.topbar nav a{color:#63718a;font-size:15px;height:100%;display:flex;align-items:center;border-bottom:3px solid transparent}.topbar nav a.active{color:var(--blue);border-color:var(--blue);font-weight:600}.env-pill,.tag{background:#edf2ff;color:var(--blue);font-size:12px;font-weight:700;padding:7px 11px;border-radius:6px;white-space:nowrap;letter-spacing:.7px}.demo-banner{background:#edf2ff;border-bottom:1px solid #dce5ff;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px max(28px,calc((100vw - 1200px)/2));font-size:14px;color:#415789}.text-button{border:0;background:none;color:var(--blue);font-size:14px;padding:7px 0;white-space:nowrap}.text-button:hover,.inline-link:hover{text-decoration:underline}main{max-width:1200px;margin:0 auto;padding:46px 0 58px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;gap:24px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:var(--blue);margin:0 0 14px}h1{font-size:34px;letter-spacing:-1px;line-height:1.4;margin:0 0 12px}h2{font-size:22px;line-height:1.4;margin:18px 0 8px}h3{font-size:16px;line-height:1.6;margin:0 0 8px}.lead{color:var(--muted);font-size:15px;margin:0;line-height:1.8}.heading-note{display:flex;align-items:center;gap:12px;color:#364763;font-size:14px;line-height:1.8}.heading-note small{color:var(--muted);font-size:13px}.small-icon{font-size:20px;background:white;border:1px solid var(--line);width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:var(--blue)}.customer-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:36px}.journey{padding:27px 20px 20px 0}.journey .eyebrow{color:#8c96aa}.journey ol{list-style:none;padding:0;margin:28px 0 0}.journey li{display:flex;gap:18px;min-height:99px;position:relative;color:#8a96ab}.journey li:not(:last-child):before{content:"";width:1px;height:47px;background:#dbe2ee;position:absolute;left:20px;top:47px}.step-num{display:grid;place-items:center;align-self:flex-start;border:1px solid #dce3ed;border-radius:50%;width:42px;height:42px;font-size:14px;font-weight:600}.journey li.current{color:#1d2b48}.journey li.current .step-num{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 5px 14px #2354e822}.journey strong{display:block;margin-top:1px;font-size:16px}.journey p:not(.eyebrow){font-size:14px;line-height:1.8;margin:5px 0 0}.help-block{margin-top:38px;border-top:1px solid var(--line);padding-top:24px}.line-icon{display:grid;place-items:center;border:1.5px solid #7f8da7;width:22px;height:22px;font-size:14px;border-radius:50%;margin-bottom:12px}.help-block p{color:var(--muted)}.inline-link{color:var(--blue);display:inline-block;font-size:14px;margin-top:17px}.workspace{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 40px #21396305;overflow:hidden}.tabs{display:flex;padding:0 30px;gap:30px;border-bottom:1px solid var(--line)}.tabs button{border:0;background:none;padding:22px 0 18px;color:var(--muted);border-bottom:3px solid transparent;font-size:15px}.tabs button.selected{color:var(--blue);border-color:var(--blue);font-weight:650}.panel-body{padding:30px 34px}.panel-heading{display:flex;justify-content:space-between;align-items:center}.panel-heading .muted{font-size:13px}.muted{color:var(--muted);font-size:14px;line-height:1.8}.panel-body>h2{margin-top:23px}.panel-body>p{margin:8px 0 24px}label{display:block;font-size:14px;font-weight:600;margin:19px 0 9px}input,textarea,select{border:1px solid #d6deeb;background:white;border-radius:8px;color:#23324c;padding:13px 14px;max-width:100%;width:100%;font-size:15px;transition:border-color .15s}input:focus,textarea:focus{border-color:var(--blue);outline:3px solid #2354e815}textarea{resize:vertical;min-height:112px;line-height:1.7;font-family:ui-monospace,monospace;font-size:14px}input::placeholder,textarea::placeholder{color:#99a3b5;font-size:14px}.input-action{display:flex;gap:12px}.input-action input{min-width:0}.primary,.secondary{border-radius:8px;padding:13px 22px;font-size:14px;font-weight:600;white-space:nowrap;transition:background .2s}.primary{background:var(--blue);color:white;border:1px solid var(--blue)}.primary:hover{background:#1744c6}.secondary{background:white;color:#334563;border:1px solid #d6deeb}.secondary:hover{background:#f0f4fb}.full{width:100%;margin-top:20px}.divider{height:1px;background:var(--line);margin:25px 0}.row-between{display:flex;justify-content:space-between;align-items:center;gap:16px}.row-between h3{margin:0}.field-help{font-size:13px;color:var(--muted);line-height:1.8;margin:9px 0}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:14px;font-weight:400;line-height:1.6}.check-label input{width:17px;height:17px;accent-color:var(--blue);margin:3px 0 0;flex-shrink:0}.assurance{border-top:1px solid var(--line);margin-top:33px;padding-top:19px;display:flex;gap:28px;color:#7c899f;font-size:13px}.verified{margin-top:22px;background:#f0f5ff;border:1px solid #dbe6ff;border-radius:9px;padding:16px;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:14px}.verified strong{display:block;margin-bottom:4px}.verified small{font-size:13px;color:var(--muted)}.status-pill{display:inline-block;padding:5px 9px;border-radius:5px;background:#f0f3fa;color:#586985;font-size:12px;white-space:nowrap}.status-pill.success{color:#08764d;background:#e8f7ef}.status-pill.queued,.status-pill.processing{color:#2354e8;background:#edf2ff}.status-pill.failed,.status-pill.needs_info,.status-pill.uncertain{color:#9a6114;background:#fff4de}.result-card{border:1px solid var(--line);border-radius:10px;padding:22px;margin-top:25px}.result-card h3{font-size:20px;margin-top:15px}.result-card p{font-size:14px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}.task-meta{display:flex;gap:26px;flex-wrap:wrap}.task-meta strong{display:block;font-size:14px;color:#334563}.notes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:46px;border-top:1px solid var(--line);padding-top:27px}.note-index{font-family:ui-monospace,monospace;font-size:13px;color:#8b99b1}.notes-grid h3{margin-top:12px}.notes-grid p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}footer{border-top:1px solid var(--line);max-width:1200px;margin:auto;padding:25px 0;display:flex;justify-content:space-between;font-size:13px;color:#8190a7;gap:18px}footer>span:first-child{color:#35435d;font-weight:600}footer .muted{font-size:13px;font-weight:400}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#152440;color:white;box-shadow:0 10px 40px #12254f33;border-radius:10px;max-width:min(90vw,650px);padding:15px 22px;z-index:100;font-size:14px;line-height:1.6}#toast.error{background:#913838}.login-card{max-width:430px;margin:55px auto;background:white;border:1px solid var(--line);border-radius:16px;padding:32px}.toolbar{display:flex;gap:22px;align-items:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}.stat{border:1px solid var(--line);border-radius:12px;background:white;padding:22px}.stat p{margin:0;color:var(--muted);font-size:14px}.stat strong{font-size:32px;display:block;margin-top:12px;font-weight:650}.stat em{font-style:normal;color:var(--blue);font-size:13px}.ops-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:26px}.order-panel,.inventory{background:white;border:1px solid var(--line);border-radius:14px;padding:25px}.order-panel h2{margin:0}.filter-label{display:flex;align-items:center;gap:9px;font-weight:400;margin:0;white-space:nowrap}.filter-label select{width:auto;font-size:14px;padding:8px}.order-row{border-top:1px solid var(--line);padding:20px 0;display:flex;align-items:center;gap:17px}.order-row:first-child{margin-top:22px}.order-avatar{display:grid;place-items:center;background:#edf2ff;color:var(--blue);font-size:20px;font-weight:650;width:44px;height:44px;border-radius:12px;flex-shrink:0}.order-info{flex:1;min-width:0}.order-info strong{font-size:14px;overflow-wrap:anywhere}.order-info p{font-size:13px;color:var(--muted);margin:5px 0 0;line-height:1.7}.order-row .text-button{padding:10px}.empty{padding:65px 20px;text-align:center;color:var(--muted)}.empty strong{display:block;font-size:17px;color:#344564;margin:15px 0 8px}.empty p{font-size:14px;line-height:1.8}.empty-icon{font-size:28px;color:#8b9bb7}.inventory h2{margin-top:0}.inventory .muted{font-size:14px}.inventory input{font-size:14px}.block-link{display:block;text-align:center}.connection{margin-top:24px;background:#f5f7fc;border-radius:8px;padding:13px;font-size:13px;line-height:1.9}.connection strong,.connection span{display:block}.connection span{color:var(--muted)}dialog{border:1px solid var(--line);border-radius:16px;padding:26px;width:min(640px,calc(100vw - 32px));max-height:90vh;overflow:auto;color:#172037;box-shadow:0 20px 80px #10204233}dialog::backdrop{background:#12213e66}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-head h2{margin:0}.icon-button{background:#f1f4fa;border:0;border-radius:50%;width:32px;height:32px;font-size:24px;color:#5a6c89}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#f6f8fc;border-radius:10px;padding:18px}.detail-grid p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}.detail-grid strong{font-size:14px;overflow-wrap:anywhere}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.events{list-style:none;padding:0;font-size:13px;color:var(--muted);line-height:1.8}.events li{border-left:2px solid #dfe6f2;padding:0 0 14px 16px}.secret-box{margin-top:15px;background:#fff7e7;border:1px solid #f0dfb8;border-radius:8px;padding:15px;overflow-wrap:anywhere}.secret-box textarea{margin-top:10px}.mint-codes{max-height:160px;overflow:auto;font-family:monospace;font-size:12px;line-height:2;background:#f5f7fc;padding:10px;overflow-wrap:anywhere}.error-inline{padding:13px;color:#913838;background:#fff0ef;border-radius:7px;margin-top:15px;font-size:14px}
@media(max-width:1260px){main,footer{margin-left:28px;margin-right:28px}}@media(max-width:800px){.topbar{padding:0 20px;height:76px;gap:25px}.topbar nav{gap:20px}.topbar nav a{font-size:14px}.env-pill{display:none}.demo-banner{padding:12px 20px;align-items:flex-start;line-height:1.7}.demo-banner span{flex:1}.demo-banner strong{display:block}.demo-banner .text-button{align-self:center}main{padding-top:32px;margin:0 20px}.heading-note{display:none}h1{font-size:28px}.customer-layout{grid-template-columns:1fr;gap:20px}.journey{padding:0}.journey>.eyebrow,.help-block{display:none}.journey ol{display:flex;margin:0;gap:12px}.journey li{min-height:70px;flex:1;gap:9px}.journey li:not(:last-child):before{display:none}.step-num{width:29px;height:29px;font-size:11px;flex-shrink:0}.journey strong{font-size:13px;margin-top:4px}.journey li p{display:none}.panel-body{padding:24px}.tabs{padding:0 24px}.notes-grid{gap:18px}.notes-grid p{font-size:13px}.ops-grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:26px}.stat p{font-size:12px}.inventory{max-width:100%}.page-heading{align-items:flex-start}.toolbar{gap:12px;flex-direction:column}.order-panel{padding:19px}.order-panel .row-between{align-items:flex-start}.order-row{gap:12px}.order-avatar{display:none}footer{margin:0 20px;flex-wrap:wrap;font-size:12px}footer>span:nth-child(2){display:none}}@media(max-width:480px){.brand-en{display:none}.brand{font-size:20px}.topbar{gap:22px}.topbar nav{gap:17px}.input-action{flex-direction:column}.input-action button{width:100%}.assurance{gap:12px;flex-direction:column}.notes-grid{grid-template-columns:1fr;gap:23px}.notes-grid article{display:grid;grid-template-columns:40px 1fr;gap:0 9px}.notes-grid h3{margin:0}.notes-grid p{grid-column:2}.stats{grid-template-columns:1fr 1fr}.order-row{flex-wrap:wrap}.order-info{min-width:60%}.order-panel .row-between{flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}.step-num{display:none}.panel-body{padding:20px}.tabs{gap:25px;padding:0 20px}.tabs button{font-size:14px}}
/* Public portal, matched to the reference's compact orange card layout. */
body[data-view=customer]{--blue:#ed805b;--muted:#697681;--line:#e8e8eb;background:#f7f6f4;color:#20272e;font-family:"DM Sans",Arial,"PingFang SC",sans-serif;font-size:14px;min-height:100vh;display:flex;flex-direction:column}.portal-top{height:64px;padding:0 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.portal-top .brand{font-size:18px;gap:12px}.portal-top .brand-mark{width:32px;height:32px;border-radius:12px;font-size:16px;background:var(--blue)}.portal-top>div{display:flex;gap:24px;align-items:center;color:var(--muted);font-size:12px}.portal-top button{color:var(--muted);font-size:12px}body[data-view=customer] main{width:100%;max-width:728px;margin:0 auto;padding:48px 0;flex:1}.portal-heading{text-align:center;margin-bottom:32px}.portal-heading h1{font-size:22px;letter-spacing:0;line-height:1.4;margin:0 0 8px;font-weight:700}.portal-heading p{font-size:14px;margin:0;line-height:1.6}.portal-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}.portal-steps article{background:white;border:1px solid #efedef;border-radius:18px;padding:20px;box-shadow:0 10px 25px #242b3510}.portal-steps article>span{display:grid;place-items:center;width:32px;height:32px;background:#20272e;color:white;border-radius:12px;font-size:14px;font-weight:600;margin-bottom:12px}.portal-steps h3{font-size:14px;margin:0 0 4px;line-height:1.5}.portal-steps p{font-size:12px;line-height:1.65;margin:0}.portal-workspace{border-radius:18px;border-color:#efedef;padding:24px;box-shadow:0 12px 28px #242b350c}.portal-workspace .tabs{padding:0;gap:0}.portal-workspace .tabs button{flex:1;font-size:14px;padding:12px 4px;border-bottom-width:2px}.portal-workspace .panel-body{padding:24px 0 0}.portal-form-heading{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}.portal-form-heading>span{display:grid;place-items:center;width:40px;height:40px;border-radius:16px;background:var(--blue);color:white;font-size:12px;box-shadow:0 8px 18px #ed805b33}.portal-form-heading h2{font-size:20px;margin:0;line-height:1.5}.portal-form-heading p{margin:0;font-size:14px}.portal-meter{display:flex;gap:8px;margin:20px 0 24px}.portal-meter i{flex:1;height:6px;border-radius:8px;background:#e9e9eb}.portal-meter i.current{background:var(--blue)}.portal-workspace label:not(.check-label){font-weight:400;font-size:12px;color:var(--muted);margin:0 0 -8px 10px;position:relative;z-index:1;background:white;width:max-content;padding:0 5px}.portal-workspace input,.portal-workspace textarea{border-color:#e1e1e6;color:inherit;padding:17px 14px;background:transparent;border-radius:8px}.portal-workspace textarea{min-height:78px;font-family:inherit}.portal-workspace input::placeholder,.portal-workspace textarea::placeholder{color:#a6abb0}.portal-workspace .field-help{font-size:12px;margin:4px 14px 0}.portal-workspace .primary{border:0;font-weight:500;min-height:48px}.portal-workspace .primary:hover{background:#de714d}.portal-workspace .primary:disabled{background:#e2e7ea;color:#9da7b0;opacity:1;cursor:default}.portal-workspace .full{margin-top:20px}#replace-help{margin-top:22px;color:var(--muted);font-size:13px}#replace-help summary{cursor:pointer;list-style:none}#replace-help summary span{margin-left:5px}#replace-help p{line-height:1.8}.portal-workspace .verified{background:#fff5ef;border-color:#f2d9ca;overflow-wrap:anywhere}.portal-workspace .verified strong{word-break:break-all}.portal-workspace #redeem-form label{margin-top:20px}body[data-view=customer] footer{width:100%;max-width:none;margin:0;padding:24px;color:var(--muted);font-size:12px}body[data-view=customer] footer>span:first-child{color:var(--muted);font-weight:400}body.dark[data-view=customer]{background:#151719;color:#e6e7e9;--line:#33373b;--muted:#a2adb5}body.dark .portal-steps article,body.dark .portal-workspace{background:#202428;border-color:#33373b}body.dark .portal-workspace label:not(.check-label){background:#202428}body.dark .portal-workspace .verified{background:#322822}body.dark .portal-workspace input,body.dark .portal-workspace textarea{border-color:#45494e}body.dark .portal-top{background:#191c1f}
@media(max-width:780px){body[data-view=customer] main{padding:32px 16px}.portal-steps{gap:12px}.portal-steps article{padding:16px}.portal-heading h1{font-size:22px}}@media(max-width:600px){.portal-top{padding:0 16px}.portal-top>div{gap:14px}.portal-steps{grid-template-columns:1fr;gap:12px}.portal-steps article{display:grid;grid-template-columns:32px 1fr;column-gap:12px;padding:16px}.portal-steps article>span{grid-row:1/3;margin:0}.portal-steps p{grid-column:2}.portal-workspace{padding:20px}.portal-heading{margin-bottom:24px}.portal-steps{margin-bottom:24px}.portal-workspace .tabs button{font-size:13px}.portal-form-heading p{font-size:13px}}
body[data-view=customer]{--blue:#EC7E5B;--muted:#637381;color:#1C252E;font-family:"Microsoft YaHei","微软雅黑","PingFang SC","Hiragino Sans GB",-apple-system,system-ui,sans-serif;-webkit-font-smoothing:antialiased}body[data-view=customer] main{max-width:720px}.portal-heading h1{font-size:20px}.portal-form-heading h2{font-size:18px}.portal-steps article,.portal-workspace{border-radius:16px}.portal-steps article>span{width:30px;height:30px;background:#1C252E}.portal-workspace .tabs button{font-weight:600}@media(max-width:780px){.portal-heading h1{font-size:20px}}
.query-or{display:flex;align-items:center;gap:12px;margin:24px 0;color:var(--muted);font-size:12px}.query-or:before,.query-or:after{content:"";height:1px;flex:1;background:var(--line)}
.portal-workspace .query-count{text-align:right;font-size:12px;color:#919eab;margin:6px 0 0;font-variant-numeric:tabular-nums}.portal-workspace #batch-codes{line-height:23px;letter-spacing:.05em;height:auto;resize:none;padding:16px 14px}.query-detail{background:#efedea;border:1px solid var(--line);border-radius:16px;padding:20px;margin-top:20px}.query-row{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:14px;padding:16px 0;border-bottom:1px solid var(--line)}.query-row:first-child{padding-top:0}.query-row:last-child{padding-bottom:0;border-bottom:0}.query-row>span{color:var(--muted);flex-shrink:0}.query-row>strong{font-weight:600;text-align:right;overflow-wrap:anywhere;min-width:0}.query-alert{margin-top:20px;padding:16px;border-radius:16px;background:#fbe4da;color:#a8431f;font-size:14px;font-weight:600;line-height:1.6}.query-summary{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.query-batch-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:12px 16px;margin-top:10px}.query-batch-row>div{flex:1;min-width:0}.query-key{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.query-batch-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#919eab;margin-top:2px}.query-batch-row:hover{border-color:#919eab}.status-pill.available{background:#e3f4e9;color:#118d57}.status-pill.void,.status-pill.error{background:#ffe9d5;color:#b71d18}body.dark .query-detail{background:#28323d}body.dark .query-alert{background:#422f29;color:#f3a183}.portal-workspace #batch-query-form .primary,.portal-workspace #progress-form .primary{background:#1c252e}.portal-workspace #batch-query-form .primary:disabled,.portal-workspace #progress-form .primary:disabled{background:#e2e7ea;color:#919eab}body.dark .portal-workspace #batch-query-form .primary:not(:disabled),body.dark .portal-workspace #progress-form .primary:not(:disabled){background:#f4f6f8;color:#1c252e}
.portal-workspace .tabs button{height:44px;padding:10px 4px}.portal-workspace #batch-codes{font-size:15px;line-height:23px;padding:14px;min-height:76px}.portal-workspace #batch-codes::placeholder{font-size:15px;line-height:23px}.query-alert{display:flex;gap:12px;background:rgba(236,126,91,.12);padding:12px 16px;border-radius:16px;color:#d25e3a}.query-alert:before{content:"";flex-shrink:0;width:20px;height:20px;background:url('/static/query-warning.svg') center/20px no-repeat}.card-state{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;font-size:12px;font-weight:600;color:#637381}.card-state i{width:8px;height:8px;border-radius:50%;background:#919eab}.card-state.available{color:#118d57}.card-state.available i{background:#22c55e}.card-state.reserved{color:#b76e00}.card-state.reserved i{background:#ffab00}.card-state.void,.card-state.error{color:#b71d18}.card-state.void i,.card-state.error i{background:#ff5630}
