:root{--bg:#eef2f7;--text:#334155;--text-h:#0f172a;--muted:#64748b;--border:#d8dee8;--sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font:15px/1.45 var(--sans);letter-spacing:0;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;margin:0}h1,h2,p{margin:0}h1,h2{color:var(--text-h);letter-spacing:0;font-weight:800;line-height:1.08}h1{font-size:clamp(32px,5vw,54px)}h2{font-size:20px}h3{color:var(--text-h);margin:0;font-size:17px;line-height:1.18}button,input{font-family:inherit}.app-shell{background:var(--bg);min-height:100vh;color:var(--text);grid-template-columns:280px minmax(0,1fr);display:grid}.state-screen{text-align:center;background:var(--bg);min-height:100vh;color:var(--text);place-content:center;justify-items:center;gap:12px;padding:24px;display:grid}.state-screen h1{font-size:28px}.state-screen p{max-width:620px;color:var(--muted)}.state-screen a{text-decoration:none}.state-screen svg{color:#0f766e}.error-state svg{color:#be123c}.sidebar{border-right:1px solid var(--border);box-sizing:border-box;background:#f7f8fb;flex-direction:column;gap:28px;height:100vh;padding:24px;display:flex;position:sticky;top:0}.brand,.nav-list a,.nav-list button,.topbar,.topbar-actions,.section-head,.metric-card,.stack-item,.activity-timeline div,.architecture-strip,.architecture-strip div,.heading-actions,.rule-top,.next-action{align-items:center;display:flex}.brand{gap:12px}.brand-mark,.metric-icon,.icon-button{place-items:center;display:grid}.brand-mark{color:#fff;background:#10233f;border-radius:8px;width:40px;height:40px}.brand strong,.customer-cell strong,.stack-item strong,.automation-card strong{color:var(--text-h)}.brand span,.sidebar-panel p,.customer-cell span,.stack-item span,.import-dropzone span,.automation-card p,.automation-card small,.activity-timeline p,.architecture-strip span{color:var(--muted)}.nav-list{gap:6px;display:grid}.nav-list a,.nav-list button{color:#465468;text-align:left;background:0 0;border:0;border-radius:7px;gap:10px;min-height:42px;padding:0 12px;font-weight:650;text-decoration:none}.nav-list a.active,.nav-list a:hover,.nav-list button.active,.nav-list button:hover{color:#10233f;background:#e9edf4}.sidebar-panel{background:#fff;border:1px solid #dce2ec;border-radius:8px;margin-top:auto;padding:16px}.panel-label,.eyebrow{text-transform:uppercase;color:#697789;font-size:12px;font-weight:750}.sidebar-panel strong{color:#10233f;margin:8px 0;font-size:28px;display:block}.workspace{gap:22px;min-width:0;padding:22px 28px 36px;display:grid}.topbar{justify-content:space-between;gap:16px}.search{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:center;gap:10px;width:min(560px,100%);height:44px;padding:0 12px;display:flex}.search input{width:100%;font:inherit;color:var(--text-h);background:0 0;border:0;outline:0}.topbar-actions,.heading-actions{gap:10px}.account-pill{border:1px solid var(--border);max-width:260px;min-height:40px;color:var(--text-h);background:#fff;border-radius:7px;align-items:center;gap:9px;padding:0 10px;font-weight:750;display:flex}.account-pill img{border-radius:50%;width:24px;height:24px}.account-pill span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}button{font:inherit;cursor:pointer}.primary-button,.secondary-button,.ghost-button{white-space:nowrap;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 13px;font-weight:750;display:inline-flex}.primary-button{color:#fff;background:#0f766e}.secondary-button,.ghost-button,.icon-button{color:var(--text-h);border-color:var(--border);background:#fff}.icon-button{border-radius:7px;width:40px;height:40px}.icon-button.compact{width:32px;height:32px}.page-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:end;gap:18px;padding:12px 0 24px;display:flex}.page-heading h1{max-width:760px}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.metric-card,.panel,.customers-panel,.automation-card{border:1px solid var(--border);background:#fff;border-radius:8px}.metric-card{flex-direction:column;align-items:flex-start;gap:8px;min-height:104px;padding:16px}.metric-icon{color:#0f766e;background:#eaf7f4;border-radius:7px;width:34px;height:34px}.metric-card span{color:var(--muted)}.metric-card strong{color:var(--text-h);font-size:26px}.content-grid{grid-template-columns:minmax(0,1.6fr) minmax(340px,.8fr);align-items:start;gap:18px;display:grid}.customers-panel,.panel,.automation-band{padding:18px}.section-head{justify-content:space-between;gap:14px;margin-bottom:16px}.compact-head{margin-bottom:12px}.customer-table{gap:2px;display:grid}.empty-panel{border-top:1px solid var(--border);text-align:center;justify-content:center;place-items:center;gap:10px;min-height:180px;padding:28px;display:grid}.empty-panel strong{color:var(--text-h);font-size:18px}.empty-panel span{color:var(--muted)}.table-row{border-top:1px solid var(--border);grid-template-columns:1.15fr .8fr .85fr 1.2fr 1.1fr 40px;align-items:center;gap:14px;min-height:76px;padding:12px 0;display:grid}.table-header{color:#697789;text-transform:uppercase;min-height:34px;font-size:12px;font-weight:800}.table-row a{color:var(--text-h);overflow-wrap:anywhere;text-decoration:none}.table-row strong{color:var(--text-h)}.table-row a:hover{text-decoration:underline}.customer-cell,.table-row div,.stack-item div{min-width:0}.table-link{text-align:left;background:0 0;border:0;padding:0}.table-link:hover strong{text-decoration:underline}.customer-cell,.table-row div:not(.next-action){gap:3px;display:grid}.status{border-radius:999px;width:fit-content;padding:3px 9px;font-size:12px;font-weight:800}.status.warm{color:#047857;background:#ecfdf5}.status.at-risk{color:#be123c;background:#fff1f2}.status.hot{color:#a16207;background:#fef9c3}.status.new{color:#1d4ed8;background:#eff6ff}.status.follow-up,.status.quoted,.status.won,.status.lost{color:#334155;background:#f1f5f9}small{color:var(--muted)}.next-action{justify-content:space-between;gap:8px}.row-actions{justify-content:flex-end;gap:8px;display:flex}.icon-button.danger{color:#be123c}.right-rail{gap:18px;display:grid}.customer-management-grid{grid-template-columns:minmax(0,1.4fr) minmax(340px,.7fr)}.communication-workspace{gap:12px;display:grid}.communication-selector{grid-template-columns:minmax(280px,460px) minmax(0,1fr);align-items:stretch;gap:10px;display:grid;position:relative}.communication-search{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:center;gap:10px;min-height:42px;padding:0 13px;display:flex}.communication-search input{width:100%;color:var(--text-h);font:inherit;background:0 0;border:0;outline:0}.communication-panel-grid{grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:12px;display:grid}.snap-panel-compact{grid-column:span 2}.snap-panel-large{grid-column:span 3}.communication-customer-list{gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.communication-customer-list .muted-copy{margin:10px 0}.communication-customer-list button{border:1px solid var(--border);min-width:220px;max-width:280px;color:var(--text-h);text-align:left;background:#fff;border-radius:8px;gap:6px;padding:10px 12px;display:grid}.communication-customer-list button:hover,.communication-customer-list button.active{background:#f8fafc;border-color:#9fb1c5}.communication-customer-list span{color:var(--muted);overflow-wrap:anywhere}.details-panel,.activity-panel,.thread-panel{height:280px;overflow:auto}.message-panel,.editor-panel{height:calc(100vh - 488px);min-height:430px;overflow:auto}.thread-list{gap:8px;display:grid}.thread-list button{border:1px solid var(--border);width:100%;min-width:0;color:var(--text-h);text-align:left;background:#fff;border-radius:7px;gap:7px;padding:12px;display:grid}.thread-list button:hover,.thread-list button.active{background:#f8fafc;border-color:#9fb1c5}.full-width-action{width:100%;margin-top:16px}.muted-copy{color:var(--muted)}.detail-stack{gap:14px;display:grid}.detail-stack>div{gap:5px;display:grid}.detail-stack>.detail-actions{display:flex}.detail-highlight{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-highlight>div{border:1px solid var(--border);background:#f8fafc;border-radius:8px;padding:11px}.detail-highlight strong{color:var(--text-h);font-size:18px}.detail-stack span{color:#697789;text-transform:uppercase;font-size:12px;font-weight:800}.detail-stack a{color:var(--text-h);overflow-wrap:anywhere;text-decoration:none}.detail-stack a:hover{text-decoration:underline}.detail-stack p{color:var(--muted)}.activity-list{border-top:1px solid var(--border);padding-top:14px}.thread-list p{color:var(--muted)}.thread-topline{justify-content:space-between;align-items:start;gap:10px;display:flex}.thread-topline strong{color:var(--text-h)}.thread-topline span{color:#0f766e;background:#eaf7f4;border-radius:999px;place-items:center;min-width:26px;height:22px;font-size:12px;font-weight:800;display:grid}.message-list{gap:12px;display:grid}.message-list article{border:1px solid var(--border);background:#fff;border-radius:8px;gap:7px;padding:13px;display:grid}.message-meta{justify-content:space-between;gap:14px;display:flex}.message-meta strong{min-width:0;color:var(--text-h);overflow-wrap:anywhere}.message-meta span{color:var(--muted);flex:none;font-size:12px}.message-list p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}.inline-editor{gap:12px;display:grid}.editor-recipients{grid-template-columns:1fr .75fr .75fr;gap:10px;display:grid}.editor-field,.editor-recipients label{color:var(--text-h);text-transform:uppercase;gap:6px;font-size:12px;font-weight:800;display:grid}.inline-editor input,.inline-editor textarea,.rich-editor{border:1px solid var(--border);box-sizing:border-box;width:100%;color:var(--text-h);font:inherit;text-transform:none;background:#fff;border-radius:7px}.inline-editor input{height:38px;padding:0 10px}.inline-editor textarea{resize:vertical;min-height:210px;padding:10px}.rich-editor{text-transform:none;outline:0;min-height:230px;max-height:420px;padding:12px;line-height:1.5;overflow:auto}.rich-editor:focus{border-color:#9fb1c5;box-shadow:0 0 0 3px #0f766e1f}.rich-editor ul,.rich-editor ol{margin:8px 0 8px 22px}.rich-editor a{color:#0f766e}.editor-toolbar,.editor-actions{align-items:center;gap:8px;display:flex}.editor-actions{justify-content:space-between}.editor-actions span{color:var(--muted);font-size:13px}.attachment-box{border:1px solid var(--border);background:#f8fafc;border-radius:8px;gap:10px;padding:12px;display:grid}.attachment-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.attachment-head div{gap:3px;display:grid}.attachment-head strong,.attachment-list strong{color:var(--text-h)}.attachment-head span{color:var(--muted);font-size:13px}.attachment-picker{position:relative;overflow:hidden}.attachment-picker input{opacity:0;cursor:pointer;position:absolute;inset:0}.attachment-list{gap:8px;display:grid}.attachment-list>div{border-top:1px solid var(--border);grid-template-columns:20px minmax(0,1fr) 32px;align-items:center;gap:9px;padding-top:8px;display:grid}.attachment-list span{gap:2px;min-width:0;display:grid}.attachment-list strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.activity-list article{border-top:1px solid var(--border);gap:4px;padding:10px 0;display:grid}.activity-list article span{color:var(--muted)}.tracking-event{background:#f8fafc}.activity-list article:first-of-type{border-top:0}.import-dropzone{text-align:center;background:#f8fafc;border:1px dashed #a8b4c4;border-radius:8px;place-items:center;gap:6px;min-height:128px;padding:18px;display:grid}.stack-list,.activity-timeline{gap:10px;margin-top:14px;display:grid}.stack-item{border-top:1px solid var(--border);gap:10px;padding-top:12px}.stack-item em{color:#0f766e;margin-left:auto;font-size:12px;font-style:normal;font-weight:800}.activity-timeline div{align-items:flex-start;gap:10px}.activity-timeline svg{color:#0f766e;flex:none;margin-top:2px}.automation-band{border:1px solid var(--border);background:#f8fafc;border-radius:8px;gap:16px;display:grid}.automation-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.automation-card{gap:10px;padding:16px;display:grid}.rule-top{color:#0f766e;justify-content:space-between}.toggle{box-sizing:border-box;background:#0f766e;border-radius:999px;justify-content:flex-end;align-items:center;width:38px;height:22px;padding:2px;display:flex}.toggle span{background:#fff;border-radius:50%;width:18px;height:18px}.architecture-strip{border:1px solid var(--border);color:#fff;background:#10233f;border-radius:8px;justify-content:space-between;gap:14px;padding:14px 16px}.architecture-strip div{gap:9px}.architecture-strip span{color:#d8e1ec}.modal-backdrop{z-index:20;background:#0f233f70;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{border:1px solid var(--border);background:#fff;border-radius:8px;width:min(760px,100%);max-height:calc(100vh - 36px);padding:20px;overflow:auto;box-shadow:0 24px 70px #0f233f3d}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-grid label{color:var(--text-h);gap:6px;font-size:13px;font-weight:750;display:grid}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid var(--border);box-sizing:border-box;width:100%;color:var(--text-h);font:inherit;background:#fff;border-radius:7px}.form-grid input,.form-grid select{height:42px;padding:0 11px}.form-grid textarea{resize:vertical;min-height:96px;padding:10px 11px}.quote-entry{background:#f3fbf9;border:1px solid #b9d8d3;border-radius:8px;gap:14px;padding:14px;display:grid}.quote-entry-head{align-items:center;gap:12px;display:flex}.quote-entry-head p{color:var(--muted);font-size:13px}.quote-icon{color:#fff;background:#0f766e;border-radius:8px;place-items:center;width:38px;height:38px;display:grid}.quote-input-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;display:grid}.money-input{border:1px solid var(--border);background:#fff;border-radius:7px;align-items:center;display:flex}.money-input span{color:var(--muted);padding-left:11px;font-weight:800}.money-input input{border:0}.quick-quotes{flex-wrap:wrap;gap:8px;display:flex}.quote-chip{color:#0f766e;background:#fff;border:1px solid #b9d8d3;border-radius:7px;min-height:42px;padding:0 11px;font-weight:800}.quote-chip:hover{background:#e7f7f3}.quote-control-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.full-span{grid-column:1/-1}.modal-actions{justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.form-error{color:#be123c;background:#fff1f2;border:1px solid #fecdd3;border-radius:7px;padding:10px 12px}@media (width<=1120px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--border);height:auto;position:static}.nav-list{grid-template-columns:repeat(5,minmax(0,1fr))}.sidebar-panel{display:none}.content-grid,.communication-selector,.communication-panel-grid{grid-template-columns:1fr}.snap-panel-compact,.snap-panel-large{grid-column:span 1}.details-panel,.activity-panel,.thread-panel,.message-panel,.editor-panel{height:auto;min-height:0}}@media (width<=780px){.workspace{padding:16px}.topbar,.page-heading,.architecture-strip{flex-direction:column;align-items:stretch}.topbar-actions,.heading-actions{flex-wrap:wrap}.nav-list{grid-template-columns:1fr 1fr}.metrics-grid,.automation-grid{grid-template-columns:1fr}.table-header{display:none}.table-row{grid-template-columns:1fr;align-items:start;gap:8px}.form-grid,.quote-input-row,.quote-control-grid,.editor-recipients{grid-template-columns:1fr}.attachment-head{flex-direction:column;align-items:stretch}.modal-actions{flex-direction:column-reverse}}
