:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#202c40;background:#f5f7fb;font-size:15px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:76px;max-width:1080px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}header>span{font-size:13px;color:#778398}.brand{display:flex;align-items:center;gap:12px;font-size:19px}.brand-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:white;background:#3267e8;font-size:19px}main{max-width:740px;margin:32px auto;padding:0 24px}.steps{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:#8a95a5;font-size:13px}.steps span{display:flex;align-items:center;gap:7px;white-space:nowrap}.steps b{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e7ebf3;font-weight:500}.steps span.active{color:#245edf}.steps span.active b{background:#3267e8;color:white}.steps i{height:1px;background:#dce2ee;flex:1;min-width:10px}.card{background:#fff;border:1px solid #e5eaf3;border-radius:18px;padding:34px;box-shadow:0 8px 40px #1f396905}h1{font-size:24px;margin:0 0 10px;line-height:1.4;letter-spacing:-.3px}.subtitle{color:#748095;line-height:1.7;margin:0 0 28px}form{display:flex;flex-direction:column;gap:12px}label{color:#344056;font-weight:500}em{font-style:normal;color:#cd4d58}input{font:inherit;background:white;border:1px solid #d6dfed;border-radius:8px;min-height:44px;padding:10px 12px;width:100%;color:#24324a;outline:none}input:focus{border-color:#4e7feb;box-shadow:0 0 0 3px #3267e812}button{font:inherit;font-weight:500;border-radius:8px;border:1px solid transparent;padding:11px 20px;cursor:pointer;transition:background .15s;min-height:44px}button:disabled{opacity:.55;cursor:default}.primary{color:#fff;background:#3267e8}.primary:hover:not(:disabled){background:#2357d4}.secondary{background:#f4f7fc;border-color:#dce4f2;color:#42608e}.hint{font-size:12px;line-height:1.7;color:#8590a2;margin:4px 0 10px}#connect-form button,#domain-form button{align-self:flex-start;min-width:130px;margin-top:8px}.profile-form{display:grid;grid-template-columns:110px minmax(0,1fr);gap:22px 18px}.profile-form>label{padding-top:12px;font-size:14px}.profile-form>input{align-self:start}.password-row{display:flex;gap:8px}.password-row input{min-width:0;font-size:14px}.password-row button{white-space:nowrap;padding:8px 12px;font-size:13px}.form-actions{grid-column:2;display:flex;flex-direction:column;align-items:flex-start;gap:18px}.check{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:400}.check input{width:15px;min-height:15px;accent-color:#3267e8}.form-actions button{min-width:150px}.notice{background:#eaf1ff;border:1px solid #cdddfb;border-radius:8px;padding:11px 14px;margin-bottom:22px;color:#46699d;font-size:13px}.error{margin-top:16px;background:#fff0f1;color:#ab3e4e;border:1px solid #f4d6dc;border-radius:10px;padding:14px;line-height:1.6;font-size:14px}.retry{margin-top:12px}.progress-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.progress-heading strong{color:#3267e8;font-size:24px;font-weight:600}.progress-heading h1{font-size:21px;margin:0}progress{width:100%;height:10px;border:0;border-radius:9px;overflow:hidden;background:#eef2f8;margin:24px 0 15px}progress::-webkit-progress-bar{background:#eef2f8}progress::-webkit-progress-value{background:#3267e8;border-radius:9px;transition:width .4s}progress::-moz-progress-bar{background:#3267e8}.current-step{display:flex;align-items:flex-start;gap:9px;line-height:1.7;margin:0 0 16px}.current-step:before{content:"";width:14px;height:14px;border:2px solid #d9e4fc;border-top-color:#3267e8;border-radius:50%;flex-shrink:0;margin-top:5px;animation:spin 1s linear infinite}details{border-top:1px solid #edf0f6;padding-top:17px;margin-top:22px}summary{cursor:pointer;color:#64748b;font-size:13px}.events{padding:0;list-style:none;max-height:220px;overflow:auto;font-size:12px;color:#778499;line-height:1.7}.events li{padding:5px 0;border-bottom:1px solid #f2f4f8;overflow-wrap:anywhere}.events time{color:#9aa5b5;margin-right:8px}.preview-button{display:block;background:none;margin:18px auto;color:#6880a6;font-size:12px;min-height:36px;padding:5px}.success-mark{display:grid;place-items:center;color:#247654;background:#eaf8f0;border-radius:50%;width:46px;height:46px;font-size:26px;margin-bottom:18px}footer{text-align:center;color:#99a3b1;font-size:12px;margin:32px 20px} [hidden]{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:479px){header{height:64px;padding:0 20px}.brand{font-size:17px;gap:9px}.brand-icon{width:32px;height:32px}main{margin:22px auto;padding:0 16px}.card{padding:24px 20px;border-radius:14px}h1{font-size:22px}.steps{gap:6px;font-size:11px;margin-bottom:22px}.steps span{gap:4px}.steps b{width:20px;height:20px}.steps i{min-width:4px}.profile-form{grid-template-columns:1fr;gap:10px}.profile-form>label{padding-top:8px}.form-actions{grid-column:1;margin-top:10px}.password-row{flex-wrap:wrap}.password-row input{flex:1 1 180px;font-size:16px}.password-row button{margin-left:auto}.subtitle{margin-bottom:20px;font-size:14px}input{font-size:16px}#continue-secure{width:100%}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}

/* 四阶段在手机上分两行，保持步骤名称完整可读。 */
.steps{display:grid;grid-template-columns:auto minmax(4px,1fr) auto minmax(4px,1fr) auto minmax(4px,1fr) auto;gap:8px;font-size:12px}
.steps span.done{color:#496faa}.steps span.done b{background:#e4edff;color:#3267e8}
.button-spinner{display:inline-block;width:15px;height:15px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@media(max-width:599px){.steps{grid-template-columns:1fr 1fr;gap:12px 18px}.steps i{display:none}.steps span{gap:7px;font-size:12px}}

/* 组件列表与原始日志分开：完成靠真实信号，等待动画不冒充百分比。 */
.component-panel{margin-top:22px;border:1px solid #e5ebf5;border-radius:12px;overflow:hidden;background:#fff}
.component-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7f9fd;padding:12px 16px;font-size:13px}
.component-heading strong{font-size:14px;font-weight:600}.component-heading>span{color:#7a879c;font-size:12px}
.component-list{list-style:none;margin:0;padding:0 16px;max-height:450px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.component-row{display:grid;grid-template-columns:19px minmax(0,1fr) auto;gap:10px;align-items:start;padding:13px 0;border-bottom:1px solid #edf1f7;min-height:53px}
.component-row:last-child{border-bottom:0}.component-symbol{width:17px;height:17px;margin-top:2px;border:1.5px solid #d6deeb;border-radius:50%;display:grid;place-items:center;color:#99a7ba;font-size:11px;font-weight:600}
.component-main{min-width:0}.component-name{display:block;font-size:13px;line-height:21px;color:#77859a;overflow-wrap:anywhere}.component-detail{display:block;font-size:11px;line-height:18px;color:#93a0b2;margin-top:2px;overflow-wrap:anywhere}
.component-end{text-align:right;white-space:nowrap;display:flex;flex-direction:column;gap:4px;padding-top:2px}.component-status{font-size:11px;line-height:17px;color:#9aa6b8}.component-time{font-size:10px;line-height:15px;color:#9aa6b8}
.component-row[data-status=running] .component-symbol{border-color:#dae5fe;border-top-color:#3267e8;border-right-color:#3267e8;animation:spin .8s linear infinite}.component-row[data-status=running] .component-name{color:#2b4f87;font-weight:500}.component-row[data-status=running] .component-status{color:#3267e8}
.component-row[data-status=done] .component-symbol{background:#edf8f3;border-color:#d3ebdf;color:#358062}.component-row[data-status=done] .component-name{color:#40546f}.component-row[data-status=done] .component-status{color:#6e8c7f}
.component-row[data-status=failed] .component-symbol{background:#fff1f2;border-color:#f3d2d9;color:#b94c60}.component-row[data-status=failed] .component-status{color:#b94c60}
.component-row[data-status=paused] .component-status{color:#a78244}.component-meter{height:3px;border-radius:3px;background:#edf2fb;overflow:hidden;margin:7px 0 1px}.component-meter>span{display:block;height:100%;background:#6d96ed;border-radius:3px;transition:width .3s}
.component-meter.indeterminate>span{animation:component-wait 1.6s ease-in-out infinite}.component-activity{padding:10px 16px;margin:0;border-top:1px solid #edf1f7;min-height:35px;background:#fafbfd;font-size:11px;line-height:18px;color:#8593a8}.component-activity:empty{display:none}.component-activity.quiet{color:#a0783e;background:#fffcf5}
@keyframes component-wait{from{transform:translateX(-110%)}to{transform:translateX(400%)}}
@media(max-width:479px){.component-heading{padding:11px 12px}.component-list{padding:0 12px;max-height:390px}.component-row{gap:7px;grid-template-columns:17px minmax(0,1fr) auto;padding:11px 0}.component-name{font-size:12px}.component-activity{padding:9px 12px}.component-panel{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.component-meter.indeterminate>span,.component-symbol{animation:none!important}}
