:root{--blue:#0877bd;--dark:#071d2b;--light:#eef8fd;--line:#d8e5ec;--text:#19303d;--muted:#66808d}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f9fb;color:var(--text)}
.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:12px}.brand img{width:46px;height:46px;object-fit:contain}.brand strong{display:block;font-size:17px}.brand span{display:block;color:var(--muted);font-size:12px}
.status{font-size:13px;color:#55717f;display:flex;gap:8px;align-items:center}.dot{width:9px;height:9px;background:#20a463;border-radius:50%}
.container{max-width:1180px;margin:auto;padding:28px 20px 40px}.hero{display:grid;grid-template-columns:1.6fr .7fr;gap:22px;background:linear-gradient(135deg,#073d62,#0b8acb);color:white;border-radius:22px;padding:34px;box-shadow:0 14px 40px #0a527c22}
.eyebrow{font-size:12px;letter-spacing:2px;opacity:.8}.hero h1{font-size:38px;line-height:1.05;margin:8px 0 14px}.hero p{max-width:720px;line-height:1.6;opacity:.92}
.actions{display:flex;gap:10px;margin-top:22px}.primary,.secondary,.tiny{border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}.primary{background:white;color:#086da9}.secondary{background:#eaf6fc;color:#0a5e8f}.hero .secondary{background:#ffffff18;color:white;border:1px solid #ffffff55}
.hero-card{background:#ffffff16;border:1px solid #ffffff38;border-radius:18px;padding:24px;display:flex;flex-direction:column;justify-content:center;text-align:center}.hero-card .big{font-size:52px;font-weight:800}.hero-card small{margin-top:14px;opacity:.8}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stats div,.panel{background:white;border:1px solid var(--line);border-radius:16px}.stats div{padding:17px}.stats span{display:block;color:var(--muted);font-size:12px}.stats strong{font-size:28px;margin-top:5px;display:block}
.grid{display:grid;grid-template-columns:1.5fr .8fr;gap:18px}.panel{padding:20px;margin-bottom:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel h2{margin:0 0 14px;font-size:18px}.tiny{padding:8px 11px;background:#eef7fb;color:#12688f}
.filters{display:flex;gap:8px;margin-bottom:12px}.filters input,.filters select,label input{border:1px solid var(--line);border-radius:9px;padding:10px;background:white;color:var(--text)}.filters input{flex:1}
.lead{border:1px solid var(--line);border-radius:12px;padding:13px;margin:9px 0;cursor:pointer}.lead:hover{border-color:#79bce0}.lead-top{display:flex;justify-content:space-between;gap:8px}.lead-name{font-weight:800}.badge{font-size:10px;border-radius:20px;padding:4px 7px;background:#edf5f8}.badge.approved{background:#e5f7ed;color:#18764b}.badge.sent{background:#e6f0ff;color:#1d5d9b}.badge.blocked{background:#fff0f0;color:#a43a3a}.meta{font-size:12px;color:var(--muted);margin-top:6px}.score{font-size:12px;color:#0c6eaa;font-weight:700}
label{display:block;font-size:12px;color:var(--muted);margin:13px 0}label input{display:block;width:100%;margin-top:6px}.notice{background:#fff9e8;border:1px solid #f0dfaa;padding:12px;border-radius:10px;font-size:12px;line-height:1.5;margin:18px 0}.notice strong{color:#7b5b00}.full{width:100%}
.preview{border:1px solid var(--line);border-radius:12px;padding:18px;white-space:pre-wrap;line-height:1.6;min-height:150px}.preview.empty{color:var(--muted);display:flex;align-items:center;justify-content:center}.activity{max-height:240px;overflow:auto;font-size:12px}.log{padding:8px 0;border-bottom:1px solid #edf2f4}.log time{color:var(--muted);margin-right:8px}
footer{text-align:center;color:var(--muted);font-size:12px;padding:14px}
@media(max-width:820px){.hero,.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.hero h1{font-size:30px}}
