:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f6f7f9;color:#16202a;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f6f7f9}button,input,select,textarea{font:inherit}button{border:1px solid #cfd6df;border-radius:8px;background:#fff;color:#16202a;min-height:38px;padding:0 14px;cursor:pointer}button:disabled{opacity:.58;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid #cfd6df;border-radius:8px;background:#fff;color:#16202a;min-height:38px;padding:9px 11px;outline:none}textarea{min-height:96px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 18% 18%,rgba(37,99,235,.26),transparent 30%),radial-gradient(circle at 82% 72%,rgba(34,197,94,.18),transparent 28%),linear-gradient(135deg,#07111f,#0f172a 54%,#111827)}.login-panel{position:relative;width:min(1080px,100%);min-height:620px;display:grid;grid-template-columns:1.14fr .86fr;gap:42px;align-items:stretch;overflow:hidden;background:#0f172ab8;border:1px solid rgba(148,163,184,.24);border-radius:22px;padding:44px;box-shadow:0 34px 110px #00000061;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.login-panel h1{margin:0;font-size:clamp(3.5rem,8vw,6.2rem);line-height:1;letter-spacing:0;color:#fff;text-shadow:0 14px 42px rgba(37,99,235,.25)}.login-brand-pane{position:relative;min-height:520px;display:grid;align-content:start;gap:44px;padding:28px 0}.login-brand-lockup{display:grid;gap:22px;align-content:start}.login-mark{width:68px;height:68px;display:flex;align-items:end;gap:5px;padding:16px;border:2px solid #06b6d4;border-radius:22px 22px 22px 8px;color:#fff;box-shadow:0 0 0 8px #06b6d414,0 18px 38px #06b6d429}.login-mark span{width:8px;border-radius:999px;background:linear-gradient(180deg,#38bdf8,#2563eb)}.login-mark span:nth-child(1){height:17px}.login-mark span:nth-child(2){height:26px}.login-mark span:nth-child(3){height:34px;background:linear-gradient(180deg,#22c55e,#06b6d4)}.login-pipeline-art{position:relative;min-height:330px;width:min(560px,100%);transform:perspective(900px) rotateY(-8deg) rotateX(3deg)}.pipeline-card{position:absolute;top:24px;width:145px;height:216px;display:grid;align-content:start;gap:18px;padding:22px;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:#0f172aad;box-shadow:inset 0 1px #ffffff0a}.pipeline-card.blue{left:0}.pipeline-card.cyan{left:168px}.pipeline-card.green{left:336px}.pipeline-card span{width:18px;height:18px;border-radius:50%}.pipeline-card.blue span{background:#2563eb}.pipeline-card.cyan span{background:#06b6d4}.pipeline-card.green span{background:#22c55e}.pipeline-card strong,.pipeline-card small{display:block;border-radius:999px}.pipeline-card strong{width:92px;height:18px;background:#94a3b838}.pipeline-card small{width:70px;height:8px;background:#94a3b829}.pipeline-path{position:absolute;left:86px;top:236px;width:310px;height:86px;border-bottom:4px solid #06b6d4;border-radius:0 0 120px 120px;transform:rotate(-8deg);opacity:.78}.pipeline-dot{position:absolute;width:30px;height:30px;border-radius:50%;box-shadow:0 0 0 7px #2563eb33}.pipeline-dot.one{left:90px;top:250px;background:#2563eb}.pipeline-dot.two{left:240px;top:268px;background:#06b6d4}.pipeline-dot.three{left:400px;top:236px;background:#22c55e;box-shadow:0 0 0 7px #22c55e33}.login-form-panel{align-self:center;display:grid;gap:18px;padding:30px;border:1px solid rgba(148,163,184,.24);border-radius:18px;background:#0f172aa8;box-shadow:inset 0 1px #ffffff0a}.login-form-panel label{color:#e2e8f0}.login-form-panel input{border-color:#94a3b842;background:#0f172aeb;color:#fff}.login-form-panel .primary-button{min-height:52px;margin-top:6px;border:0;background:linear-gradient(135deg,#2563eb,#1d4ed8)}.eyebrow{margin:0;color:#2563eb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.muted{color:#697789}.error{color:#b91c1c;margin:0}.success{color:#047857;margin:0}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-color:#2563eb;background:#2563eb;color:#fff;font-weight:700}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}label{display:grid;gap:6px;color:#3a4654;font-size:.9rem;font-weight:650}.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.app-shell.sidebar-collapsed{grid-template-columns:78px minmax(0,1fr)}.app-header{position:sticky;top:0;align-self:start;z-index:10;min-height:100vh;display:grid;grid-template-rows:auto auto 1fr;align-items:start;gap:22px;padding:22px 16px;border-right:1px solid #dce2ea;background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand,.user-button,nav button,.stat-bar div,.toolbar-actions,.search-box{display:flex;align-items:center}.brand{gap:12px;align-items:center;min-width:0}.tenant-logo{width:42px;height:42px;object-fit:contain;border-radius:6px}.brand div{display:grid;gap:2px;min-width:0}.brand span,.user-button span{color:#697789;font-size:.82rem}.brand strong{font-size:1.35rem;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collapse-button{width:100%;display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;color:#697789;background:transparent}nav{display:grid;gap:8px}nav button{width:100%;gap:8px;justify-content:flex-start;border-color:transparent;background:transparent}nav button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nav button.active{border-color:#bdd0ff;background:#eef4ff;color:#1d4ed8}.user-button{justify-self:end;gap:10px}.header-actions{align-self:end;display:grid;grid-template-columns:repeat(3,38px);align-items:stretch;gap:8px}.sidebar-collapsed .app-header{padding-inline:12px}.sidebar-collapsed .brand{justify-content:center}.sidebar-collapsed .brand div,.sidebar-collapsed .collapse-button span,.sidebar-collapsed nav button span,.sidebar-collapsed .user-button span{display:none}.sidebar-collapsed .tenant-logo{width:38px;height:38px}.sidebar-collapsed .collapse-button,.sidebar-collapsed nav button,.sidebar-collapsed .header-actions .user-button{justify-content:center;padding-inline:0}.sidebar-collapsed .header-actions{grid-template-columns:1fr}.sidebar-collapsed .header-actions .user-button{grid-column:auto}.header-actions .user-button{grid-column:1 / -1;justify-content:space-between}.alert-button{position:relative}.alert-button span{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;display:grid;place-items:center;border-radius:999px;background:#dc2626;color:#fff;font-size:.7rem;font-weight:800}.content{padding:22px;min-width:0;overflow:auto}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.stat-bar{display:flex;gap:10px;flex-wrap:wrap}.stat-bar div{min-height:40px;gap:8px;padding:0 14px;border:1px solid #dce2ea;border-radius:8px;background:#fff;font-weight:700}.toolbar-actions{gap:10px}.search-box{width:min(320px,35vw);gap:8px;padding:0 10px;border:1px solid #cfd6df;border-radius:8px;background:#fff}.search-box input{border:0;box-shadow:none;padding-left:0}.icon-button{width:38px;padding:0;display:inline-grid;place-items:center}.pipeline-board{height:calc(100vh - 132px);display:grid;grid-auto-flow:column;grid-auto-columns:minmax(282px,1fr);gap:14px;overflow-x:auto;padding-bottom:10px}.stage-column{min-width:282px;display:grid;grid-template-rows:auto 1fr;gap:10px;border:1px solid #dce2ea;border-radius:10px;background:#fff;overflow:hidden}.stage-column header{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid #edf0f4}.stage-title{display:flex;align-items:center;gap:8px}.stage-title span{width:10px;height:10px;border-radius:50%}.stage-title h2{margin:0;font-size:.98rem}.stage-list{display:grid;align-content:start;gap:10px;overflow-y:auto;padding:12px}.lead-card-wrap{display:grid;gap:6px;cursor:grab}.lead-card-wrap:active{cursor:grabbing}.stage-drop-hint{min-height:72px;display:grid;place-items:center;border:1px dashed #cfd6df;border-radius:8px;color:#697789;font-size:.86rem}.lead-card{width:100%;min-height:132px;display:grid;gap:10px;text-align:left;padding:12px;border:1px solid #dce2ea;border-radius:8px;background:#fbfcfe}.lead-card:hover{border-color:#aac2ff}.lead-card-top,.lead-card-bottom{display:flex;justify-content:space-between;gap:10px}.lead-card-top span,.lead-card-bottom span{color:#697789;font-size:.78rem}.lead-card p{margin:0;min-height:42px;color:#3a4654;line-height:1.35;word-break:break-word}.drawer{position:fixed;top:0;right:0;bottom:0;z-index:20;width:min(480px,100vw);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto auto;gap:14px;padding:18px;border-left:1px solid #dce2ea;background:#fff;box-shadow:-24px 0 70px #0f172a1f}.drawer-header{display:flex;justify-content:space-between;gap:12px}.drawer-header h2{margin:4px 0}.drawer-actions{display:grid;grid-template-columns:1fr auto auto;gap:8px}.lead-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.conversation{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.conversation h3{margin:0 0 8px}.message-list{min-height:0;display:grid;align-content:start;gap:8px;overflow-y:auto;padding:2px}.message{max-width:82%;display:grid;gap:4px;padding:10px 12px;border-radius:8px;background:#eef2f7}.message.outbound{justify-self:end;background:#e0f2fe}.message p{margin:0;line-height:1.35;word-break:break-word}.message span{color:#697789;font-size:.76rem}.send-box{display:grid;gap:8px}.send-box textarea{min-height:74px}.notes-box textarea{min-height:88px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:18px;background:#0f172a61}.modal{width:min(520px,100%);display:grid;gap:14px;padding:22px;border-radius:12px;background:#fff}.modal h2{margin:0}.modal-title-row{display:flex;align-items:start;justify-content:space-between;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.page-grid{display:grid;gap:16px}.settings-section{display:grid;gap:12px;padding:18px;border:1px solid #dce2ea;border-radius:10px;background:#fff}.settings-section h2{margin:0}.branding-grid{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:14px;align-items:end}.upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}.pipeline-new-row{display:grid;grid-template-columns:minmax(0,1fr) 64px auto;gap:10px}.pipeline-settings-list,.team-list{display:grid;gap:8px}.pipeline-settings-row{display:grid;grid-template-columns:minmax(140px,1fr) 56px 78px auto auto minmax(140px,.8fr) 38px 38px;gap:8px;align-items:center;padding:10px;border:1px solid #edf0f4;border-radius:8px}.inline-check{display:inline-flex;align-items:center;gap:6px;font-size:.82rem}.inline-check input{width:auto;min-height:auto}.danger-button{color:#b91c1c}.team-list div{display:grid;grid-template-columns:1fr 1.2fr 100px 38px auto 38px;gap:10px;align-items:center;min-height:46px;padding:0 12px;border:1px solid #edf0f4;border-radius:8px}.logo-preview{width:96px;height:72px;display:grid;place-items:center;border:1px dashed #cfd6df;border-radius:8px;background:#fbfcfe;overflow:hidden}.logo-preview img{max-width:82px;max-height:56px;object-fit:contain}.integration-list,.tenant-list{display:grid;gap:8px}.integration-list div,.tenant-list div{display:grid;grid-template-columns:1fr auto auto auto 110px auto auto;gap:14px;align-items:center;min-height:44px;padding:0 12px;border:1px solid #edf0f4;border-radius:8px}.alerts-popup{position:fixed;right:18px;bottom:18px;z-index:60;width:min(390px,calc(100vw - 36px));display:grid;gap:12px;padding:16px;border:1px solid #dce2ea;border-radius:12px;background:#fff;box-shadow:0 24px 70px #0f172a2e}.alerts-popup header{display:flex;justify-content:space-between;gap:12px}.alerts-popup h2{margin:4px 0 0;font-size:1.05rem}.alerts-list{display:grid;gap:8px;max-height:310px;overflow:auto}.alerts-list button{height:auto;display:grid;gap:4px;justify-items:start;text-align:left;padding:10px 12px;border-color:#facc15;background:#fffbeb}.alerts-list button.overdue{border-color:#fecaca;background:#fef2f2}.alerts-list span,.alerts-list small{color:#697789}.reports-page{display:grid;gap:18px}.reports-page h1{margin:4px 0 0;font-size:1.5rem}.report-filters{display:grid;grid-template-columns:160px 160px auto;gap:10px;align-items:end}.report-metrics{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:12px}.report-metric{min-height:124px;display:grid;align-content:start;gap:8px;padding:16px;border:1px solid #dce2ea;border-radius:10px;background:#fff}.report-metric div{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#eef4ff;color:#2563eb}.report-metric span{color:#697789;font-size:.84rem}.report-metric strong{font-size:1.35rem}.report-metric small{color:#697789;line-height:1.25}.reports-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.report-panel{min-width:0;display:grid;align-content:start;gap:14px;padding:18px;border:1px solid #dce2ea;border-radius:10px;background:#fff}.report-panel.wide{grid-column:1 / -1}.report-panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.report-panel h2{margin:0;font-size:1.05rem}.report-panel p{margin:4px 0 0}.daily-chart{display:grid;gap:8px}.daily-row{display:grid;grid-template-columns:58px minmax(0,1fr) 38px;align-items:center;gap:10px}.daily-row span,.daily-row strong{font-size:.82rem}.daily-row div{height:28px;display:grid;align-content:center;gap:3px}.daily-row i,.chart-legend i{display:block;height:5px;min-width:2px;border-radius:999px}.bar-leads{background:#2563eb}.bar-won{background:#16a34a}.bar-messages{background:#d97706}.chart-legend{display:flex;flex-wrap:wrap;gap:14px;color:#697789;font-size:.82rem}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.chart-legend i{width:18px}.source-list,.stage-report-list{display:grid;gap:12px}.source-row{position:relative;min-height:58px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start;padding-bottom:10px}.source-row div{display:grid;gap:4px}.source-row span,.source-row em,.stage-report-list em{color:#697789;font-size:.82rem;font-style:normal}.source-row b,.stage-report-list b{position:absolute;left:0;right:auto;bottom:0;height:6px;border-radius:999px;background:#2563eb}.stage-report-list div{position:relative;min-height:42px;display:grid;grid-template-columns:12px 1fr auto;gap:8px;align-items:center;padding-bottom:10px}.stage-report-list span{width:10px;height:10px;border-radius:50%}.stage-report-list b{background:#94a3b8}.report-table{display:grid;gap:8px}.report-table-head,.report-table-row{display:grid;grid-template-columns:minmax(160px,1.5fr) 1fr 80px 80px 80px;gap:12px;align-items:center}.report-table-head{color:#697789;font-size:.78rem;font-weight:800;text-transform:uppercase}.report-table-row{min-height:42px;padding:0 12px;border:1px solid #edf0f4;border-radius:8px}.report-table-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 820px){.login-panel{grid-template-columns:1fr;min-height:auto;gap:26px;padding:28px}.login-brand-pane{min-height:auto;padding:0;gap:24px}.login-panel h1{font-size:clamp(3rem,16vw,4.8rem)}.login-pipeline-art{display:none}.login-form-panel{padding:22px}.app-header{height:auto;grid-template-columns:1fr;padding:12px}.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:1fr}.app-header{position:static;min-height:auto;border-right:0;border-bottom:1px solid #dce2ea}.sidebar-collapsed .brand div,.sidebar-collapsed .collapse-button span,.sidebar-collapsed nav button span,.sidebar-collapsed .user-button span{display:grid}.sidebar-collapsed nav button,.sidebar-collapsed .collapse-button{justify-content:flex-start;padding-inline:14px}.user-button,.header-actions{justify-self:stretch;justify-content:space-between}nav{overflow-x:auto}.toolbar{align-items:stretch;flex-direction:column}.report-filters,.report-metrics,.reports-grid,.report-table-head,.report-table-row{grid-template-columns:1fr}.toolbar-actions{align-items:stretch;flex-wrap:wrap}.search-box{width:100%}.pipeline-board{height:calc(100vh - 230px)}.drawer{top:0}.form-grid.two,.form-grid.three,.form-grid.four,.drawer-actions,.branding-grid,.upload-row,.pipeline-new-row,.pipeline-settings-row,.team-list div,.lead-meta-grid{grid-template-columns:1fr}.report-table-head{display:none}}html.theme-dark,html.theme-dark body{background:#0f151f;color:#e7edf6}html.theme-dark button{border-color:#334155;background:#17212f;color:#e7edf6}html.theme-dark .primary-button{border-color:#3b82f6;background:#3b82f6;color:#fff}html.theme-dark input,html.theme-dark select,html.theme-dark textarea{border-color:#334155;background:#111827;color:#e7edf6}html.theme-dark input:focus,html.theme-dark select:focus,html.theme-dark textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa2e}html.theme-dark .app-header,html.theme-dark .stat-bar div,html.theme-dark .report-metric,html.theme-dark .report-panel,html.theme-dark .report-table-row,html.theme-dark .alerts-popup,html.theme-dark .pipeline-settings-row,html.theme-dark .team-list div,html.theme-dark .stage-column,html.theme-dark .lead-card,html.theme-dark .drawer,html.theme-dark .modal,html.theme-dark .settings-section,html.theme-dark .integration-list div,html.theme-dark .tenant-list div{border-color:#253244;background:#151e2b;color:#e7edf6}html.theme-dark .app-header{background:#151e2bf0}html.theme-dark nav button.active{border-color:#355b9d;background:#172b4d;color:#bfdbfe}html.theme-dark .muted,html.theme-dark .brand span,html.theme-dark .user-button span,html.theme-dark .lead-card-top span,html.theme-dark .lead-card-bottom span,html.theme-dark .message span{color:#9aa8ba}html.theme-dark .eyebrow{color:#93c5fd}html.theme-dark .report-metric div{background:#172b4d;color:#bfdbfe}html.theme-dark .search-box,html.theme-dark .logo-preview{border-color:#334155;background:#111827}html.theme-dark .search-box input{background:transparent}html.theme-dark .stage-column header{border-color:#253244}html.theme-dark .lead-card{background:#111827}html.theme-dark .lead-card:hover{border-color:#4f7fd3}html.theme-dark .message{background:#1f2937}html.theme-dark .message.outbound{background:#123c55}html.theme-dark .stage-drop-hint{border-color:#334155;color:#9aa8ba}html.theme-dark .report-table-row{border-color:#253244}html.theme-dark .alerts-list button{border-color:#854d0e;background:#2a2114}html.theme-dark .alerts-list button.overdue{border-color:#7f1d1d;background:#2b1717}html.theme-dark .modal-backdrop{background:#020617b8}html.theme-dark .error{color:#fca5a5}html.theme-dark .success{color:#86efac}
