* { box-sizing: border-box; }
:root { --blue:#0d6efd; --ink:#212529; --muted:#5d6776; --line:#dee2e6; }
body { margin:0; background:#f7f7ff; color:var(--ink); font:14px/1.55 system-ui,"Microsoft YaHei",sans-serif; }
.icon { width:1.25em; height:1.25em; flex:none; }
.topbar { background:#fff; border-bottom:1px solid #e3e5ef; }
.bar-inner,.setup-shell { max-width:1120px; margin:auto; padding-inline:32px; }
.bar-inner { display:flex; align-items:center; gap:12px; min-height:62px; color:var(--muted); }
.brand-mark { display:grid; place-items:center; width:32px; height:32px; border-radius:7px; background:var(--blue); color:#fff; font-size:18px; }
.bar-inner strong { font-size:17px; color:var(--ink); }
.bar-divider { height:16px; border-left:1px solid var(--line); }
.setup-shell { padding-block:28px 40px; }
h1,h2,p,dl { margin:0; }
h1 { font-size:clamp(24px,3vw,30px); line-height:1.3; }
.setup-heading { margin-bottom:20px; }
.setup-heading p,.setup-hint,.setup-actions p,.setup-finish p { margin-top:5px; color:var(--muted); }
.setup-card,.setup-actions { background:#fff; border-radius:9px; box-shadow:0 2px 6px rgb(218 218 253 / 65%),0 0 6px rgb(206 206 238 / 54%); }
.setup-card { min-width:0; padding:22px 24px; }
h2,.section-heading,.action-copy,.setup-primary,.setup-error { display:flex; gap:10px; align-items:center; }
h2 { font-size:18px; }
h2 .icon { color:var(--blue); }
.section-heading { justify-content:space-between; flex-wrap:wrap; }
.section-heading span { font-size:13px; padding:3px 11px; border-radius:20px; }
.state-ok { color:#226834; }
.state-fail { color:#962332; }
.section-heading .state-ok { background:#e9f6eb; }
.section-heading .state-fail { background:#fff0f0; }
.setup-environment { margin-bottom:18px; border-left:4px solid var(--blue); }
details { margin-top:10px; }
summary { width:fit-content; cursor:pointer; color:#095bc9; }
.check-list { display:grid; gap:0 22px; grid-template-columns:repeat(2,minmax(0,1fr)); margin-block:10px; }
.check-list div { display:flex; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid #eee; }
dd { margin:0; text-align:right; }
.setup-hint { font-size:13px; }
.setup-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.setup-fields { display:grid; gap:13px; margin-top:16px; padding-top:16px; border-top:1px solid #eaecf0; }
.setup-fields label { display:grid; gap:5px; font-weight:500; min-width:0; }
.setup-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.address-row { grid-template-columns:minmax(0,1fr) 90px; }
input { width:100%; height:40px; padding:8px 11px; border:1px solid #ced4da; border-radius:6px; background:#fff; color:var(--ink); font:inherit; }
input:focus { outline:0; border-color:#86b7fe; box-shadow:0 0 0 3px #0d6efd25; }
input::placeholder { color:#747e87; }
.setup-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:18px; padding:16px 24px; }
.action-copy>.icon { color:var(--blue); }
.setup-actions p { font-size:13px; margin-top:2px; }
.setup-primary { justify-content:center; width:fit-content; padding:10px 22px; border:0; border-radius:6px; color:white; background:var(--blue); font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.setup-primary:hover { background:#0b5ed7; }
.setup-primary:disabled { background:#65778f; cursor:default; }
:where(summary,.setup-primary):focus-visible { outline:3px solid #86b7fe; outline-offset:3px; }
#installStatus:empty { display:none; }
#installStatus { flex-basis:100%; }
.setup-error { align-items:flex-start; padding:14px 18px; border-left:4px solid #dc3545; background:#fff0f2; color:#912431; border-radius:6px; margin-bottom:16px; }
.setup-error .icon { margin-top:3px; }
.setup-finish .setup-primary { margin-top:18px; }
@media(max-width:720px) {
  .setup-columns,.check-list { grid-template-columns:1fr; }
  .bar-inner,.setup-shell { padding-inline:16px; }
  .setup-card,.setup-actions { padding:18px; }
  .setup-primary { width:100%; }
  input { font-size:16px; }
}

.password-field { display:grid; gap:5px; min-width:0; }
.password-field .setup-input { position:relative; }
.password-field input { padding-right:44px; }
.password-field input::-ms-reveal { display:none; }
.password-eye { position:absolute; right:1px; top:1px; bottom:1px; width:40px; display:grid; place-items:center; border:0; border-radius:5px; background:transparent; color:var(--muted); cursor:pointer; }
.password-eye:hover,.password-eye:focus-visible { color:var(--blue); background:#eef5ff; }
.password-eye:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.password-eye .eye-slash { display:none; }
.password-eye.is-visible .eye-slash { display:block; }
