*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
     background:#f1f4f8;color:#0f172a}
body.centered{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;
     padding:14px 20px;background:#0f172a;color:#fff;flex-wrap:wrap}
.topbar strong{font-size:16px}
.topbar nav{display:flex;gap:8px}
.wrap{max-width:1080px;margin:22px auto;padding:0 16px}
.wrap.split{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap}
.wrap.split .panel{flex:1 1 460px}
.panel{background:#fff;border-radius:14px;padding:20px;box-shadow:0 2px 14px rgba(15,23,42,.07)}
.panel.narrow{width:100%;max-width:400px}
.panel h1{margin:0 0 16px;font-size:20px}
label{display:block;margin-bottom:12px;font-size:13px;color:#475569;font-weight:600}
label input,label select,label textarea{display:block;width:100%;margin-top:5px;padding:9px 11px;
     border:1px solid #d7dde5;border-radius:9px;font-size:14px;font-family:inherit;
     background:#fff;color:#0f172a;font-weight:400}
label small{display:block;margin-top:4px;color:#94a3b8;font-weight:400}
label.check{display:flex;align-items:center;gap:8px}
label.check input{width:auto;margin:0}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.grid .full{grid-column:1/-1}
.rowline{display:flex;gap:18px;align-items:flex-end;flex-wrap:wrap;
     border-top:1px solid #eef1f5;padding-top:14px;margin-top:6px}
.rowline label{margin-bottom:0}
.rowline input[type=color]{width:52px;height:36px;padding:2px}
button,.btn{display:inline-block;padding:9px 14px;border-radius:9px;border:1px solid #cbd5e1;
     background:#fff;color:#0f172a;font-size:14px;font-weight:600;cursor:pointer;
     text-decoration:none;font-family:inherit}
button.primary,.btn.primary,.primary{background:#2563eb;border-color:#2563eb;color:#fff}
.btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.wrap .btn.ghost{color:#0f172a;border-color:#cbd5e1}
.btn.danger{color:#b91c1c;border-color:#fecaca}
button.primary{width:100%;margin-top:16px;padding:12px}
.rowline+button.primary{margin-top:20px}
.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:9px;
     padding:10px 12px;margin-bottom:14px;font-size:14px}
.warnbox{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:9px;padding:10px 12px;font-size:13px;line-height:1.55}
.warnbox a{color:#92400e;font-weight:600}
.ok{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0;border-radius:9px;
     padding:10px 12px;margin-bottom:14px;font-size:14px}
.pwmeter{height:6px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin:7px 0 4px}
.pwmeter span{display:block;height:100%;width:0;background:#e2e8f0;border-radius:99px;transition:width .2s ease,background .2s ease}
.checks{list-style:none;padding:0;margin:0 0 16px;font-size:14px}
.checks li{padding:5px 0}
.checks .good{color:#15803d}
.checks .bad{color:#b91c1c}
.filterbar{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}
.filterbar label{margin-bottom:0}
.filterbar select,.filterbar input{min-width:180px}
.filterbar .count{font-size:13px;color:#94a3b8;margin-left:auto}
.cards{display:flex;flex-direction:column;gap:10px}
.item{display:flex;gap:14px;align-items:center;background:#fff;border-radius:12px;
     padding:14px 16px;box-shadow:0 2px 10px rgba(15,23,42,.06);flex-wrap:wrap}
.item.off{opacity:.55}
.item .dot{width:12px;height:38px;border-radius:6px;flex:0 0 auto}
.item .meta{flex:1 1 220px;min-width:0}
.item .name{font-weight:700;font-size:15px}
.item .sub{color:#64748b;font-size:13px}
.item .url{font-size:12px;color:#2563eb;text-decoration:none;word-break:break-all}
.item .tag{font-size:11px;background:#e2e8f0;color:#475569;padding:2px 7px;border-radius:20px}
.item .stats{text-align:center;font-size:19px;font-weight:700;flex:0 0 auto}
.item .stats span{display:block;font-size:11px;color:#94a3b8;font-weight:400}
.free-ok{color:#15803d!important;font-weight:600}
.free-full{color:#b45309!important;font-weight:600}
.free-over{color:#b91c1c!important;font-weight:600}
.item .acts{display:flex;gap:6px;flex-wrap:wrap}
.item .acts form{margin:0}
.empty{text-align:center}
.thumb{width:52px;height:52px;border-radius:50%;object-fit:cover}
.qrpanel{text-align:center}
#qrbox img,#qrbox canvas{width:280px;height:280px;max-width:100%}
.urlline{font-size:13px;color:#475569;word-break:break-all;margin:14px 0}
.qracts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.hint{font-size:12px;color:#94a3b8;text-align:center;margin-top:14px}
.preview{flex:0 0 300px;margin:0 auto}
.phone{width:290px;background:#000;border-radius:30px;padding:9px;
     box-shadow:0 16px 44px rgba(0,0,0,.3)}
.pcard{background:#fff;border-radius:23px;overflow:hidden}
.pbanner{height:112px;background:#2563eb;display:flex;align-items:flex-start;justify-content:center;padding:8px 12px}
.pbanner img{max-height:50px;max-width:80%;object-fit:contain}
.phead{padding:0 18px 14px;margin-top:-44px;text-align:center}
.thumb.logo{width:auto;max-width:90px;height:38px;border-radius:6px;object-fit:contain;background:#f1f5f9;padding:3px}
.tip{font-size:12px;color:#94a3b8;flex:1 1 150px}
.pavatar{width:84px;height:84px;border-radius:50%;object-fit:cover;border:4px solid #fff;
     box-shadow:0 5px 14px rgba(15,23,42,.2);background:#f1f5f9}
.pini{display:flex;align-items:center;justify-content:center;margin:0 auto;
     font-size:28px;font-weight:600;color:#2563eb}
.pcard h2{font-size:19px;margin:10px 0 2px}
.prole{font-size:13px;color:#475569;margin:0}
.pcomp{font-size:13px;font-weight:600;margin:2px 0 0;color:#2563eb}
.pbio{font-size:12px;color:#475569;padding:0 18px;margin:8px 0 0;text-align:center;line-height:1.5}
.prows{padding:4px 12px}
.prow{display:flex;justify-content:space-between;gap:10px;padding:9px 6px;
     border-bottom:1px solid #eef1f5;font-size:13px}
.prow:last-child{border-bottom:none}
.prow span{color:#94a3b8;font-size:12px}
.prow b{font-weight:400;text-align:right;word-break:break-word}
.psave{margin:12px 14px 16px;padding:12px;text-align:center;background:#2563eb;color:#fff;
     font-weight:600;border-radius:12px;font-size:14px}
@media(max-width:640px){.grid{grid-template-columns:1fr}.wrap.split{flex-direction:column}
  .preview{order:-1}}
