/* Readable blue-violet customer interface · 2026-10-25 UI03 */
:root{color-scheme:light;--ink:#17243d;--muted:#5c6d87;--blue:#315fe9;--violet:#7155eb;--border:#dce5f5;--page:#f4f7fd}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(ellipse at 8% 0%,#d5e9ff99,transparent 48%),radial-gradient(ellipse at 95% 8%,#e4dcff80,transparent 44%),linear-gradient(180deg,#f7faff,#f3f6fc);background-attachment:scroll;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,"Noto Sans SC",sans-serif;font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button,a,input{touch-action:manipulation}
button{cursor:pointer}a{color:inherit;text-decoration:none}
main,footer{max-width:1080px;margin:auto}
main{padding:40px 32px 28px}
.layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:32px;align-items:start}
.content-stack{display:grid;gap:24px;min-width:0}
.browser-notice{display:flex;align-items:center;justify-content:center;height:278px;padding:20px 24px;border-color:#ecd39c!important;background:#fffaf0!important;color:#d92d20}
.browser-notice h2{margin:0;font-size:32px;font-weight:700;line-height:1.8;color:#d92d20;letter-spacing:0;text-align:center}
.browser-notice h2 span{display:block}
.card{position:relative;min-width:0;background:#fffffff5;border:1px solid #dce5f5;border-radius:18px;box-shadow:0 12px 36px #3457a20a,0 2px 6px #3457a205}
.application-card,.orders{padding:28px}
.orders{--label-width:160px}
.application-card{--control-width:134px;--label-width:160px;--code-indent:calc(var(--label-width) + 20px)}
.application-card:before{content:"";position:absolute;top:-1px;left:28px;right:28px;height:3px;border-radius:4px;background:linear-gradient(90deg,#4179f4,#7972f5 62%,#4cc8dc);opacity:.85}
.form-section{min-width:0}
#stepPlan{padding-bottom:20px;border-bottom:1px solid #e5ecf8}
.copy-section,.account-section,.submit-section{padding-top:20px}
.account-section{padding-top:32px}
.plan-heading,.copy-heading{display:grid;grid-template-columns:var(--label-width) minmax(0,1fr);align-items:center;gap:20px}
.copy-heading{align-items:end}
.section-title{display:flex;align-items:center;gap:12px;min-width:0}
h2{margin:0;font-size:20px;line-height:1.5;font-weight:650;letter-spacing:-.3px}
.application-card h2{font-weight:500}
.account-heading{display:grid;grid-template-columns:var(--label-width) minmax(0,1fr) max-content;align-items:end;gap:20px;margin-bottom:12px}
.section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.section-top>div{display:flex;align-items:center;gap:12px;min-width:0}
.number{display:block;flex:none;width:30px;height:46px;padding:0;border:0;border-radius:0;background:none;color:#3158bb;font-family:Arial,Helvetica,sans-serif;font-size:36px;line-height:46px;font-weight:600;font-variant-numeric:tabular-nums;text-align:center}
.form-step-label{justify-content:flex-end;align-self:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.text-button{padding:5px 0;border:0;background:none;color:var(--blue);font-size:14px;white-space:nowrap}
.text-button:hover{color:#7147df}
#clear{color:var(--blue)}
.step-sidebar{position:sticky;top:40px;min-width:0;padding:8px 0}
.step-nav{list-style:none;display:grid;gap:22px;margin:0;padding:0}
.step-link{position:relative;display:flex;align-items:start;gap:12px;padding:12px 8px;border-radius:12px;cursor:default}
.step-link:not(:last-child):after{content:"";position:absolute;left:22px;top:53px;height:27px;width:2px;background:linear-gradient(#ccdafa,#e4e9f8)}
.step-dot{display:grid;place-items:center;flex:none;position:relative;z-index:1;width:30px;height:30px;margin-top:1px;border:1px solid #ccd8f1;border-radius:50%;background:#f8faff;color:#657897;font-size:14px;font-weight:600}
.step-copy{min-width:0}
.step-plan .step-copy{padding-left:42px}
.step-link.step-plan:after{display:none}
.step-copy b{display:block;color:#50617e;font-size:15px;line-height:1.6;font-weight:550}
.step-copy small{display:block;margin-top:4px;color:#687b99;font-size:13px;line-height:1.6}
.step-link.active{background:linear-gradient(110deg,#e6f0ff,#eceaff66)}
.step-link.active .step-dot{border-color:transparent;background:linear-gradient(135deg,#3b82f6,#7360ee);color:#fff;box-shadow:0 4px 12px #446de62b}
.step-link.active .step-copy b{color:#2549a0;font-weight:650}
.step-note{margin:22px 8px 0;padding-top:18px;border-top:1px solid #d8e2f3;font-size:13px;line-height:1.85;color:#647590}
.plans{display:grid;grid-template-columns:repeat(2,var(--control-width));gap:12px;width:max-content;max-width:100%;min-width:0}
.plan{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:11px 14px;min-height:48px;border:1px solid #d7e1f2;border-radius:10px;cursor:pointer;background:#fff;font-size:15px;font-weight:600;white-space:nowrap;transition:border-color .15s,box-shadow .15s,background .15s}
.plan:hover{border-color:#96acf3;background:#f9fbff}
.plan:has(input:checked){border-color:#6b8ff4;background:linear-gradient(120deg,#edf5ff,#f3efff);color:#284cba;box-shadow:0 0 0 3px #eaf0ff}
.plan input{width:18px;height:18px;margin:0;accent-color:var(--blue);flex:none}
.copy-row{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:end;gap:16px;min-width:0}
.copy-code{display:inline-flex;align-items:center;justify-content:center;justify-self:start;gap:10px;width:var(--control-width);min-width:0;min-height:46px;padding:10px 16px;border:1px solid #cbdafa;border-radius:10px;background:linear-gradient(120deg,#eef6ff,#f2efff);color:#3158bb;font-size:15px;font-weight:600;box-shadow:0 3px 10px #3e6fea08}
.copy-code:hover{background:linear-gradient(120deg,#e5f1ff,#eae6ff);border-color:#9bb3f3}
.paste-code{color:#73819a;border-color:#dce2ed;background:#f1f4f9;box-shadow:none;font-weight:500}
.paste-code:hover{color:#516c9d;border-color:#becce4;background:#eaf0f9}
.paste-code[data-clipboard="ready"]{color:#3158bb;border-color:#b6cafa;background:linear-gradient(120deg,#eef6ff,#f2efff);box-shadow:0 3px 10px #3e6fea08;font-weight:600}
.paste-code:disabled{cursor:wait;opacity:.65}
.copy-actions{display:flex;align-items:center;gap:18px;min-width:0;justify-self:start}.copy-actions .copy-code{flex:none}.example-link{color:#e5484d;font-size:16px;white-space:nowrap}.example-link:hover{color:#c53138;text-decoration:underline}
.example-dialog{width:calc(100% - 24px);max-width:1040px;max-height:90vh;overflow:auto;padding:18px;border:1px solid var(--border);border-radius:14px;color:var(--ink);background:#fff;box-shadow:0 18px 60px #17243d33}.example-dialog:not([open]){display:none}.example-dialog::backdrop{background:#17243d99}.example-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.example-heading h2{font-size:18px}.example-heading>div{display:flex;align-items:center;gap:18px}.example-dialog img{display:block;width:100%;height:auto}
.copy-hint{margin:0;color:#586d90;font-size:14px;line-height:1.85}
.copy-hint span{display:inline-block;white-space:nowrap}
textarea{display:block;width:100%;height:128px;min-height:128px;max-height:360px;resize:vertical;padding:14px 16px;border:1px solid #cfdcf1;border-radius:12px;background:linear-gradient(135deg,#fcfeff,#fafbff);color:var(--ink);font-size:16px;line-height:1.7;overflow-wrap:anywhere;transition:border-color .15s,box-shadow .15s}
#credential{margin-left:var(--code-indent);width:calc(100% - var(--code-indent))}
#translationWarning{margin-left:var(--code-indent)}
textarea::placeholder{color:#7385a2}
textarea:focus{border-color:#7098f6;box-shadow:0 0 0 3px #e8f0ff}
textarea:focus,input:focus,button:focus-visible,a:focus-visible{outline:2px solid #a4bdf7;outline-offset:3px}
.submission-details{display:grid;gap:14px;min-width:0;margin-left:var(--code-indent)}
.email-preview{display:flex;align-items:baseline;min-width:0;font-size:16px;line-height:1.7}
.email-label{flex:none;color:#536b8c}
.email-preview strong{min-width:0;font-size:15px;font-weight:400;color:#5f7290;overflow-wrap:anywhere}
.email-preview strong.recognized{font-size:18px;font-weight:600;color:#254779}
.apple-email-note{margin:-5px 0 0;padding:9px 12px;border-left:3px solid #93b1f4;border-radius:0 7px 7px 0;background:#f1f6ff;color:#526d96;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.translation-warning{padding:12px 14px;margin:12px 0;border:1px solid #efc8c3;border-radius:10px;background:#fff6f5;color:#ac3028;font-size:14px;line-height:1.7}
.consent{display:flex;align-items:start;gap:10px;margin:0;padding:0;border:0;background:transparent;text-align:left;font-size:13px;line-height:1.8;color:#48648d;cursor:pointer}
.consent input{appearance:none;-webkit-appearance:none;position:relative;width:22px;height:22px;margin:1px 0 0;border:2px solid #6b8ff4;border-radius:6px;background:#edf3ff;accent-color:var(--blue);flex:none;cursor:pointer}
.consent input:checked{border-color:transparent;background:linear-gradient(120deg,#2877ef,#7155eb);box-shadow:0 2px 6px #3c69df24}
.consent input:checked:after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.consent input:focus-visible{outline:3px solid #a4bdf7;outline-offset:3px}
.consent input:disabled{opacity:.55;cursor:not-allowed}
.form-actions{position:relative;display:flex;justify-content:flex-start}.submit-number{position:absolute;right:calc(100% + 20px);top:50%;transform:translateY(-50%)}
.consent-row{position:relative}.consent-row .submit-number{top:0;height:24px;line-height:24px;transform:none}
.primary{display:flex;align-items:center;justify-content:center;width:160px;min-width:160px;min-height:48px;padding:11px 20px;border:0;border-radius:10px;background:linear-gradient(110deg,#2877ef,#565be9 72%,#7662ec);color:#fff;font-size:16px;font-weight:600;box-shadow:0 6px 18px #3c69df29;transition:box-shadow .15s,background .15s}
.primary:hover{background:linear-gradient(110deg,#1f67d9,#5b4fdf);box-shadow:0 8px 22px #3c69df36}
.primary:disabled,.primary:disabled:hover{background:#c8d2df;color:#f8fafc;cursor:not-allowed;box-shadow:none}
.privacy{margin:0;color:#627593;font-size:13px;line-height:1.8}
.secondary{min-height:40px;padding:8px 13px;border:1px solid #d4def1;border-radius:9px;background:#fff;color:#3e5e9b;font-size:14px}
.secondary:hover{background:#f0f5ff;border-color:#a8bdf0;color:#3157b1}
.notice{padding:12px 14px;margin:12px 0;border:1px solid #eddbb7;border-radius:10px;background:#fff9ed;color:#805b17;font-size:14px}
.orders .section-top{margin-bottom:18px}
.orders>.section-top{flex-wrap:wrap}
.orders .orders-heading{display:grid;grid-template-columns:var(--label-width) minmax(0,1fr);gap:6px 20px;flex:1}
.order-account-warning{color:#d92d20;font-size:15px;font-weight:600;line-height:1.6}
.empty{padding:24px 16px;border:1px dashed #d8e3f6;border-radius:12px;background:linear-gradient(120deg,#f5f9ff,#f8f7ff);color:#657b9d;text-align:center;font-size:15px}
.order{padding:20px 0;border:0;border-bottom:1px solid #e1e9f6;margin:0}
.order:first-child{padding-top:0}
.order:last-child{border-bottom:0;padding-bottom:0}
.order-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.order h3{margin:0;font-size:16px;line-height:1.6;font-weight:650;overflow-wrap:anywhere;color:#233f6d}
.order .meta{margin-top:3px;color:#687b98;font-size:13px;overflow-wrap:anywhere}
.order .order-date{margin-top:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.state{padding:4px 10px;border:1px solid #dce6fa;border-radius:7px;background:#edf3ff;color:#4e6b9c;font-size:13px;line-height:1.6;white-space:nowrap}
.state-completed{border-color:#cfebdf;background:#eaf8f1;color:#237957}
.state-attention,.state-await_credentials{border-color:#f1dfb8;background:#fff6e5;color:#93621c}
.state-rejected{border-color:#e0e5ef;background:#f2f5fa;color:#61728d}
.order p{margin:12px 0 8px;font-size:15px;color:#536c91}
.order-status{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:18px 0 20px;color:#536c91;font-size:14px}
.order-percent{flex:none;font-size:16px;font-variant-numeric:tabular-nums;color:#3158bb}
.order-progress-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;column-gap:12px}
.order-progress-row>.order-percent{display:flex;align-items:center;justify-content:flex-end;height:35px;min-width:3ch;line-height:1}
.order-progress{position:relative;padding-top:1px}
.order-progress .track{position:absolute;left:12.5%;right:12.5%;top:15px;height:5px;background:#e5edfb;border-radius:5px;overflow:hidden}
.fill{height:100%;background:linear-gradient(90deg,#3b82f6,#8569f0);border-radius:5px;transition:width .4s}
.order-phases{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0}
.order-phases li{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;color:#687b98;text-align:center}
.phase-mark{display:grid;place-items:center;box-sizing:border-box;width:33px;height:33px;border-radius:50%;background:#e8eef9;color:#687b98;box-shadow:0 0 0 5px #fff;font-size:14px;font-weight:500}
.phase-label{font-size:14px;white-space:nowrap}
.is-done .phase-mark{background:#3879ee;color:#fff}
.is-active .phase-mark{background:linear-gradient(135deg,#3b82f6,#8569f0);color:#fff;box-shadow:0 0 0 5px #e8edff}
.is-active .phase-label{color:#3158bb;font-weight:500}
.order-completed .fill{background:linear-gradient(90deg,#3b82f6,#2b9b7a)}
.order-completed .is-done .phase-mark{background:#2b9b7a}
.order-attention .order-status,.order-attention .is-active .phase-label{color:#93621c}
.order-timing{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 32px;margin-top:20px;color:#687b98;font-size:15px}
.order-elapsed{font-variant-numeric:tabular-nums;white-space:nowrap;color:#536c91}
.order-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
footer{display:flex;gap:16px;padding:0 32px 28px;font-size:13px;color:#6c80a0}
#toast{position:fixed;z-index:5;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 18px;border:1px solid #344666;border-radius:12px;background:#1d2e49;color:#fff;font-size:14px;box-shadow:0 8px 28px #24477e26}
#toast.large{font-size:24px;line-height:1.5;padding:14px 20px}
[hidden]{display:none!important}
@media(max-width:900px){
 main{padding:24px 24px 28px}.layout{grid-template-columns:1fr;gap:24px}
 .step-sidebar{position:static;padding:0}.step-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 .step-link{align-items:center;gap:10px;padding:10px}.step-link:not(:last-child):after,.step-note,.step-copy small{display:none}
 .step-copy b{font-size:14px;white-space:nowrap}
 .application-card,.orders{--label-width:150px}
 .step-plan .step-copy{padding-left:0}.step-link.step-plan{justify-content:center}
}
@media(max-width:600px){
 main{padding:20px 16px 24px}.layout{gap:20px}.content-stack{gap:20px}
 .step-nav{gap:6px}.step-link{flex-direction:column;gap:7px;padding:8px 2px}.step-dot{width:28px;height:28px;margin:0;font-size:13px}.step-copy b{font-size:13px}
 .application-card,.orders{padding:20px}.card{border-radius:15px}.application-card:before{left:20px;right:20px}
 h2{font-size:19px}.number{width:30px;height:46px;font-size:36px;line-height:46px}
 #stepPlan{padding-bottom:18px}.copy-section,.account-section,.submit-section{padding-top:18px}
 .account-section{padding-top:28px}
 .application-card{--control-width:min(134px,calc((100vw - 84px)/2));--code-indent:42px}
 .orders .orders-heading{grid-template-columns:minmax(0,1fr)}
 .plan-heading,.copy-heading{grid-template-columns:1fr;gap:13px}.plans{gap:10px}.plan{min-height:48px;padding:10px;font-size:15px;gap:8px}
 #stepCopy .copy-heading{grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:start}.form-step-label{align-self:start;padding-top:0}
 .account-heading{grid-template-columns:30px minmax(0,1fr) max-content;gap:12px}
 .account-heading .section-title{grid-column:1;grid-row:1}.account-heading .paste-code{grid-column:2;grid-row:1}.account-heading #clear{grid-column:3;grid-row:1}
 .submit-number{right:calc(100% + 12px)}
 .copy-row{grid-template-columns:1fr;gap:10px}.copy-code{min-height:46px;font-size:15px;padding-inline:8px;gap:8px;white-space:nowrap}.copy-hint{font-size:14px;line-height:1.8}
 textarea{height:128px;min-height:128px;padding:12px;font-size:16px}
 .email-preview strong{font-size:16px}.email-preview strong.recognized{font-size:18px}
 .primary{width:132px;min-width:132px;min-height:48px;padding:10px 12px;font-size:16px}
 .consent{font-size:13px}
 .privacy{font-size:13px}.order-head{gap:10px}.order h3{font-size:16px}.order .meta{font-size:13px}
 .state{padding:3px 7px;font-size:13px}.secondary{min-height:42px}.order p{font-size:15px}
 .order-status{font-size:13px;gap:10px}.phase-label{font-size:13px}
 footer{padding:0 18px 24px;font-size:13px}
}
@media(max-width:360px){.primary{width:112px;min-width:112px}.order-progress-row{column-gap:8px}.phase-label{white-space:normal}}
@media(prefers-reduced-motion:reduce){.plan,.fill,textarea,.primary{transition:none}}
@media(forced-colors:active){.consent input{appearance:auto;-webkit-appearance:auto;background:none;forced-color-adjust:auto}.consent input:checked:after{display:none}}

/* Three choices; other reuses the existing manual workflow. */
.plans{grid-template-columns:var(--control-width) 84px 76px;gap:10px}.plan.plan-compact{padding:10px 8px;gap:6px;font-size:14px}.plan.plan-compact input{width:16px;height:16px}
@media(max-width:600px){.plans{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.85fr);width:100%;gap:8px}.plans .plan{padding-inline:6px;gap:6px;font-size:14px}}
@media(max-width:360px){.plans .plan,.plans .plan.plan-compact{padding-inline:6px;gap:4px;font-size:13px}}
