*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#111318;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.55}a{color:inherit;text-decoration:none}.topbar{max-width:1120px;margin:20px auto 26px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;font-size:19px}.brand-mark{width:42px;height:42px;border-radius:50%;background:#e7efd9;color:#72a52b;display:grid;place-items:center;font-size:27px}.header-right{display:flex;align-items:center;gap:10px}.topbar nav{display:flex;gap:4px;background:#eef0f3;padding:4px;border-radius:28px}.topbar nav a{padding:8px 15px;border-radius:22px;color:#737987;font-weight:650}.topbar nav a:hover,.topbar nav a:focus{background:#fff;color:#111}.theme-switch{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #e2e5e9;border-radius:28px;background:#f0f2f5}.theme-switch button{width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#747b88;font-size:17px;cursor:pointer}.theme-switch button.selected{background:#fff;color:#111;box-shadow:0 1px 4px #0001}.container{max-width:1120px;margin:auto;padding:0 22px}.panel{background:#fff;border:1px solid #e2e5e9;border-radius:24px;padding:26px;box-shadow:0 5px 18px #1720330b;margin-bottom:18px}.panel h1{font-size:25px;line-height:1.3;margin:0 0 10px}.panel h2{font-size:19px}.muted{color:#7b8290;line-height:1.6}.steps{display:flex;gap:10px;align-items:center;margin-bottom:30px;color:#7b8290;font-weight:650}.step{display:flex;align-items:center;gap:8px}.step i{font-style:normal;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eff1f4}.step.active{color:#111}.step.active i{background:#111318;color:white}.step-line{height:1px;background:#e2e5e9;width:42px}.field{margin:17px 0}.field label{display:block;font-weight:650;margin-bottom:7px}.input,textarea,select{width:100%;border:1px solid #dfe3e8;border-radius:14px;background:#f7f8fa;padding:13px 15px;font-size:15px;color:#20232a;outline:none}.input:focus,textarea:focus,select:focus{border-color:#9ab76b;background:#fff}textarea{min-height:108px;resize:vertical}.btn{border:0;background:#111318;color:#fff;border-radius:14px;padding:12px 19px;font-size:14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn:hover{opacity:.88}.btn.secondary{background:#eef0f3;color:#252a33}.btn.green{background:#6b9e2c}.btn.danger{background:#b83b43}.btn.full{width:100%}.actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.notice{padding:11px 14px;border-radius:13px;margin:0 0 15px;background:#eef4e7;color:#4d7e1d}.notice.error{background:#fff0f0;color:#b13b3b}.notice.info{background:#eef3fb;color:#42658e}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{background:#f7f8fa;border:1px solid #e8eaee;border-radius:15px;padding:16px}.stat strong{font-size:24px;display:block;margin-top:6px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px}th,td{text-align:left;padding:11px 10px;border-bottom:1px solid #edf0f3;vertical-align:top}th{color:#737987;font-weight:650;font-size:13px}.pill{display:inline-block;padding:4px 9px;border-radius:30px;background:#eff1f4;color:#737987;font-size:12px;font-weight:650;white-space:nowrap}.pill.completed{background:#e8f5eb;color:#398b50}.pill.processing{background:#fff5df;color:#9a741d}.pill.pending{background:#eaf1fb;color:#416caa}.pill.cancelled,.pill.disabled{background:#fff0f0;color:#b13b3b}.tabs{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0}.tabs a{padding:7px 12px;border-radius:22px;background:#f0f2f5;color:#737987;font-weight:650}.tabs a.active{background:white;color:#111;box-shadow:0 2px 7px #0001}.inline-form{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}.small{font-size:12px}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}.result-card{border:1px solid #e3e6ea;border-radius:16px;padding:15px;margin-top:10px}.result-card h3{margin:0 0 10px}.row{display:flex;justify-content:flex-start;align-items:center;gap:9px;padding:5px 0;flex-wrap:wrap}.row>span:first-child{color:#737987;min-width:34px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}footer{text-align:center;color:#a0a5ae;padding:24px 15px 36px;font-size:12px}.admin-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.admin-title h1{margin:0}.card-head{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:38px}.card-code-wrap{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.card-code-wrap .code{overflow-wrap:anywhere}.check-icon{width:23px;height:23px;border:2px solid #9299a5;border-radius:50%;display:grid;place-items:center;color:#737987;flex:none;font-size:13px}.chevron{font-size:19px;color:#7b8290;margin-left:3px}.card-details{border-top:1px solid #e7eaee;margin:12px -15px -15px;padding:10px 15px 14px}.order-link{display:inline-block;margin-top:7px;color:#6b9e2c;font-weight:700}.card-result[hidden]{display:none!important}.query-submit-icon{font-size:15px;line-height:1}.progress-top{display:flex;justify-content:space-between;gap:10px;color:#7b8290;font-size:13px;flex-wrap:wrap}.success-mark{width:190px;height:190px;margin:30px auto 24px;display:grid;place-items:center;border:9px solid #16a34a;border-radius:50%;animation:ring-in .65s ease-out both}.success-mark span{width:100px;height:100px;border-radius:50%;background:#16a34a;color:white;display:grid;place-items:center;font-size:62px;line-height:1;animation:pop-in .55s .2s cubic-bezier(.2,.8,.2,1) both}.success-mark span:after{content:"✓";animation:check-in .4s .45s ease-out both}.success-mark span{font-size:0}.progress-content{text-align:center;padding:0 0 4px}.progress-content h1{font-size:27px;margin:0 0 8px}.progress-account{font-size:16px;color:#7b8290}.progress-account b{color:#111318}.progress-track{display:flex;align-items:flex-start;justify-content:space-between;margin:30px 2px 24px;gap:4px}.progress-step{flex:1;text-align:center;color:#7b8290;font-size:13px;position:relative}.progress-step .dot{width:36px;height:36px;border-radius:50%;background:#16a34a;color:white;display:grid;place-items:center;margin:0 auto 8px;font-size:18px;position:relative;z-index:1}.progress-step:not(:last-child):after{content:"";position:absolute;height:5px;background:#65a30d;left:calc(50% + 19px);right:calc(-50% + 19px);top:16px;border-radius:8px}.progress-note{background:#f0f2f5;border-radius:16px;padding:13px 15px;text-align:left;color:#737987;margin:18px 0}.progress-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.copy-link{border:0;background:transparent;color:#737987;font-weight:650;padding:10px;cursor:pointer}.progress-actions .btn{border-radius:24px;padding:12px 20px}@keyframes ring-in{0%{transform:scale(.65);opacity:0}70%{transform:scale(1.05)}100%{transform:scale(1);opacity:1}}@keyframes pop-in{0%{transform:scale(.3);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes check-in{from{opacity:0;transform:scale(.5) rotate(-20deg)}to{opacity:1;transform:scale(1) rotate(0)}}
body[data-theme="dark"]{background:#11151b;color:#edf0f4}body[data-theme="dark"] .panel{background:#1b222c;border-color:#303946;box-shadow:none}body[data-theme="dark"] .topbar nav,body[data-theme="dark"] .theme-switch,body[data-theme="dark"] .stat,body[data-theme="dark"] .progress-note{background:#252d38;border-color:#384250}body[data-theme="dark"] .topbar nav a:hover,body[data-theme="dark"] .theme-switch button.selected{background:#384250;color:#fff}body[data-theme="dark"] .input,body[data-theme="dark"] textarea,body[data-theme="dark"] select,body[data-theme="dark"] .tabs a,body[data-theme="dark"] .result-card{background:#202833;border-color:#384250;color:#edf0f4}body[data-theme="dark"] .tabs a.active{background:#384250;color:#fff}body[data-theme="dark"] .progress-account b{color:#fff}body[data-theme="dark"] .row{border-color:#303946}body[data-theme="dark"] .brand-mark{background:#2c3924}body[data-theme="dark"] .btn.secondary{background:#384250;color:#edf0f4}
@media(max-width:700px){.topbar{margin:15px auto 19px;padding:0 14px;align-items:center;flex-wrap:nowrap;gap:8px}.brand{font-size:16px;gap:7px}.brand-mark{width:36px;height:36px;font-size:23px}.header-right{gap:5px}.topbar nav{gap:2px;padding:3px}.topbar nav a{padding:7px 10px;font-size:13px}.theme-switch{gap:0;padding:3px}.theme-switch button{width:28px;height:28px;font-size:15px}.container{padding:0 13px}.panel{padding:19px 16px;border-radius:21px;margin-bottom:14px}.panel h1{font-size:22px}.steps{margin-bottom:24px;gap:6px;font-size:13px}.step{gap:6px}.step i{width:29px;height:29px}.step-line{width:17px}.grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.btn{padding:11px 16px}.actions .btn{width:100%;text-align:center}.admin-title{align-items:flex-start;flex-direction:column}.card-head{gap:7px;flex-wrap:nowrap}.card-code-wrap{flex-basis:auto}.card-head>.pill{margin-left:auto}.card-details{margin-left:-15px;margin-right:-15px}.row{gap:7px}.row>span:first-child{min-width:34px}.progress-top{font-size:12px}.success-mark{width:150px;height:150px;border-width:8px;margin:25px auto 20px}.success-mark span{width:82px;height:82px}.progress-content h1{font-size:24px}.progress-account{font-size:14px}.progress-track{margin:25px 0 20px}.progress-step{font-size:11px}.progress-step .dot{width:31px;height:31px;font-size:16px;margin-bottom:6px}.progress-step:not(:last-child):after{height:4px;top:14px;left:calc(50% + 16px);right:calc(-50% + 16px)}.progress-note{font-size:13px;padding:11px 12px}.progress-actions{gap:4px}.progress-actions .btn{width:auto}.copy-link{font-size:13px}}

.detail-pair{justify-content:flex-start;gap:8px}.detail-pair b{margin-right:10px}.detail-pair>span:first-child{min-width:auto} .detail-pair .pill{margin-right:6px}

@media(prefers-color-scheme:dark){body[data-theme="system"]{background:#11151b;color:#edf0f4}body[data-theme="system"] .panel{background:#1b222c;border-color:#303946;box-shadow:none}body[data-theme="system"] .topbar nav,body[data-theme="system"] .theme-switch,body[data-theme="system"] .stat,body[data-theme="system"] .progress-note{background:#252d38;border-color:#384250}body[data-theme="system"] .topbar nav a:hover,body[data-theme="system"] .theme-switch button.selected{background:#384250;color:#fff}body[data-theme="system"] .input,body[data-theme="system"] textarea,body[data-theme="system"] select,body[data-theme="system"] .tabs a,body[data-theme="system"] .result-card{background:#202833;border-color:#384250;color:#edf0f4}body[data-theme="system"] .tabs a.active{background:#384250;color:#fff}body[data-theme="system"] .progress-account b{color:#fff}body[data-theme="system"] .brand-mark{background:#2c3924}body[data-theme="system"] .btn.secondary{background:#384250;color:#edf0f4}}

/* v4 compact visual refinement */
.brand-image{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.brand-mark{overflow:hidden;flex:none}
.topbar{margin-top:18px;margin-bottom:22px}
.header-right{margin-left:auto;justify-content:flex-end}
.theme-switch{flex:none}
.query-submit-icon,.copy-icon{display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.12em}
.btn{line-height:1.35}
.result-card{padding:13px 14px}
.card-details{font-size:13px;text-align:left}
.card-details .row{justify-content:flex-start;text-align:left}
.detail-pair{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:nowrap}
.detail-pair .detail-label{min-width:0!important;color:#737987;white-space:nowrap}
.detail-pair b{font-size:13px;margin-right:10px;font-weight:650}
.detail-pair .pill{margin-right:5px}
#copy-unused svg{width:1em;height:1em;display:inline-block;flex:none;stroke:currentColor;vertical-align:-.12em}
.progress-panel{padding:24px 26px 25px}
.progress-top{font-size:13px;align-items:center}
.success-mark{width:176px;height:176px;border-width:8px;margin:27px auto 23px;position:relative;animation:ring-in .7s cubic-bezier(.2,.75,.25,1) both}
.success-mark:before{content:"";position:absolute;inset:-9px;border:2px solid #16a34a;border-radius:50%;opacity:0;animation:ring-pulse 1.1s .55s ease-out both}
.success-core{width:94px;height:94px;border-radius:50%;background:#16a34a;color:white;display:grid;place-items:center;animation:core-pop .55s .18s cubic-bezier(.2,.8,.2,1) both}
.success-core svg{width:52px;height:52px;overflow:visible}
.success-check{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:60;stroke-dashoffset:60;animation:draw-check .55s .52s ease-out forwards}
.state-pending{border-color:#9aa2ad;animation:none}
.state-pending .success-core{background:#9aa2ad;animation:none}
.pending-dots{font-size:28px;letter-spacing:2px;animation:dots-pulse 1.2s ease-in-out infinite}
.state-cancel{border-color:#d05b62;animation:none}
.state-cancel .success-core{background:#d05b62;animation:none;font-size:52px}
.progress-content h1{font-size:25px;margin:0 0 7px}
.progress-account{font-size:15px;line-height:1.5}
.progress-account span{color:#111318;font-weight:650;margin-left:4px}
.progress-track{margin:27px 3px 21px;gap:2px}
.progress-step{font-size:13px}
.progress-step .dot{width:34px;height:34px;font-size:17px;background:#e8ebef;color:#858d99}
.progress-step.is-done .dot{background:#16a34a;color:#fff}
.progress-step:not(:last-child):after{height:5px;background:#e1e5e9;top:15px}
.progress-step.is-done:not(:last-child):after{background:#65a30d}
.progress-note{font-size:14px;line-height:1.65;padding:13px 15px;margin:17px 0}
.copy-link{display:inline-flex;align-items:center;gap:7px;font-size:14px}
.copy-link svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@keyframes ring-pulse{0%{transform:scale(.9);opacity:.55}100%{transform:scale(1.18);opacity:0}}
@keyframes core-pop{0%{transform:scale(.55);opacity:0}75%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@keyframes draw-check{to{stroke-dashoffset:0}}
@keyframes dots-pulse{0%,100%{opacity:.55}50%{opacity:1}}
@media(max-width:700px){
 .topbar{margin:13px auto 17px;padding:0 12px;gap:6px}
 .brand{font-size:15px;gap:6px;min-width:0}
 .brand-mark{width:34px;height:34px;font-size:21px}
 .header-right{gap:5px}
 .topbar nav a{padding:6px 9px;font-size:12px}
 .theme-switch{padding:2px;gap:0}
 .theme-switch button{width:27px;height:27px;font-size:14px}
 .progress-panel{padding:18px 15px 19px}
 .progress-top{font-size:11px;gap:6px}
 .success-mark{width:146px;height:146px;border-width:7px;margin:23px auto 18px}
 .success-mark:before{inset:-8px}
 .success-core{width:78px;height:78px}
 .success-core svg{width:43px;height:43px}
 .progress-content h1{font-size:22px}
 .progress-account{font-size:13px;overflow-wrap:anywhere}
 .progress-track{margin:23px 0 18px;gap:0}
 .progress-step{font-size:11px;line-height:1.35}
 .progress-step .dot{width:30px;height:30px;font-size:15px;margin-bottom:6px}
 .progress-step:not(:last-child):after{height:4px;top:13px;left:calc(50% + 16px);right:calc(-50% + 16px)}
 .progress-note{font-size:13px;padding:10px 12px;margin:14px 0}
 .progress-actions{gap:3px}
 .progress-actions .btn{padding:10px 14px;font-size:13px}
 .copy-link{font-size:12px;padding:8px 5px}
 .copy-link svg{width:15px;height:15px}
 .detail-pair{gap:5px;font-size:12px}
 .detail-pair b{font-size:12px;margin-right:5px;overflow-wrap:anywhere}
 .card-details{font-size:12px}
 .card-details .row{font-size:12px;gap:6px}
 #copy-unused{font-size:13px;padding:9px 12px}
}
@media(prefers-reduced-motion:reduce){.success-mark,.success-core,.success-check,.success-mark:before,.pending-dots{animation:none!important}.success-check{stroke-dashoffset:0}}


/* v5: clear active navigation, two-state theme control, uploaded logo and refined query cards */
.topbar nav.main-nav .nav-link{color:#747b88;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.topbar nav.main-nav .nav-link.active{background:#fff;color:#111318;box-shadow:0 2px 7px #00000012}
.topbar nav.main-nav .nav-link:not(.active):hover{background:#e3e6eb;color:#222833}
.theme-switch{gap:4px;padding:4px;background:#eef0f3;border:1px solid #e0e4e9}
.theme-switch button{width:34px;height:34px;display:grid;place-items:center;color:#7b8290;transition:all .2s ease}
.theme-switch button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-switch button.selected{background:#fff;color:#111318;box-shadow:0 2px 7px #00000018;transform:scale(1.04)}
.brand-image{object-fit:contain;padding:2px;background:#fff}
.logo-preview{display:flex;align-items:center;gap:12px;margin-top:12px;color:#737987;font-size:13px}
.logo-preview img{width:54px;height:54px;object-fit:contain;border:1px solid #e5e8ec;border-radius:13px;padding:4px;background:#fff}
.remove-logo{display:flex!important;align-items:center;gap:7px;margin-top:9px;font-size:13px;color:#8b5353}
.result-card{overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease}
.result-card:has(.card-head[aria-expanded="true"]){border-color:#d4dfc6;box-shadow:0 5px 16px #24351a0a}
.card-head{min-height:40px}
.check-icon{border:0;background:#edf5e7;color:#6b9e2c;width:25px;height:25px}
.check-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.chevron{width:27px;height:27px;border-radius:50%;background:#f2f4f6;display:grid;place-items:center;margin-left:4px;transition:transform .2s ease,background .2s ease}
.chevron svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chevron.is-open{transform:rotate(180deg);background:#e9f1e2;color:#63952a}
.card-details{background:#fcfcfd}
.card-details .row{min-height:29px}
.order-link{display:inline-flex;align-items:center;gap:6px;padding:5px 0;font-size:13px}
.order-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-theme="dark"] .topbar nav.main-nav .nav-link.active{background:#384250;color:#fff;box-shadow:none}
body[data-theme="dark"] .topbar nav.main-nav .nav-link:not(.active):hover{background:#303a47;color:#fff}
body[data-theme="dark"] .theme-switch button.selected{background:#465263;color:#fff}
body[data-theme="dark"] .check-icon{background:#2d4029;color:#a8d77a}
body[data-theme="dark"] .chevron{background:#303a47}
body[data-theme="dark"] .chevron.is-open{background:#34472c;color:#b5dc8c}
body[data-theme="dark"] .card-details{background:#1d2530}
@media(max-width:700px){
 .header-right{gap:6px}
 .theme-switch{padding:3px;gap:2px}
 .theme-switch button{width:30px;height:30px}
 .theme-switch button svg{width:17px;height:17px}
 .topbar nav.main-nav .nav-link{padding:7px 11px}
 .logo-preview img{width:48px;height:48px}
 .result-card{padding:12px}
 .card-details{margin-left:-12px;margin-right:-12px;margin-bottom:-12px;padding:10px 12px 12px}
 .card-head>.pill{margin-left:auto}
 .chevron{width:25px;height:25px}
}
