:root {
    --paper: #f3f5fa;
    --surface: #ffffff;
    --ink: #14213d;
    --muted: #5b6782;
    --line: #dce2ee;
    --primary: #2f5bff;
    --primary-ink: #1d3fd1;
    --brass: #ffc83d;
    --ok: #12a06b;
    --err: #d6324a;
    --warn-bg: #fff6dc;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 620px; margin: 0 auto; padding: 48px 16px 32px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.brand p { margin: 0; color: var(--muted); font-size: 14px; }
.logo {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--ink); color: var(--brass);
}
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: #e8ecf5; }
.steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 700; font-size: 12px; }
.steps li.current { background: var(--ink); color: #fff; }
.steps li.current span { background: var(--brass); color: var(--ink); }
.steps li.done span { background: var(--ok); color: #fff; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
h2 { margin: 0 0 6px; font-size: 20px; }
.muted { color: var(--muted); margin: 0 0 20px; }
.center { text-align: center; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.ok .dot { background: var(--ok); }
.fail .dot { background: var(--err); }
.fail { color: var(--err); }
.opt .dot { background: #c9a227; }
form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
form small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
input, select {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit;
    border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); background: #fff; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
label.check input { width: auto; margin: 0; }
.row { display: flex; gap: 12px; }
.row .grow { flex: 1; }
.row .port { width: 110px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 18px; }
.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 8px; border: 0;
    background: var(--primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--primary-ink); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #eef1f8; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: #fdecef; color: #9b1c31; border: 1px solid #f6c7d0; }
.alert.warn { background: var(--warn-bg); color: #6b5100; border: 1px solid #f3dc97; }
code { background: #eef1f8; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.success { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 30px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
@media (max-width: 520px) {
    .card { padding: 20px; }
    .row { flex-direction: column; gap: 0; }
    .row .port { width: 100%; }
}
