:root{--red:#d32f2f;--ink:#1d2430;--muted:#667085;--line:#e3e6ec;--bg:#f6f7f9;--ok:#1b7f3b;--warn:#b25e00}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;line-height:1.5;color:var(--ink);background:var(--bg)}
.wrap{max-width:720px;margin:0 auto;padding:0 16px}
header{background:var(--red);color:#fff;padding:14px 0}
.bar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{font-weight:700}
.sub{font-size:.95rem;opacity:.95}
.ru{opacity:.75;font-size:.92em}
main{padding-top:20px;padding-bottom:24px}
footer{font-size:.85rem;padding-bottom:32px}
h1{font-size:1.35rem;margin:.2em 0 .6em}
h2{font-size:1.08rem;margin:0 0 .5em}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:14px}
.muted{color:var(--muted)}
.steps{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.steps span{flex:1;min-width:90px;text-align:center;font-size:.78rem;padding:6px 4px;border-radius:8px;background:#e9ebf0;color:var(--muted)}
.steps .on{background:var(--red);color:#fff;font-weight:600}
.steps .done{background:#dff3e4;color:var(--ok)}
label{display:block;font-weight:600;margin:12px 0 4px}
input[type=text],input[type=password],input[type=date],select,textarea{width:100%;padding:10px;border:1px solid #c9ced8;border-radius:8px;font:inherit;background:#fff}
textarea{min-height:110px;resize:vertical}
.choice{display:flex;gap:8px;flex-wrap:wrap}
.choice label{font-weight:400;margin:0;border:1px solid #c9ced8;border-radius:8px;padding:8px 14px;cursor:pointer;background:#fff}
.choice input{margin-right:6px}
button{font:inherit;cursor:pointer;border-radius:8px;border:1px solid var(--red);background:var(--red);color:#fff;padding:10px 16px;font-weight:600}
button.sec{background:#fff;color:var(--red)}
button.link{background:none;border:none;color:inherit;text-decoration:underline;padding:4px;font-weight:400}
button:disabled{opacity:.5;cursor:default}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}
.note{border-left:4px solid var(--warn);background:#fff6e8;padding:10px 12px;border-radius:6px;margin:10px 0}
.note.ok{border-color:var(--ok);background:#eaf7ee}
.note.err{border-color:var(--red);background:#fdecec}
ul.files{list-style:none;padding:0;margin:8px 0}
ul.files li{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:.93rem;word-break:break-word}
.tag{font-size:.75rem;border-radius:6px;padding:2px 6px;background:#e9ebf0;white-space:nowrap}
.tag.rejected{background:#fdecec;color:var(--red)}
.tag.accepted{background:#dff3e4;color:var(--ok)}
.msg{padding:8px 10px;border-radius:8px;margin:6px 0;background:#f0f2f6;white-space:pre-wrap}
.msg.aas{background:#fff6e8}
.msg small{display:block;color:var(--muted)}
.price{font-size:1.5rem;font-weight:700}
canvas.pad{width:100%;height:auto;border:1px dashed #9aa3b2;border-radius:8px;background:#fff;touch-action:none;display:block}
pre.doc{white-space:pre-wrap;font:inherit;font-size:.88rem;background:#fafbfc;border:1px solid var(--line);border-radius:8px;padding:12px;max-height:340px;overflow:auto}
