*{box-sizing:border-box}
body{margin:0;font:1rem/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1b1d24;background:#f4f3f8}
.wrap{max-width:860px;margin:0 auto;padding:16px}
.top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.8125rem;color:#5a5f70}
h1{font-size:1.75rem;line-height:1.2;margin:14px 0 8px}
h2{font-size:1.25rem;margin:18px 0 8px}
h3{font-size:1rem;margin:14px 0 6px}
.lede{font-size:1.0625rem}
.card{background:#fff;border:1px solid #dedbe9;border-radius:12px;padding:16px;margin:14px 0}
.result{border:2px solid #5b3fd1}
.big{font-size:1.375rem;line-height:1.3;margin:0 0 10px}
.big b{color:#3c25a8}
.lost{color:#b3261e}
.okv{color:#11733a}
.wait{color:#9a5b00}
.verdict{font-size:1.1875rem;font-weight:700;margin:8px 0 4px}
pre{white-space:pre-wrap;background:#14121f;color:#efeaff;border-radius:8px;padding:10px;font:.875rem/1.45 ui-monospace,Menlo,Consolas,monospace;margin:6px 0;max-height:340px;overflow:auto}
.lbl{font-size:.8125rem;color:#5a5f70;margin:10px 0 0}
.row{display:flex;gap:12px;flex-wrap:wrap}
.row label{flex:1 1 200px}
label{display:block;font-weight:600;font-size:.875rem;margin:6px 0}
input,select{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid #c9c5d8;border-radius:8px;font:inherit;font-weight:400;background:#fff;font-size:max(1rem,1em)}
button,.btn{display:inline-block;background:#5b3fd1;color:#fff;border:0;border-radius:8px;padding:9px 14px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;margin:3px 0}
.ghost{background:#ece8fb;color:#3c25a8}
button[disabled]{opacity:.5;cursor:not-allowed}
.hint{color:#5a5f70;font-size:.875rem}
.inl{display:inline-block;margin:0}
.tw{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:.875rem}
th,td{border-bottom:1px solid #e6e3ef;padding:6px;text-align:left;vertical-align:top}
.buy{background:#fbfaff}
.warn{color:#9a5b00;font-size:.875rem}
details{background:#fff;border:1px solid #dedbe9;border-radius:10px;padding:10px 14px;margin:8px 0}
summary{font-weight:600;cursor:pointer}
footer{font-size:.8125rem;color:#5a5f70;margin:24px 0}
@media print{.top,#inp,#next,#buy,details,h2,.lede,h1,footer{display:none}.card{border:0}#sheet{display:block!important}}
#sheet{display:none}
