:root { --blue: #0b4f9c; --ink: #1d2733; --muted: #667085; --line: #d9dee5; --bg: #f4f6f9; --err: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); padding: 24px; }
body.embed { background: transparent; padding: 8px; }
.card { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card.wide { max-width: 640px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.brand h1 { font-size: 20px; margin: 0; }
.row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
label { display: block; margin: 12px 0; font-weight: 500; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 16px 0; padding: 4px 16px 16px; }
legend { padding: 0 6px; font-weight: 600; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; margin: 0; }
.btn { display: inline-block; margin-top: 12px; padding: 11px 18px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); width: auto; }
.btn:disabled { opacity: .6; cursor: default; }
.actions { display: flex; gap: 8px; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--err); background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 10px 12px; }
code { background: #eef1f5; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; margin: 8px auto; animation: spin 1s linear infinite; }
#progress { text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
