:root { --brand:#1B4FD8; --brand-dark:#153ea8; --ink:#111827; --muted:#6b7280; --line:#e5e7eb; --bg:#f6f7f9; --ok:#15803d; --bad:#b91c1c; --warn:#b45309; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
.wiz { max-width:720px; margin:0 auto; padding:32px 16px 64px; }
.wiz-head h1 { font-size:1.75rem; margin:0 0 4px; }
.wiz-head p  { margin:0; color:var(--muted); }

.wiz-steps { list-style:none; display:flex; gap:4px; padding:0; margin:24px 0; }
.wiz-steps li { flex:1; display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--muted); padding-bottom:10px; border-bottom:3px solid var(--line); }
.wiz-steps li span { width:24px; height:24px; border-radius:50%; background:var(--line); color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:600; flex-shrink:0; }
.wiz-steps li.now  { color:var(--ink); font-weight:600; border-color:var(--brand); }
.wiz-steps li.now span  { background:var(--brand); color:#fff; }
.wiz-steps li.done { border-color:var(--ok); }
.wiz-steps li.done span { background:var(--ok); color:#fff; }

.wiz-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:28px; }
.wiz-card h2 { margin:0 0 6px; font-size:1.3rem; }
.wiz-card > p { color:var(--muted); margin:0 0 20px; }

label { display:block; font-weight:500; font-size:.9rem; margin-bottom:16px; flex:1; min-width:0; }
label em, legend em { font-weight:400; color:var(--muted); font-style:normal; }
input:not([type=checkbox]), textarea { display:block; width:100%; margin-top:6px; padding:10px 12px; font:inherit; color:inherit; background:#fff; border:1.5px solid #d1d5db; border-radius:8px; }
input:focus, textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(27,79,216,.15); }
textarea { resize:vertical; }
textarea.mono, code { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.85rem; }
code { background:#f3f4f6; padding:1px 5px; border-radius:4px; }
small { display:block; font-weight:400; color:var(--muted); font-size:.8rem; margin-top:4px; }
label.check { display:flex; gap:10px; align-items:flex-start; font-weight:500; }
label.check input { margin-top:4px; accent-color:var(--brand); }
label.check small { display:inline; margin:0; }
fieldset { border:1px solid var(--line); border-radius:10px; padding:16px 16px 4px; margin:8px 0 20px; }
legend { padding:0 6px; font-weight:600; font-size:.9rem; }
.row { display:flex; gap:16px; }
.row .narrow { flex:0 0 110px; }
.row.three > label { flex:1; }

.wiz-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:24px; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:11px 20px; font:inherit; font-weight:600; border-radius:8px; border:1.5px solid #d1d5db; background:#fff; color:var(--ink); text-decoration:none; cursor:pointer; min-height:44px; }
.btn:hover { border-color:#9ca3af; }
.btn.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
.btn.primary:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.btn[disabled] { opacity:.7; cursor:progress; }
.btn:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.muted { color:var(--muted); font-size:.9rem; }

.wiz-alert { background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; border-radius:10px; padding:12px 16px; margin-bottom:16px; }
.wiz-alert.warn { background:#fffbeb; border-color:#fde68a; color:#78350f; margin:16px 0 8px; }

.wiz-checks { list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:10px; }
.wiz-checks li { display:flex; gap:12px; align-items:flex-start; padding:12px 16px; }
.wiz-checks li + li { border-top:1px solid var(--line); }
.wiz-checks .mark { width:22px; height:22px; border-radius:50%; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700; color:#fff; margin-top:1px; }
.wiz-checks .ok .mark { background:var(--ok); } .wiz-checks .bad .mark { background:var(--bad); } .wiz-checks .warn .mark { background:var(--warn); }
.wiz-checks small { margin-top:0; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

.wiz-summary { display:grid; grid-template-columns:130px 1fr; gap:10px 16px; margin:0; }
.wiz-summary dt { color:var(--muted); } .wiz-summary dd { margin:0; font-weight:500; word-break:break-word; }
.wiz-summary small { display:inline; }

.wiz-log { list-style:none; margin:16px 0; padding:0; }
.wiz-log li { padding:6px 0 6px 28px; position:relative; }
.wiz-log li::before { content:'✓'; position:absolute; left:0; color:var(--ok); font-weight:700; }
.wiz-note { background:#f9fafb; border:1px solid var(--line); border-radius:10px; padding:14px 18px; margin:20px 0 0; }
.wiz-note ul { margin:8px 0 0; padding-left:20px; }

@media (max-width:600px) {
  .row { flex-direction:column; gap:0; } .row .narrow { flex:1; }
  .wiz-card { padding:20px 16px; }
  .wiz-steps li { font-size:0; gap:0; justify-content:center; } .wiz-steps li span { font-size:.75rem; }
  .wiz-summary { grid-template-columns:1fr; gap:2px; } .wiz-summary dd { margin-bottom:10px; }
  .wiz-actions .btn { flex:1; }
}
