*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#17202a;font-family:Inter,Segoe UI,Arial,sans-serif}.container{max-width:1500px;margin:auto;padding:32px 20px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.14em}h1{font-size:31px;margin:8px 0}p{color:#68727d}.card{background:#fff;border:1px solid #e3e7eb;border-radius:16px;padding:20px;margin-bottom:17px;box-shadow:0 8px 30px rgba(20,30,40,.05)}.grid{display:grid;grid-template-columns:2fr 2fr 130px;gap:15px;margin-bottom:17px}label{font-size:12px;font-weight:800;display:flex;flex-direction:column;gap:7px}input,select{height:40px;border:1px solid #ccd3da;border-radius:8px;padding:0 10px;font-size:14px;background:#fff}.actions{display:flex;gap:9px;flex-wrap:wrap}button{border:0;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer;background:#111827;color:#fff}button.secondary{background:#e9edf1;color:#17202a}button:disabled{opacity:.45;cursor:not-allowed}#status{display:block;margin-top:12px;font-size:13px;color:#68727d;min-height:18px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.link-btn{padding:0;background:none;color:#56616c;font-size:12px}.filter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:10px}.toolbar-actions{display:flex;gap:7px}.small-btn{font-size:11px;padding:8px 10px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:11px 8px;border-bottom:1px solid #edf0f2;vertical-align:middle}th{font-size:10px;text-transform:uppercase;color:#68727d;white-space:nowrap}small{color:#7a858f}.muted{color:#8b949e}.score{font-weight:900;font-size:15px}.badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.high{background:#e6f7ec}.medium{background:#fff4d6}.low{background:#f2f3f5}.crm{font-size:10px;font-weight:900;padding:6px;border:1px solid #d8dde2;border-radius:7px;background:#fff}.action-btn{padding:7px 9px;font-size:10px}.web-link{color:#3347b5;font-weight:800}.check{width:15px;height:15px}.modal{position:fixed;inset:0;background:rgba(10,15,20,.45);display:flex;align-items:center;justify-content:center;padding:20px;z-index:20}.hidden{display:none}.modal-box{background:#fff;border-radius:16px;width:min(800px,100%);max-height:90vh;overflow:auto;padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.close{background:none;color:#333;font-size:25px;padding:0 5px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail{border:1px solid #e8ebee;border-radius:10px;padding:11px}.detail strong{display:block;margin-bottom:5px}.reason{margin:6px 0;padding:8px 10px;background:#f6f7f8;border-radius:8px}.notes{width:100%;min-height:90px;resize:vertical}.status-select{width:100%;margin-top:7px}@media(max-width:1050px){.filter-grid{grid-template-columns:repeat(2,1fr)}.hero{align-items:start;flex-direction:column}}@media(max-width:700px){.grid,.filter-grid{grid-template-columns:1fr}.container{padding:18px 10px}h1{font-size:25px}}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;margin-bottom:17px}
.stat{background:#fff;border:1px solid #e3e7eb;border-radius:13px;padding:13px 14px;box-shadow:0 6px 22px rgba(20,30,40,.04)}
.stat span{display:block;font-size:10px;font-weight:800;color:#6d7780;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.stat strong{font-size:23px}.stat.hot{border-color:#f0d58b;background:#fffaf0}
.action-cell{min-width:270px}.contact{background:#e9edf1;color:#17202a}
.contact-text{min-height:230px}.saved-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.saved-row small{display:block;margin-top:4px}
@media(max-width:1100px){.stats{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.stats{grid-template-columns:repeat(2,1fr)}.action-cell{min-width:220px}}

.pipeline{padding-top:15px}
.pipeline-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.pipe{border:1px solid #e3e7eb;border-radius:12px;padding:13px;background:#fbfcfd}
.pipe span{display:block;font-size:10px;font-weight:800;color:#6d7780;text-transform:uppercase}
.pipe strong{display:block;font-size:23px;margin:6px 0}
.pipe small{color:#7a858f;font-size:10px}
@media(max-width:900px){.pipeline-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.pipeline-grid{grid-template-columns:repeat(2,1fr)}}

.followup-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.follow-card{padding:16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:4px}.follow-card strong{font-size:28px}.follow-card small{color:#6b7280}.follow-card.overdue{border-left:4px solid #dc2626}.follow-card.today{border-left:4px solid #f59e0b}.follow-card.upcoming{border-left:4px solid #16a34a}.follow-card.unscheduled{border-left:4px solid #9ca3af}.followup-list{display:grid;gap:8px;margin-top:14px}.follow-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e5e7eb;border-radius:10px}.follow-row .fu-date{font-weight:700}.follow-row.overdue .fu-date{color:#b91c1c}.follow-row.today .fu-date{color:#b45309}.follow-row.upcoming .fu-date{color:#15803d}.follow-actions{display:flex;gap:6px}.mini-btn{padding:7px 10px;font-size:12px}.followup-empty{padding:14px;border:1px dashed #d1d5db;border-radius:10px;color:#6b7280}@media(max-width:900px){.followup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.follow-row{grid-template-columns:1fr}.follow-actions{justify-content:flex-start}}@media(max-width:560px){.followup-grid{grid-template-columns:1fr}}

.crm-funnel{padding-top:15px;overflow:hidden}.funnel-board{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;align-items:stretch}.funnel-column{flex:0 0 245px;background:#f7f8fa;border:1px solid #e1e5e9;border-radius:13px;padding:10px;min-height:270px;transition:.15s}.funnel-column.drag-over{border-color:#68727d;background:#eef1f4;transform:translateY(-1px)}.funnel-column-head{display:flex;justify-content:space-between;align-items:flex-start;gap:7px;margin-bottom:9px}.funnel-column-head strong{font-size:12px}.funnel-column-head small{display:block;color:#8a949e;font-size:9px;margin-top:3px}.funnel-count{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;margin-left:6px;padding:0 6px;border-radius:999px;background:#e5e9ed;font-size:10px;font-weight:900}.funnel-dropzone{display:grid;gap:8px;min-height:215px}.funnel-card{background:#fff;border:1px solid #e0e4e8;border-radius:10px;padding:10px;box-shadow:0 4px 14px rgba(20,30,40,.04);cursor:grab}.funnel-card:active{cursor:grabbing}.funnel-card.dragging{opacity:.45}.funnel-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.funnel-card-head strong{font-size:11px;line-height:1.3}.funnel-card>small{display:block;margin-top:5px;line-height:1.35}.funnel-card-meta{font-size:9px;color:#7a858f;margin-top:7px}.funnel-card-meta b{font-size:11px;color:#17202a}.funnel-follow{display:block;margin-top:7px;font-weight:700}.funnel-view{margin-top:8px;padding:6px 8px;font-size:9px;background:#edf0f2;color:#17202a;width:100%}.funnel-empty{border:1px dashed #d4d9de;border-radius:9px;padding:18px 8px;text-align:center;color:#9aa3ab;font-size:10px}.funnel-board::-webkit-scrollbar{height:8px}.funnel-board::-webkit-scrollbar-thumb{background:#cbd1d6;border-radius:999px}

.audit-score{font-weight:900}.audit-good{background:#e8f7ed}.audit-warn{background:#fff4d6}.audit-bad{background:#fdecec}

.competitor-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e5e7eb;border-radius:10px;margin-top:8px;background:#fbfcfd}.competitor-row small{display:block;margin-top:4px;max-width:480px}.competitor-row>div:last-child{font-size:11px;font-weight:800;white-space:nowrap}@media(max-width:650px){.competitor-row{flex-direction:column;align-items:flex-start}.competitor-row>div:last-child{white-space:normal}}
