:root{
  --cf-orange:#f6821f;--cf-blue:#0051c3;--ink:#1d1d1f;--muted:#6b7280;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:#fafafa;color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  display:flex;align-items:center;justify-content:center;padding:24px;
}
.wrap{width:100%;max-width:420px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.06);padding:32px 28px}
.brand{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.brand svg{height:26px;width:auto}
.host{font-size:22px;font-weight:650;word-break:break-all;margin:0 0 6px}
.sub{font-size:15px;color:#374151;margin:0 0 24px;line-height:1.45}
.box{display:flex;align-items:center;gap:14px;border:1px solid #d1d5db;border-radius:8px;padding:14px 16px;cursor:pointer;user-select:none;background:#fff;transition:border-color .15s}
.box:hover{border-color:#9ca3af}
.box.busy{pointer-events:none;opacity:.75}
.tick{width:24px;height:24px;border:2px solid #9ca3af;border-radius:4px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.tick svg{display:none}
.box.done .tick{background:#16a34a;border-color:#16a34a}
.box.done .tick svg{display:block}
.box.done .label{color:#15803d}
.label{font-size:15px;font-weight:500}
.spin{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:var(--cf-blue);border-radius:50%;animation:sp .8s linear infinite;display:none}
.box.busy .spin{display:block}
.box.busy .tick{display:none}
@keyframes sp{to{transform:rotate(360deg)}}
.foot{margin-top:22px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:10px}
.foot a{color:var(--muted)}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;padding:20px;z-index:50}
.modal.on{display:flex}
.sheet{background:#fff;border-radius:14px;max-width:460px;width:100%;padding:26px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.sheet h2{margin:0 0 8px;font-size:20px}
.sheet p{margin:0 0 12px;color:#374151;font-size:14px;line-height:1.5}
.steps{list-style:none;margin:14px 0 0;padding:0}
.steps li{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-top:1px solid #f1f5f9;font-size:14px}
.steps li:first-child{border-top:0}
.num{flex:0 0 24px;height:24px;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
kbd{background:#f3f4f6;border:1px solid #d1d5db;border-bottom-width:2px;border-radius:5px;padding:1px 6px;font:600 12px/1.8 ui-monospace,Consolas,monospace}
.code{margin-top:14px;background:#0f172a;color:#e2e8f0;border-radius:8px;padding:12px;font:12px/1.5 ui-monospace,Consolas,monospace;white-space:pre-wrap;word-break:break-all;max-height:110px;overflow:auto}
.note{margin-top:12px;font-size:12px;color:var(--muted)}
.ok{display:none;text-align:center}
.ok.on{display:block}
.ok .circle{width:64px;height:64px;border-radius:50%;background:#dcfce7;color:#16a34a;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:30px}
