:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #26334d; background: #f5f7fc; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.layout { width: min(880px, calc(100% - 40px)); margin: 58px auto; }
.page-header { text-align: center; margin-bottom: 30px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 13px; color: #5269d7; background: #eaf0ff; border-radius: 99px; letter-spacing: 2px; }
h1 { font-size: 28px; font-weight: 650; margin: 15px 0 10px; }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
p { font-size: 14px; line-height: 1.8; }
.page-header p, .muted { color: #7b859a; }
.card { background: white; border: 1px solid #e8ecf5; border-radius: 18px; box-shadow: 0 12px 48px #30437809; overflow: hidden; }
.steps { display: flex; gap: 10px; list-style: none; margin: 0; padding: 28px 38px; border-bottom: 1px solid #edf0f7; background: #fcfdff; }
.steps li { display: flex; flex: 1; align-items: center; gap: 9px; color: #a0a8b8; font-size: 13px; }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid #dce2ef; border-radius: 50%; font-weight: 600; }
.steps strong { font-weight: 500; }
.steps .active { color: #526be8; }
.steps .active span { color: white; background: #627bf1; border-color: #627bf1; box-shadow: 0 0 0 4px #627bf110; }
.steps .done { color: #4c956e; }
.steps .done span { border-color: #c9e6d5; background: #eef9f2; }
.panel { padding: 32px 38px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.section-heading p { color: #7b859a; margin-top: 0; }
.checks { list-style: none; margin: 18px 0; padding: 0; }
.checks li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 14px; border-bottom: 1px solid #f0f2f7; gap: 16px; }
.checks .badge { padding: 3px 9px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.badge.ok { color: #2b9363; background: #edf9f2; }
.badge.fail { color: #c94a53; background: #fff0f1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 24px; }
label { display: grid; gap: 9px; font-size: 13px; font-weight: 500; color: #546078; }
input, select { width: 100%; min-width: 0; border: 1px solid #dce2ed; padding: 11px 13px; border-radius: 7px; color: #34425e; font: inherit; font-size: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: #8092ee; box-shadow: 0 0 0 3px #627bf110; }
input[readonly] { background: #f7f9fc; color: #7b859a; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.actions.end { justify-content: flex-end; }
.action-group { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; transition: opacity .15s, background .15s; }
.button.primary { background: #627bf1; color: white; }
.button.primary:hover { background: #526ce1; }
.button.secondary { background: white; border-color: #dce2ed; color: #65708a; }
.button.secondary:hover { background: #f7f9fd; }
.button.small { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.button:focus-visible { outline: 3px solid #aab9ff; outline-offset: 3px; }
.message { margin: 22px 38px 0; padding: 12px 15px; background: #fff2f2; color: #bd4752; border-radius: 7px; font-size: 13px; line-height: 1.7; }
.connection-status { min-height: 22px; margin: 18px 0 -8px; color: #2b9363; }
.connection-status.error { color: #c94a53; }
.review { margin: 22px 0; padding: 0 18px; background: #f8faff; border-radius: 9px; }
.review div { display: flex; gap: 20px; padding: 13px 0; border-bottom: 1px solid #edf0f7; font-size: 14px; }
.review div:last-child { border: 0; }
dt { color: #8590a4; min-width: 95px; }
dd { margin: 0; overflow-wrap: anywhere; }
.note { color: #65708a; background: #f2f5ff; border: 1px solid #e8edff; border-radius: 8px; padding: 14px 17px; font-size: 13px; line-height: 1.9; }
.note strong { color: #4e65bf; font-weight: 600; }
.progress, .complete { padding: 38px 0; text-align: center; }
.progress p { color: #7b859a; }
.spinner { width: 38px; height: 38px; margin: 0 auto 24px; border: 3px solid #e5eafb; border-top-color: #627bf1; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.complete { padding: 42px 38px; }
.complete-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #edf9f2; color: #42a975; font-size: 30px; margin: 0 auto 22px; }
.complete .note { max-width: 450px; margin: 22px auto; }
.complete .button { margin-top: 10px; }
.table-details { margin: 0 38px 34px; border: 1px solid #e7ecf5; border-radius: 10px; overflow: hidden; background: #fcfdff; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; }
.table-heading h3 { margin: 0; font-size: 14px; font-weight: 600; }
.table-heading span { font-size: 12px; color: #7b859a; }
.table-details progress { display: block; width: 100%; height: 4px; border: 0; appearance: none; background: #edf0f7; accent-color: #42a975; }
.table-details progress::-webkit-progress-bar { background: #edf0f7; }
.table-details progress::-webkit-progress-value { background: #42a975; }
.table-details progress::-moz-progress-bar { background: #42a975; }
.table-log { max-height: 300px; overflow-y: auto; list-style: none; margin: 0; padding: 8px 18px; }
.table-log li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f7; font-size: 12px; line-height: 1.7; }
.table-log li:last-child { border-bottom: 0; }
.table-log code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #546078; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.table-log .table-icon { width: 18px; flex-shrink: 0; text-align: center; color: #a0a8b8; }
.table-log .table-status { flex-shrink: 0; color: #8b95a8; }
.table-log .created .table-icon, .table-log .completed .table-icon, .table-log .completed .table-status { color: #2b9363; }
.table-log .installing .table-icon, .table-log .installing .table-status { color: #526be8; }
.table-log .failed .table-icon, .table-log .failed .table-status { color: #c94a53; }
@media (max-width: 640px) { .layout { width: calc(100% - 24px); margin: 28px auto; } h1 { font-size: 25px; } .steps { padding: 20px 16px; gap: 8px; } .steps li { flex-direction: column; gap: 7px; font-size: 11px; text-align: center; } .panel, .complete { padding: 26px 20px; } .fields { grid-template-columns: 1fr; gap: 18px; } .message { margin: 18px 20px 0; } .button { padding: 10px 15px; } .action-group { gap: 8px; } }
@media (max-width: 640px) { .table-details { margin: 0 20px 26px; } .table-heading { padding: 13px 12px; } .table-heading h3 { font-size: 13px; } .table-log { padding: 6px 12px; max-height: 260px; } .table-log li { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
