*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f4f6fb;color:#1e293b}
body.embed{background:transparent}
.card{max-width:760px;margin:24px auto;background:#fff;border-radius:16px;padding:28px;box-shadow:0 4px 24px rgba(15,23,42,.08)}
body.embed .card{margin:0 auto;box-shadow:none}
h1{margin:0 0 6px;font-size:1.6rem}.sub{color:#64748b;margin:0 0 18px}
.drop{border:2px dashed #94a3b8;border-radius:14px;padding:28px;text-align:center;cursor:pointer;color:#475569;transition:.15s;background:#f8fafc}
.drop:hover,.drop:focus,.drop.over{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;outline:none}
.drop p{margin:8px 0}.drop small{color:#64748b}
.files{list-style:none;padding:0;margin:14px 0}
.files li{display:grid;grid-template-columns:1fr auto auto;gap:4px 10px;align-items:center;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:8px;font-size:14px}
.files .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.files .sz{color:#64748b}
.files .x{border:0;background:none;color:#94a3b8;font-size:18px;cursor:pointer;padding:0 4px}
.bar{grid-column:1/-1;height:6px;background:#e2e8f0;border-radius:4px;overflow:hidden}.bar i{display:block;height:100%;width:0;background:#2563eb;transition:width .2s}
li.ok .bar i{background:#16a34a}li.bad{border-color:#fca5a5;background:#fef2f2}li.bad .sz{color:#dc2626}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 16px;margin-top:8px}
label{display:flex;flex-direction:column;font-size:14px;font-weight:500;gap:5px;margin-bottom:12px}
input,select,textarea{font:inherit;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid #bfdbfe;border-color:#2563eb}
button{font:inherit;font-weight:600;background:#2563eb;color:#fff;border:0;border-radius:10px;padding:13px 22px;cursor:pointer;width:100%}
button:disabled{opacity:.6;cursor:wait}button.secondary{background:#e2e8f0;color:#1e293b;width:auto}
.err{color:#dc2626;min-height:1em;font-size:14px}
.done{text-align:center;padding:20px 0}.check{width:64px;height:64px;border-radius:50%;background:#dcfce7;color:#16a34a;font-size:34px;line-height:64px;margin:0 auto 12px}
.ref{font-size:1.8rem;font-weight:700;letter-spacing:2px;font-family:ui-monospace,monospace;background:#f1f5f9;display:inline-block;padding:8px 16px;border-radius:10px}
@media(max-width:520px){.card{margin:0;border-radius:0;padding:18px}}
