:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#161922;background:#f4f6f8;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{border:0}.crm-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr) 292px;background:linear-gradient(180deg,#ffffffbd,#f4f6f8eb),#f4f6f8}.sidebar{background:#11151d;color:#f8fafc;padding:22px 18px;display:flex;flex-direction:column;gap:24px;min-height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:6px 4px 12px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#1f8a70;color:#fff;box-shadow:0 12px 28px #1f8a7052}.brand strong,.detail-hero h2,.topbar h1,.section-head h2{letter-spacing:0}.brand strong{display:block;font-size:17px;line-height:1.1}.brand p,.topbar p,.section-head p,.detail-hero p,.metric p,.side-card p,.ai-head p,.insight p,.entity-card p,.activity-head,.info-grid p,.data-board p{margin:0;color:#7b8494;font-size:12px;line-height:1.4}.brand p{color:#8b94a6}.sidebar nav{display:grid;gap:6px}.sidebar nav button,.side-card button{color:#aeb6c5;background:transparent;border-radius:8px;height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;cursor:pointer;transition:background .16s ease,color .16s ease}.sidebar nav button:hover,.sidebar nav .nav-active{color:#fff;background:#202633}.side-card{margin-top:auto;padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#171d28}.side-card strong{display:block;margin-top:8px;font-size:13px;line-height:1.45}.side-card button{margin-top:12px;height:30px;padding:0;color:#7dd3fc}.workspace{min-width:0;padding:22px}.topbar{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar h1{margin:4px 0 0;font-size:clamp(24px,2vw,30px);line-height:1.08;color:#111827}.top-actions{display:flex;align-items:center;gap:10px}.search,.search-field{height:40px;min-width:260px;display:flex;align-items:center;gap:8px;background:#fff;color:#8a94a6;border:1px solid #e5e9f0;border-radius:8px;padding:0 12px}.search input,.search-field input{width:100%;border:0;outline:0;color:#1f2937;background:transparent}.primary-button,.ghost-button,.icon-button,.filter-button,.action-row button,.send-button{border-radius:8px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}.primary-button{color:#fff;background:#2563eb;box-shadow:0 12px 28px #2563eb3d}.primary-button:hover,.send-button:hover{transform:translateY(-1px)}.primary-button:disabled{cursor:not-allowed;opacity:.48;transform:none;box-shadow:none}.icon-button,.filter-button,.ghost-button{color:#384151;background:#fff;border:1px solid #e5e9f0}.icon-button{width:40px;padding:0}.metrics-row{margin-top:22px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{min-height:104px;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;gap:12px;padding:16px;border:1px solid #e3e7ee;border-radius:8px;background:#fff;box-shadow:0 10px 30px #1118270d}.metric-icon{width:42px;height:42px;border-radius:8px;display:grid;place-items:center}.metric strong{display:block;margin-top:4px;font-size:24px;color:#111827}.metric>span{grid-column:2;width:max-content;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.metric.blue .metric-icon,.metric.blue>span{background:#eaf1ff;color:#2563eb}.metric.green .metric-icon,.metric.green>span{background:#e8f7ef;color:#16815b}.metric.amber .metric-icon,.metric.amber>span{background:#fff4de;color:#b7791f}.metric.ink .metric-icon,.metric.ink>span{background:#edf0f4;color:#344054}.mode-strip{margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:12px}.segmented{display:inline-flex;padding:4px;border:1px solid #dde3ec;border-radius:8px;background:#eef2f7}.segmented button{height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border-radius:6px;color:#667085;background:transparent;cursor:pointer}.segmented .selected{background:#fff;color:#111827;box-shadow:0 5px 16px #11182714}.content-grid{margin-top:16px;display:grid;grid-template-columns:minmax(360px,.9fr) minmax(520px,1.45fr);gap:16px}.pipeline,.detail{min-width:0;border:1px solid #e0e5ed;border-radius:8px;background:#ffffffdb;box-shadow:0 14px 36px #1118270f}.pipeline{padding:16px}.detail{overflow:hidden}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.section-head h2{margin:3px 0 0;font-size:20px}.stage-row{margin-top:16px;display:grid;grid-template-columns:repeat(5,minmax(96px,1fr));gap:8px;overflow-x:auto;padding-bottom:2px}.stage-pill{min-height:70px;padding:12px;border-radius:8px;background:#f8fafc;border:1px solid #e7ebf1;text-align:left;cursor:pointer}.stage-pill span{display:block;color:#667085;font-size:12px}.stage-pill b{display:block;margin-top:10px;font-size:22px}.stage-pill.amber b{color:#b7791f}.stage-pill.blue b{color:#2563eb}.stage-pill.teal b{color:#0f766e}.stage-pill.green b{color:#16815b}.entity-list{margin-top:12px;display:grid;gap:10px}.entity-card{width:100%;text-align:left;padding:14px;border:1px solid #e4e8ef;border-radius:8px;background:#fff;cursor:pointer}.entity-card:hover,.entity-card.active{border-color:#2563eb;box-shadow:0 12px 28px #2563eb1f}.entity-card-top{display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-size:12px;font-weight:800;background:linear-gradient(135deg,#2563eb,#1f8a70)}.entity-card strong{color:#111827;font-size:14px}.entity-card-grid{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.entity-card-grid span{min-width:0;color:#8a94a6;font-size:11px}.entity-card-grid b{display:block;color:#111827;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.progress-row{margin-top:12px;display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:10px}.progress-row div{height:7px;border-radius:999px;background:#edf1f6;overflow:hidden}.progress-row span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1f8a70,#2563eb)}.progress-row b{color:#344054;font-size:12px}.detail-hero{min-height:148px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px;color:#f8fafc;background:linear-gradient(135deg,#11151dfa,#1d283af5),#11151d}.detail-hero p{color:#b8c2d2}.detail-hero h2{margin:4px 0 12px;max-width:620px;font-size:clamp(22px,2vw,30px);line-height:1.12}.tag-row{display:flex;flex-wrap:wrap;gap:8px}.tag-row span{min-height:26px;display:inline-flex;align-items:center;padding:0 9px;border-radius:999px;color:#d7e0ec;background:#ffffff17;border:1px solid rgba(255,255,255,.1);font-size:12px;font-weight:700}.health-ring{flex:0 0 auto;width:82px;height:82px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#24b47e 0,#24b47e 86%,#ffffff29 86%,#ffffff29);position:relative}.health-ring:after{content:"";position:absolute;top:7px;right:7px;bottom:7px;left:7px;border-radius:inherit;background:#141a24}.health-ring strong,.health-ring span{z-index:1}.health-ring strong{align-self:end;font-size:22px}.health-ring span{align-self:start;color:#b8c2d2;font-size:11px}.action-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 18px;border-bottom:1px solid #e4e8ef;background:#fff}.action-row button{color:#1f2937;background:#f5f7fa;border:1px solid #e6eaf1;white-space:nowrap;font-size:13px}.tabs{display:flex;gap:4px;padding:0 18px;overflow-x:auto;border-bottom:1px solid #e4e8ef;background:#fff}.tabs button{min-width:96px;height:46px;color:#667085;background:transparent;border-bottom:2px solid transparent;cursor:pointer}.tabs .active{color:#2563eb;border-bottom-color:#2563eb;font-weight:800}.timeline,.info-grid,.data-board,.enablement,.oppty-list{padding:18px}.timeline{display:grid;gap:14px;max-height:488px;overflow:auto}.activity{display:grid;grid-template-columns:116px minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid #edf0f4}.activity:first-child{padding-top:0}.activity-date{padding-left:12px;border-left:4px solid #2563eb;color:#111827;font-weight:900;white-space:nowrap;font-size:15px}.activity-body h4{margin:8px 0 6px;color:#111827;font-size:16px}.activity-body p{margin:0;color:#384151;line-height:1.62}.activity-head{display:flex;gap:8px;flex-wrap:wrap}.activity-head span{padding:3px 8px;border-radius:999px;background:#eef2f7;color:#667085;font-size:12px}.next-step{margin-top:10px;display:flex;align-items:flex-start;gap:8px;color:#1f654e;font-size:13px;line-height:1.45}.info-grid,.data-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-grid div,.data-board div{min-height:96px;padding:14px;border-radius:8px;border:1px solid #e4e8ef;background:#fff}.info-grid strong,.data-board strong{display:block;margin-top:8px;color:#111827;line-height:1.45}.data-board strong{font-size:26px}.enablement,.oppty-list{display:grid;gap:10px}.enablement-row,.oppty-list button{min-height:54px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid #e4e8ef;border-radius:8px;background:#fff;color:#344054}.enablement-row.done{border-color:#b8e6d0;color:#16815b;background:#f1fbf6}.oppty-list button{justify-content:space-between;cursor:pointer}.oppty-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.oppty-list b{margin-left:auto;color:#111827}.ai-panel{min-height:100vh;padding:22px 18px;border-left:1px solid #e1e6ee;background:#fff}.ai-head{display:flex;align-items:center;gap:10px}.ai-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#111827;background:#fff4de}.ai-head strong{display:block;color:#111827}.insight{margin-top:18px;padding:14px;border-radius:8px;background:#11151d;color:#f8fafc}.insight strong{display:block;margin-top:8px;line-height:1.48}.insight.soft{background:#f5f7fa;color:#111827;border:1px solid #e4e8ef}.send-button{width:100%;margin-top:14px;color:#fff;background:#1f8a70}.modal-layer{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;background:#11151d85;z-index:10}.modal{width:min(760px,100%);max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;border-radius:8px;background:#fff;box-shadow:0 26px 70px #11182747;overflow:hidden}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #e4e8ef}.modal-head p{margin:0;color:#667085;font-size:13px}.modal-head h3{margin:4px 0 0;font-size:22px}.minute-list{padding:18px 22px;overflow:auto}.minute-list .search-field{width:100%;min-width:0;margin-bottom:12px;background:#f5f7fa}.minute-item{width:100%;display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:14px 0;text-align:left;background:transparent;border-bottom:1px solid #edf0f4;cursor:pointer}.minute-item strong{display:block;color:#111827;font-size:15px}.minute-item p{margin:5px 0 0;color:#8a94a6}.radio{width:22px;height:22px;border-radius:50%;border:2px solid #a3adbb;display:grid;place-items:center;margin-top:2px;color:#fff}.minute-item.selected .radio{border-color:#2563eb;background:#2563eb}.form-grid{padding:18px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow:auto}.form-grid label{display:grid;gap:8px;color:#344054;font-size:13px;font-weight:800}.form-grid .wide{grid-column:1 / -1}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #d9e0ea;border-radius:8px;background:#fff;color:#111827;outline:0}.form-grid input,.form-grid select{height:40px;padding:0 12px}.form-grid textarea{min-height:112px;resize:vertical;padding:12px;line-height:1.5}.modal-actions{margin-top:auto;display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #e4e8ef;background:#fff}@media(max-width:1500px){.crm-shell{grid-template-columns:248px minmax(0,1fr)}.ai-panel{display:none}}@media(max-width:1240px){.crm-shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding-inline:12px}.brand div,.sidebar nav button:not(.nav-active):after,.sidebar nav button,.side-card{font-size:0}.sidebar nav button{justify-content:center;padding:0}.brand{justify-content:center}.content-grid{grid-template-columns:1fr}}@media(max-width:820px){.crm-shell{display:block}.sidebar{min-height:auto;flex-direction:row;align-items:center;overflow-x:auto}.brand div,.side-card{display:none}.sidebar nav{display:flex;min-width:max-content}.workspace{padding:16px}.topbar,.top-actions,.mode-strip{align-items:stretch;flex-direction:column}.search{min-width:0;width:100%}.metrics-row{grid-template-columns:repeat(2,minmax(0,1fr))}.action-row,.info-grid,.data-board,.form-grid,.activity{grid-template-columns:1fr}}@media(max-width:520px){.workspace{padding:12px}.metrics-row{grid-template-columns:1fr}.pipeline,.detail{border-radius:8px}.detail-hero{flex-direction:column}.modal-layer{padding:10px}.modal{max-height:calc(100vh - 20px)}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}}
