*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f7fb;color:#1f2937;display:flex;flex-direction:column;min-height:100vh}
.wrap{max-width:980px;margin:0 auto;padding:0 16px;width:100%}
.top{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:5}
.top-in{display:flex;align-items:center;justify-content:space-between;height:60px;gap:12px}
.brand{font-weight:800;font-size:20px;color:#2563eb}.brand span{color:#374151;font-weight:600}
.tabs{display:flex;gap:6px}
.tab{border:0;background:none;padding:10px 14px;border-radius:8px;font-size:15px;cursor:pointer;color:#4b5563}
.tab.active{background:#2563eb;color:#fff}
main{flex:1}
.hero h1{font-size:22px;margin:28px 0 14px;text-align:center}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.card{display:flex;gap:14px;align-items:center;text-align:left;background:#fff;border:2px solid #e5e7eb;border-radius:14px;padding:20px;cursor:pointer;font:inherit;color:inherit}
.card:hover{border-color:#93c5fd}.card.active{border-color:#2563eb;background:#eff6ff}
.card-ico{font-size:40px}.card h2{margin:0 0 6px;font-size:19px}.card p{margin:0;color:#6b7280;font-size:14px}
.panel{background:#fff;border-radius:14px;padding:24px;margin:20px 0 32px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.steps{display:flex;list-style:none;padding:0;margin:0 0 20px;gap:8px}
.steps li{flex:1;text-align:center;padding:10px 4px;border-radius:8px;background:#f3f4f6;color:#9ca3af;font-size:14px}
.steps li b{display:inline-block;width:22px;height:22px;line-height:22px;border-radius:50%;background:#d1d5db;color:#fff;margin-right:6px;font-size:12px}
.steps li.on{background:#dbeafe;color:#1d4ed8}.steps li.on b{background:#2563eb}
.steps li.done{background:#dcfce7;color:#15803d}.steps li.done b{background:#16a34a}
.drop{display:block;border:2px dashed #93c5fd;border-radius:14px;padding:44px 16px;text-align:center;cursor:pointer;background:#f8fbff}
.drop:hover,.drop.over{background:#eff6ff;border-color:#2563eb}
.drop-ico{font-size:44px}.drop-t{font-size:18px;font-weight:600;margin:8px 0}.drop-s{color:#6b7280;font-size:13px}
.adv{margin:14px 0;font-size:14px;color:#4b5563}.adv summary{cursor:pointer;color:#6b7280}
.adv label{display:block;margin-top:10px}.adv select,.adv input{margin-left:8px}
.status{margin:14px 0;padding:12px 14px;border-radius:8px;background:#eff6ff;color:#1d4ed8}
.status.err{background:#fef2f2;color:#b91c1c}.status.ok{background:#f0fdf4;color:#15803d}
.result-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.btns{display:flex;gap:10px;flex-wrap:wrap}
.btn{border:0;border-radius:10px;padding:12px 20px;font-size:16px;font-weight:600;cursor:pointer}
.btn.primary{background:#16a34a;color:#fff}.btn.primary.alt{background:#2563eb}
.btn.big{width:100%;margin-top:16px;padding:14px;background:#2563eb}
.btn:disabled{opacity:.45;cursor:not-allowed}
.muted{color:#6b7280}.small{font-size:13px}
.table-wrap{overflow:auto;max-height:460px;border:1px solid #e5e7eb;border-radius:8px}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{border:1px solid #e5e7eb;padding:6px 8px;min-width:70px}
th{background:#eef2ff;position:sticky;top:0}
td[contenteditable]:focus,th[contenteditable]:focus{outline:2px solid #2563eb;background:#fff}
textarea{width:100%;height:200px;margin-top:8px;font:13px/1.5 monospace}
.link{background:none;border:0;color:#2563eb;cursor:pointer;margin-top:14px;font-size:14px;padding:0}
.label{margin:14px 0 8px;font-weight:600}
.fmts{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.fmts button{padding:14px 0;border:2px solid #e5e7eb;border-radius:10px;background:#fff;font-size:16px;font-weight:700;cursor:pointer}
.fmts button.sel{border-color:#2563eb;background:#2563eb;color:#fff}
.foot{border-top:1px solid #e5e7eb;background:#fff;padding:16px 0;color:#6b7280;font-size:13px;text-align:center}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d1d5db;margin-left:6px;vertical-align:middle}
.dot.ok{background:#22c55e}.dot.bad{background:#ef4444}
@media(max-width:640px){
 .top-in{flex-direction:column;height:auto;padding:10px 16px}
 .cards{grid-template-columns:1fr}.card{padding:14px}.card-ico{font-size:30px}
 .fmts{grid-template-columns:repeat(3,1fr)}.panel{padding:16px}
 .steps li{font-size:12px}.btns{width:100%}.btns .btn{flex:1}
}

.prog{margin:16px 0}.prog-top{display:flex;justify-content:space-between;font-size:14px;color:#1d4ed8;margin-bottom:6px}
.bar{height:12px;background:#e5e7eb;border-radius:6px;overflow:hidden}
.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3b82f6,#2563eb);transition:width .3s}
.bar.ok i{background:#16a34a}
.badge{font-size:12px;background:#eef2ff;color:#4338ca;border-radius:6px;padding:2px 8px}
.tblock{margin:14px 0}.tblock h3{margin:0 0 6px;font-size:16px;color:#1d4ed8}

.kinds{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.kind{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:12px;font-size:13px;color:#6b7280}
.kind b{display:block;color:#111827;font-size:15px;margin-bottom:4px}
.fmts.few{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
@media(max-width:640px){.kinds{grid-template-columns:1fr}}
