:root{--bg: #f9fafb;--card: #fff;--text: #1e293b;--title: #0f172a;--muted: #64748b;--faint: #94a3b8;--border: #e2e8f0;--divider: #f1f5f9;--wa: #128c7e;--wa-hover: #0e7064;--wa-light: #25d366;--emerald: #059669;--emerald-text: #047857;--emerald-bg: #ecfdf5;--emerald-border: #a7f3d0;--brand: #cf2e2e;--brand-600: #dc2626;--brand-800: #b91c1c;--brand-900: #991b1b;--brand-100: #fee2e2;--red: #b91c1c;--bubble: #dcf8c6;--chat: #efeae2;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;background:var(--bg)}.center{display:grid;place-items:center;min-height:100vh;color:var(--muted)}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid rgba(226,232,240,.8);box-shadow:0 1px 3px #00000005}.topbar-inner{max-width:1024px;margin:0 auto;padding:0 16px;height:80px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(45deg,var(--brand-800),var(--brand-600));color:#fff;display:grid;place-items:center;box-shadow:0 0 0 2px var(--brand-100),0 1px 2px #0000000d;flex-shrink:0}.brand-icon svg{width:24px;height:24px}.brand-text{display:flex;flex-direction:column}.brand-name{font-size:24px;font-weight:900;letter-spacing:-.025em;color:var(--title);line-height:1}.brand-name span{color:var(--brand)}.brand-sub{font-size:11px;font-weight:600;letter-spacing:.05em;color:var(--faint);text-transform:uppercase;margin-top:2px}.account{display:flex;align-items:center;gap:16px;min-width:0}.pill{display:flex;align-items:center;gap:8px;color:#475569;background:#f8fafc;padding:6px 14px;border-radius:999px;border:1px solid var(--border);font-size:14px;min-width:0}.pill svg{width:16px;height:16px;color:var(--faint);flex-shrink:0}.pill span{font-weight:500;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--brand);background:none;border:none;padding:4px 8px;cursor:pointer;border-radius:4px}.logout:hover{color:var(--brand-900)}.logout svg{width:16px;height:16px}.main{flex:1;width:100%;max-width:1024px;margin:0 auto;padding:32px 16px;display:flex;flex-direction:column;gap:24px}.card{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 1px 2px #0000000d;padding:24px;transition:box-shadow .2s;display:flex;flex-direction:column;gap:20px}.card:hover{box-shadow:0 4px 6px -1px #00000014,0 2px 4px -2px #0000000f}.card.disabled{opacity:.55}.card-head{display:flex;flex-direction:column;gap:8px}.card-title{display:flex;align-items:center;gap:14px}h1{font-size:24px;font-weight:700;color:var(--title);margin:0;letter-spacing:-.025em}h2{font-size:22px;font-weight:700;color:var(--title);margin:0;letter-spacing:-.025em}.indent{padding-left:46px}.desc{color:#475569;font-size:15px;margin:0}.desc b{font-weight:500;color:var(--text)}.step{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:16px;flex-shrink:0;background:var(--brand);box-shadow:0 1px 2px #0000000d}.step.done{background:var(--emerald)}.step svg{width:20px;height:20px}.footer{margin-top:auto;padding:24px 16px;border-top:1px solid rgba(226,232,240,.6);background:#ffffff80;text-align:center;font-size:12px;color:var(--faint)}label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:#334155}label.check{flex-direction:row;align-items:center;align-self:flex-end}label.check input{width:auto}input,textarea{font:inherit;padding:12px 16px;border:1px solid #cbd5e1;border-radius:12px;width:100%;color:var(--title);box-shadow:0 1px 2px #0000000d;background:#fff}input::placeholder,textarea::placeholder{color:var(--faint)}input:focus,textarea:focus{outline:none;border-color:var(--wa);box-shadow:0 0 0 2px #128c7e59}textarea{resize:vertical}button{font:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 28px;border-radius:12px;border:none;background:var(--wa);color:#fff;font-weight:700;font-size:16px;box-shadow:0 1px 2px #0000000d;transition:background .15s,box-shadow .15s;flex-shrink:0}.primary:hover:not(:disabled){background:var(--wa-hover);box-shadow:0 4px 6px -1px #0000001a}.primary svg{width:20px;height:20px}.secondary{height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--border);background:#fff;color:#334155;font-weight:600}.link{border:none;background:none;color:var(--wa);font-weight:600;font-size:14px;padding:6px 12px;border-radius:6px;transition:background .15s}.link:hover{color:var(--wa-hover);background:var(--emerald-bg)}.link.danger,.danger{color:var(--brand)}.link.danger:hover{background:#fef2f2;color:var(--brand-900)}.underline{text-decoration:underline;text-underline-offset:4px;text-decoration-color:#fca5a5;padding:0}.underline:hover{background:none;text-decoration-color:var(--brand-800)}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.add-form{display:flex;gap:12px}.add-form input{flex:1;height:48px}.muted{color:var(--muted)}.error{color:var(--red);margin:0;font-weight:500}.ok{color:var(--emerald-text);font-weight:600}.status-ok{display:inline-flex;align-items:center;gap:8px;color:var(--emerald-text);font-weight:600;font-size:17px}.status-ok svg,.check-icon{width:20px;height:20px;color:var(--emerald);flex-shrink:0}.notice{display:flex;align-items:center;gap:10px;border-radius:12px;background:#ecfdf5e6;border:1px solid rgba(167,243,208,.9);padding:12px 16px;color:#065f46;font-weight:600;box-shadow:0 1px 2px #0000000d;margin:0}.notice svg{width:20px;height:20px;color:var(--emerald);flex-shrink:0}.qr{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.qr img{border-radius:12px;border:1px solid var(--border)}.group-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--divider)}.group-row:last-child{border-bottom:1px solid var(--divider)}.group-name{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--text)}.group-name svg{width:16px;height:16px;color:var(--emerald);flex-shrink:0}.group-name.paused{color:var(--faint)}.group-meta{display:flex;align-items:center;gap:24px}.count{font-size:14px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}.messages>article+article{border-top:1px solid var(--divider)}.msg-row{padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}.msg-main{display:flex;align-items:center;gap:12px;min-width:0}.dot{width:10px;height:10px;border-radius:50%;background:var(--emerald);flex-shrink:0}.dot.off{background:#cbd5e1}.msg-title{color:var(--title);font-size:16px}.msg-title .time{font-weight:700;letter-spacing:-.025em}.msg-title .sep{color:var(--faint);margin:0 6px;font-weight:700}.msg-title .name{font-weight:700;text-transform:uppercase;letter-spacing:.025em}.msg-row:hover .name{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#cbd5e1}.msg-sub{font-size:14px;color:var(--muted);font-weight:500;margin:2px 0 0}.msg-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.chev{width:16px;height:16px;color:var(--faint);transition:transform .15s}.chev.open{transform:rotate(180deg)}.empty{color:var(--muted);margin:0}.card-foot{padding-top:16px;border-top:1px solid var(--divider)}.card-foot .primary{height:auto;padding:14px 24px;box-shadow:0 4px 6px -1px #0000001a}.editor{display:grid;grid-template-columns:1fr 320px;gap:24px}.fields{display:flex;flex-direction:column;gap:14px}.fields>.link{align-self:flex-start;padding-left:0}.days{display:flex;gap:6px;flex-wrap:wrap}.days button{min-width:48px;height:36px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#475569;font-weight:600;font-size:14px}.days button.on{background:var(--wa);color:#fff;border-color:var(--wa)}.toolbar{display:flex;gap:6px;flex-wrap:wrap}.toolbar button{height:36px;min-width:40px;padding:0 12px;border-radius:8px;border:1px solid var(--border);background:#f8fafc;color:#334155}.toolbar button:hover{background:#f1f5f9}.counter{font-size:13px;text-align:right}.counter.error{font-weight:600}.phone{background:var(--chat);border-radius:16px;padding:16px;align-self:start;min-height:300px;border:1px solid var(--border)}.phone.inline{min-height:0;margin:0 0 14px 22px;max-width:380px}.bubble{background:var(--bubble);border-radius:10px 2px 10px 10px;padding:8px 10px;font-size:14px;line-height:1.45;word-wrap:break-word;box-shadow:0 1px 1px #00000014}.bubble img{width:100%;border-radius:6px;margin-bottom:6px;display:block}.bubble small{display:block;text-align:right;color:var(--muted);font-size:11px}.auth{flex:1;display:grid;place-items:center;padding:32px 16px}.auth .card{width:100%;max-width:400px;gap:14px}.auth .primary{width:100%}.auth .link{align-self:center}@media(max-width:720px){.editor{grid-template-columns:1fr}.add-form{flex-direction:column}.topbar-inner{height:68px}.brand-sub{display:none}.brand-name{font-size:20px}.pill{display:none}.indent{padding-left:0}h2{font-size:20px}.card{padding:20px}.phone.inline{margin-left:0}}.badge{font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;white-space:nowrap}.badge.ok{background:var(--emerald-bg);color:var(--emerald-text)}.badge.warn{background:#fffbeb;color:#b45309}.badge.bad{background:#fef2f2;color:var(--brand)}.badge.info{background:#f1f5f9;color:#475569}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:4px;background:#fcfcfd}.stat-num{font-size:30px;font-weight:800;color:var(--title);letter-spacing:-.025em;font-variant-numeric:tabular-nums;line-height:1.1}.stat-num.ok-num{color:var(--emerald-text)}.stat-num.bad-num{color:var(--brand)}.stat-label{font-size:13px;font-weight:500;color:var(--muted)}.next{margin:0;color:#475569}.next b{color:var(--title)}.sub-title{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--faint);margin:0 0 4px}.log-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--divider);font-size:14px}.log-main{flex:1;min-width:0}.log-error{display:block;color:var(--brand);font-size:13px;font-weight:500}.log-date{font-size:13px;white-space:nowrap}.dot.bad{background:var(--brand)}@media(max-width:720px){.stats{grid-template-columns:repeat(2,1fr)}}.count{white-space:nowrap}@media(max-width:720px){.msg-row{flex-wrap:wrap;gap:8px}.msg-actions{width:100%;padding-left:22px;justify-content:flex-start}.msg-actions .link{margin-left:auto}.group-meta{gap:12px}}
