:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17233f;background:#eef3f8;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit;letter-spacing:0}button,.report-card,.icon-btn{cursor:pointer}.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#edf3f9,#f8fbfd 48%,#e7eff7)}.login-card{width:min(440px,calc(100vw - 32px));background:#fff;border:1px solid #d9e3ee;border-radius:8px;box-shadow:0 24px 70px #12204024;padding:34px}.login-card img,.sidebar img{width:170px;object-fit:contain;background:#fff;border-radius:8px;padding:8px}.kicker{margin:0 0 6px;color:#c20f2f;font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.16em}h1,h2,h3,h4,p{margin-top:0}h1{font-size:28px;margin-bottom:4px}h2{font-size:22px;margin-bottom:0}h2 svg{vertical-align:-3px;margin-right:6px}h3{font-size:16px;margin-bottom:12px}h4{font-size:13px;margin-bottom:8px}label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#4a5c78}input,select,textarea{width:100%;border:1px solid #ccd8e6;border-radius:8px;padding:10px 12px;background:#fff;color:#17233f}textarea{min-height:76px;resize:vertical}form{display:grid;gap:14px;margin-top:20px}button,.report-card{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:10px 14px;background:#c20f2f;color:#fff;font-weight:800;text-decoration:none}button:disabled{opacity:.58;cursor:not-allowed}button.ghost,.icon-btn{background:#f2f6fb;color:#17233f;border:1px solid #d8e2ee}.danger-action{background:#fff0f3!important;color:#a4001d!important;border:1px solid #ffc8d2!important}.icon-btn{min-height:36px;border-radius:8px;padding:9px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800;text-decoration:none}.error{color:#a4001d;background:#fff0f3;border:1px solid #ffc8d2;padding:10px;border-radius:8px}.app{min-height:100vh;display:grid;grid-template-columns:220px 1fr;background:#edf3f8}.dark{background:#111827;color:#e5edf7}.sidebar{background:linear-gradient(180deg,#07123d,#0c1f58);color:#fff;padding:20px 16px;display:flex;flex-direction:column;gap:8px;position:sticky;top:0;height:100vh;box-shadow:12px 0 40px #0b164524}.sidebar button{justify-content:flex-start;min-height:44px;background:transparent;color:#cbd7ef;border:1px solid transparent}.sidebar button.active,.sidebar button:hover{background:#ffffff1f;color:#fff;border-color:#ffffff29;box-shadow:inset 3px 0 #d7193f}.workspace{padding:18px 22px 22px;min-width:0}.topbar,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.topbar{background:#fff;border:1px solid #dce6f1;border-radius:8px;padding:14px 18px;box-shadow:0 8px 24px #17233f0d}.dark .topbar,.dark .panel,.dark .metric-card{background:#172033;border-color:#2d3b52;color:#e5edf7}.topbar-actions,.toolbar-actions,.form-actions,.filters,.quick-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.topbar-actions span{display:grid;font-weight:800}.topbar-actions small{color:#6b7d99;font-weight:600}.view-stack{display:grid;gap:16px}.metrics-grid{display:grid;grid-template-columns:repeat(6,minmax(140px,1fr));gap:12px}.lead-kpis{display:grid;grid-template-columns:repeat(7,minmax(118px,1fr));gap:10px;margin-bottom:14px}.lead-kpis .metric-card{min-height:86px;padding:12px}.lead-kpis .metric-card strong{font-size:22px}.metric-card,.panel{background:#fff;border:1px solid #dce6f1;border-radius:8px;box-shadow:0 10px 30px #17233f0f}.metric-card{padding:14px;display:grid;gap:8px;min-height:104px;transition:transform .15s ease,box-shadow .15s ease}.metric-card:hover{transform:translateY(-1px);box-shadow:0 14px 34px #17233f17}.metric-card svg{color:#c20f2f}.metric-card span{color:#657793;font-weight:700;font-size:12px}.metric-card strong{font-size:24px;color:#0b1645;overflow-wrap:anywhere}.dark .metric-card strong{color:#fff}.charts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.panel{padding:16px}.bars{display:grid;gap:10px}.bar-row{display:grid;grid-template-columns:110px 1fr 52px;align-items:center;gap:10px;font-size:12px}.bar-row div{height:10px;background:#e8eef6;border-radius:999px;overflow:hidden}.bar-row i{display:block;height:100%;background:#0b8f76}.leaderboard,.notification-grid,.activity-grid,.report-grid{display:grid;gap:10px}.notification-grid{grid-template-columns:repeat(4,1fr)}.leader-row,.notice-list div,.activity-list div{display:grid;grid-template-columns:1fr auto auto auto auto;gap:10px;align-items:center;padding:10px;border:1px solid #e2eaf3;border-radius:8px}.notice-list div,.activity-list div{grid-template-columns:1fr auto}.empty{color:#74839a;margin:0}.split-view{display:grid;grid-template-columns:minmax(720px,1.45fr) minmax(360px,.8fr);gap:14px;align-items:start}.leads-fullscreen{display:block;min-width:0}.table-panel{min-width:0;padding:0;overflow:hidden}.detail-panel{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto}.table-panel .filters{display:grid;grid-template-columns:minmax(260px,1fr) 180px 210px;gap:8px;margin:0 16px 10px}.table-panel .filters label{min-width:0;position:relative}.table-panel .filters label svg{position:absolute;left:10px;top:11px;color:#667792}.table-panel .filters label input{padding-left:32px}.lead-table{display:grid;gap:8px;max-height:calc(100vh - 220px);overflow:auto;padding-right:4px}.lead-row{display:grid;justify-items:start;text-align:left;background:#fff;color:#17233f;border:1px solid #dce6f1;padding:12px}.lead-row.active{border-color:#c20f2f;background:#fff6f8}.lead-row span,.lead-row i{color:#667792;font-size:12px;font-style:normal}.bulk-mail{display:grid;grid-template-columns:140px 150px minmax(180px,1fr);gap:10px;align-items:start;margin:0 16px 10px;padding:10px;background:#f7faff;border:1px solid #dce6f1;border-radius:8px}.bulk-mail-compact{grid-template-columns:140px 1fr;align-items:center;padding:8px 10px}.bulk-mail-compact span{color:#667792;font-size:12px;font-weight:700}.bulk-mail textarea{grid-column:span 2;min-height:48px}.email-trigger-layout{display:grid;grid-template-columns:minmax(420px,1fr) 380px;gap:16px;align-items:start}.email-composer,.email-selected-panel,.email-empty-state{border:1px solid #dce6f1;border-radius:8px;background:#fbfdff;padding:16px}.email-composer{display:grid;gap:14px}.email-template-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.email-template-row button{min-height:42px;background:#fff;color:#17233f;border:1px solid #dce6f1}.email-template-row button.active{background:#0b1645;color:#fff;border-color:#0b1645}.email-composer label{display:grid;gap:6px;color:#43536f;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.email-composer textarea{min-height:220px;resize:vertical}.email-submit{min-height:46px;justify-content:center}.email-empty-state{display:grid;justify-items:center;gap:8px;color:#667792;text-align:center;min-height:260px;align-content:center}.email-selected-list{display:grid;gap:8px;max-height:420px;overflow:auto}.email-selected-row{display:grid;gap:4px;padding:12px;border:1px solid #dce6f1;border-radius:8px;background:#fbfdff}.email-selected-row span{color:#667792;font-size:13px}.email-selected-panel{display:grid;gap:12px}.email-selected-panel h3{margin:2px 0 0}.lead-sheet{max-height:calc(100vh - 380px);overflow:auto;border-top:1px solid #dce6f1;border-radius:0 0 8px 8px;background:#fff}.lead-sheet table{width:100%;min-width:1760px;border-collapse:separate;border-spacing:0;background:#fff}.lead-sheet th,.lead-sheet td{padding:7px 9px;border-bottom:1px solid #e5edf5;border-right:1px solid #edf2f8;white-space:nowrap;font-size:12px;text-align:left;max-width:210px;overflow:hidden;text-overflow:ellipsis}.lead-sheet th{position:sticky;top:0;z-index:3;background:#eef4fb;color:#50627e;text-transform:uppercase;font-size:10px;letter-spacing:.1em}.lead-sheet th:first-child,.lead-sheet td:first-child{position:sticky;left:0;z-index:2;width:42px;min-width:42px;max-width:42px;background:inherit}.lead-sheet th:first-child{z-index:4;background:#eef4fb}.lead-sheet th:nth-child(2),.lead-sheet td:nth-child(2){position:sticky;left:42px;z-index:2;min-width:270px;background:inherit;font-weight:800}.lead-sheet th:nth-child(2){z-index:4;background:#eef4fb}.lead-sheet th:nth-child(3),.lead-sheet td:nth-child(3){min-width:170px}.lead-sheet th:nth-child(4),.lead-sheet td:nth-child(4){min-width:160px}.lead-sheet th:nth-child(5),.lead-sheet td:nth-child(5){min-width:430px;max-width:520px}.lead-sheet th:nth-child(8),.lead-sheet td:nth-child(8){min-width:106px;text-align:center}.lead-sheet td:nth-child(9),.lead-sheet td:nth-child(10),.lead-sheet td:nth-child(11),.lead-sheet td:nth-child(12),.lead-sheet td:nth-child(13){text-align:center;font-weight:800}.lead-sheet th:nth-child(16),.lead-sheet td:nth-child(16){min-width:140px}.lead-sheet th:nth-child(18),.lead-sheet td:nth-child(18){min-width:150px}.lead-sheet tr{cursor:pointer}.lead-sheet tbody tr:nth-child(2n) td{background:#fbfdff}.lead-sheet tr:hover td,.lead-sheet tr.active td{background:#fff6f8}.lead-sheet input[type=checkbox]{width:16px;height:16px}.sheet-pill{border-radius:999px;padding:4px 8px;background:#e8f7f3;color:#007a64;font-weight:800}.score-pill{display:inline-flex;min-width:42px;justify-content:center;border-radius:999px;padding:5px 9px;font-weight:900}.score-pill.good{background:#e8f7f3;color:#007a64}.score-pill.warn{background:#fff7df;color:#9a5b00}.score-pill.bad{background:#fff0f3;color:#a4001d}.sheet-control{min-width:116px;height:32px;border-radius:6px;padding:6px 8px;font-size:12px;background:#fff}.sheet-notes{min-width:410px;min-height:44px;max-height:92px;border-radius:6px;padding:7px 9px;font-size:12px;line-height:1.35;resize:vertical}.mini-btn{min-height:30px;padding:6px 10px;border-radius:6px;font-size:12px;background:#f2f6fb;color:#17233f;border:1px solid #d8e2ee}.convert-action{background:#e8f7f3!important;color:#007a64!important;border-color:#b8e7dc!important}.row-actions{display:flex;align-items:center;gap:6px}.sheet-workspace-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e5edf5;background:#fff}.sheet-workspace-head h2{margin-bottom:4px}.sheet-workspace-head span{color:#667792;font-size:12px;font-weight:700}.saved-view-bar{display:flex;gap:8px;overflow-x:auto;padding:0 16px 12px}.saved-view-bar button{white-space:nowrap;min-height:34px;background:#f7faff;color:#17233f;border:1px solid #dce6f1;padding:7px 11px}.saved-view-bar button.active{background:#0b1645;color:#fff;border-color:#0b1645}.sheet-status-bar{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px}.sheet-status-bar span{display:inline-flex;gap:6px;align-items:center;min-height:30px;border:1px solid #dce6f1;border-radius:999px;background:#fbfdff;color:#667792;padding:5px 10px;font-size:12px;font-weight:800}.sheet-status-bar b{color:#0b1645}.sheet-status-bar button{min-height:30px}.focus-view{min-height:calc(100vh - 150px)}.today-hero,.review-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.42fr);gap:16px;align-items:stretch;background:#fff;border:1px solid #dce6f1;border-radius:8px;box-shadow:0 12px 34px #17233f12;padding:18px}.review-hero{display:flex;align-items:center;justify-content:space-between}.review-hero p,.today-copy p{color:#60708a;max-width:780px;margin-bottom:0}.today-copy h2{font-size:30px;margin-bottom:8px}.today-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.next-best-card{display:grid;gap:9px;align-content:start;border:1px solid #dce6f1;border-radius:8px;background:#f7faff;padding:14px}.next-best-card h3{margin-bottom:0;font-size:20px}.next-best-card span{color:#60708a;font-weight:700;font-size:12px;overflow-wrap:anywhere}.next-best-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0}.next-best-meta b{color:#0b1645;background:#fff;border:1px solid #dce6f1;border-radius:999px;padding:5px 10px;font-size:12px}.today-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.queue-card{display:grid;align-content:start;gap:10px;background:#fff;border:1px solid #dce6f1;border-top:3px solid #718096;border-radius:8px;box-shadow:0 10px 28px #17233f0f;padding:14px}.queue-card.green{border-top-color:#0b8f76}.queue-card.red{border-top-color:#c20f2f}.queue-card.blue{border-top-color:#0b62ff}.queue-card.amber{border-top-color:#d97706}.queue-card-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.queue-list{display:grid;gap:8px}.queue-list button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;background:#fbfdff;color:#17233f;border:1px solid #e2eaf3;text-align:left;padding:10px}.queue-list span{display:grid;gap:3px;min-width:0}.queue-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-list small{color:#667792;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.focus-view>.toolbar strong{border:1px solid #d8e2ee;border-radius:8px;padding:9px 12px;background:#f7faff}.focus-list{display:grid;gap:10px}.focus-card,.appointment-row{width:100%;display:grid;grid-template-columns:minmax(240px,1fr) 170px 110px;gap:12px;align-items:center;text-align:left;color:#17233f;background:#fff;border:1px solid #dce6f1;border-radius:8px;padding:12px}.focus-card span,.appointment-row span{display:grid;gap:4px}.focus-card small,.appointment-row small,.appointment-row em{color:#667792;font-style:normal;font-size:12px}.focus-card i{color:#0b1645;font-style:normal;font-weight:800}.focus-card em{justify-self:end;color:#007a64;background:#e8f7f3;border-radius:999px;padding:5px 9px;font-style:normal;font-size:12px;font-weight:800}.calendar-layout{display:grid;grid-template-columns:minmax(520px,1fr) minmax(320px,.55fr);gap:14px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(72px,1fr));gap:8px}.calendar-grid>b{color:#667792;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.calendar-empty,.calendar-day{min-height:94px;border:1px solid #dce6f1;border-radius:8px;background:#fbfdff}.calendar-day{align-items:start;justify-content:start;text-align:left;color:#17233f;padding:10px;display:grid;gap:8px}.calendar-day.today{border-color:#0b62ff;background:#f2f6ff}.calendar-day small{color:#0b62ff;font-weight:800;font-size:11px}.appointment-list{display:grid;align-content:start;gap:8px}.appointment-row{grid-template-columns:110px 1fr;padding:10px}.appointment-row em{grid-column:2}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:18px;background:#0b164561}.import-modal{width:min(1120px,calc(100vw - 32px));max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #dce6f1;border-radius:8px;box-shadow:0 28px 80px #0b164538;padding:18px}.conversion-modal{width:min(780px,calc(100vw - 32px));max-height:calc(100vh - 36px);overflow:auto;background:#fff;border:1px solid #dce6f1;border-radius:8px;box-shadow:0 28px 80px #0b164538;padding:18px}.conversion-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 14px}.dark .import-modal,.dark .conversion-modal{background:#172033;border-color:#2d3b52}.import-drop{display:grid;gap:8px;place-items:center;text-align:center;padding:20px;border:1px dashed #b9c8da;border-radius:8px;background:#f7faff;margin-bottom:14px}.import-drop input{max-width:420px}.import-controls{align-items:end;margin:0 0 12px}.import-controls span,.import-result{display:grid;gap:2px;padding:10px;border:1px solid #dce6f1;border-radius:8px;background:#fbfdff;font-size:12px;color:#667792}.import-controls b,.import-result strong{color:#17233f;font-size:18px}.import-preview-table{max-height:360px;overflow:auto;border:1px solid #dce6f1;border-radius:8px;margin:12px 0}.import-preview-table table{width:100%;min-width:1080px;border-collapse:separate;border-spacing:0;background:#fff}.import-preview-table th,.import-preview-table td{padding:8px 10px;border-bottom:1px solid #e5edf5;border-right:1px solid #edf2f8;font-size:12px;text-align:left;vertical-align:top}.import-preview-table th{position:sticky;top:0;background:#f0f5fb;color:#50627e;text-transform:uppercase;font-size:10px;letter-spacing:.1em}.import-preview-table td:last-child{min-width:280px;white-space:normal}.lead-detail-backdrop{align-items:start;justify-items:end;padding:20px}.lead-detail-backdrop .detail-panel{position:static;width:min(760px,calc(100vw - 40px));max-height:calc(100vh - 40px);overflow:auto}.detail-head{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e2eaf3;padding-bottom:14px;margin-bottom:14px}.detail-head h2{overflow-wrap:anywhere}.detail-head-actions{display:flex;align-items:start;gap:8px}.status-pill{align-self:start;border-radius:999px;background:#e8f7f3;color:#007a64;padding:6px 10px;font-size:12px;font-weight:800}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.quick-actions .icon-btn{width:100%}.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}.info-grid span{display:grid;gap:4px;padding:10px;background:#f7faff;border-radius:8px;color:#667792;font-size:12px}.info-grid b{color:#17233f;overflow-wrap:anywhere}.detail-edit-panel{margin:14px 0;padding:14px;border:1px solid #dce6f1;border-radius:8px;background:#fbfdff}.detail-edit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.forms-tabs{display:grid;gap:8px;margin-bottom:14px}details{border:1px solid #dce6f1;border-radius:8px;padding:10px;background:#fbfdff}summary{font-weight:800;cursor:pointer}details[open]{display:grid;gap:8px}details[open]>*:not(summary){margin-top:8px}.lead-form .form-grid,.form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.form-grid.compact{grid-template-columns:repeat(5,1fr);margin-top:14px}.wide{grid-column:span 2}.form-note{margin:0;color:#60708a;font-size:12px;font-weight:700;align-self:center}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.people-view{display:grid;gap:14px}.people-grid{display:grid;gap:8px;margin-top:14px}.person-row{display:grid;grid-template-columns:1fr 1.2fr 160px 120px;gap:10px;align-items:center;padding:10px;border:1px solid #e2eaf3;border-radius:8px;background:#fbfdff}.person-row span,.person-row small{color:#667792}.report-grid{grid-template-columns:repeat(5,minmax(150px,1fr))}.report-card{background:#fff;color:#17233f;border:1px solid #dce6f1;min-height:90px}.review-metrics{grid-template-columns:repeat(6,minmax(130px,1fr))}.review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.review-table{overflow:auto;border:1px solid #e2eaf3;border-radius:8px}.review-table table{width:100%;min-width:880px;border-collapse:separate;border-spacing:0}.review-table th,.review-table td{padding:10px;border-bottom:1px solid #e5edf5;border-right:1px solid #edf2f8;text-align:left;font-size:12px}.review-table th{background:#f0f5fb;color:#50627e;text-transform:uppercase;font-size:10px;letter-spacing:.1em}.review-table td:first-child{min-width:220px}.review-table td small{display:block;color:#667792;margin-top:3px}.risk-cell{color:#a4001d;font-weight:900;background:#fff6f8}.review-queue{display:grid;align-content:start;gap:8px}.review-queue button{width:100%;display:grid;grid-template-columns:1fr auto;gap:10px;text-align:left;justify-content:stretch;background:#fbfdff;color:#17233f;border:1px solid #dce6f1}.review-queue span{display:grid;gap:3px}.review-queue small{color:#667792}.review-queue em{align-self:start;color:#007a64;background:#e8f7f3;border-radius:999px;padding:4px 8px;font-style:normal;font-size:11px;font-weight:800}.loading{min-height:100vh;display:grid;place-items:center}@media (max-width: 1180px){.metrics-grid,.lead-kpis{grid-template-columns:repeat(3,1fr)}.charts-grid,.split-view{grid-template-columns:1fr}.detail-panel{position:static;max-height:none}.notification-grid{grid-template-columns:repeat(2,1fr)}.calendar-layout,.review-grid,.review-metrics,.today-grid,.today-hero{grid-template-columns:1fr}.review-hero,.sheet-workspace-head{flex-direction:column;align-items:stretch}}@media (max-width: 760px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;overflow-x:auto}.workspace{padding:12px}.topbar,.toolbar{align-items:stretch;flex-direction:column}.table-panel .filters,.quick-actions,.metrics-grid,.lead-kpis,.notification-grid,.lead-form .form-grid,.form-grid,.form-grid.compact,.info-grid,.report-grid,.bulk-mail,.bulk-mail-compact,.person-row,.focus-card,.appointment-row,.email-trigger-layout,.email-template-row{grid-template-columns:1fr}.today-copy h2{font-size:24px}.lead-sheet{max-height:calc(100vh - 440px)}.calendar-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.calendar-grid>b,.calendar-empty{display:none}.bulk-mail textarea,.wide{grid-column:span 1}}
