/* CRM keeps the messenger workspace's type, colors and quiet card surfaces. */
.crm-score{display:inline-block;font-size:10px;font-weight:500;color:#6f875e;margin-left:3px;white-space:nowrap}.crm-score-note{font-size:10px!important;margin:9px 0 0!important;color:#87917f}
.crm-next-task-title{display:block;font-size:11px;line-height:1.65;color:#435d3b}.crm-client-pick>.crm-list-contact{font-size:10px;line-height:1.5;color:#6f8066}
.crm-status-qualifying{background:#e9f2fa;color:#366584}.crm-status-negotiating,.crm-status-decision{background:#f4eedc;color:#8a6b27}.crm-status-payment{background:#e8f2df;color:#4f782e}.crm-status-postponed,.crm-status-unresponsive{background:#f1edf5;color:#76628a}.crm-status-unqualified{background:#f8ebe6;color:#916150}
.messenger-tabs{flex-wrap:wrap}.messenger-tabs>[data-crm-view]{font-weight:500}.messenger-tabs>[data-crm-view="clients"]{margin-left:auto}.messenger-tabs>[data-crm-view][aria-pressed=true]{background:#edf3e8;border-color:#cadac0;color:#345629}
.crm-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:27px 0 24px}.crm-heading .eyebrow{font-size:9px;color:var(--muted);letter-spacing:1.3px}.crm-heading h2{font-size:29px;letter-spacing:-.9px;margin:9px 0}.crm-heading p{margin:0;color:var(--muted);font-size:13px}.crm-heading .primary{flex-shrink:0;font-size:12px}
.crm-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);gap:20px;align-items:start}.crm-list-card{padding:18px;min-width:0}.crm-filters{display:flex;gap:10px}.crm-filters input{flex:1;min-width:0;font-size:12px;background:#f7f8f5}.crm-filters select{width:150px;font-size:12px}.crm-list-card>.small-note{font-size:11px;margin:15px 0 7px;color:var(--muted)}
.crm-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:12px}.crm-table th{padding:13px 8px;color:#82907e;font-size:10px;font-weight:500;border-bottom:1px solid var(--line);line-height:1.5}.crm-table th:first-child{width:40%}.crm-table th:nth-child(2){width:25%}.crm-table td{padding:17px 8px;border-bottom:1px solid #edf0e9;vertical-align:top;overflow-wrap:anywhere}.crm-table tr:last-child td{border-bottom:0}.crm-table tr.is-selected td{background:#f0f5e9}.crm-table tr.is-selected td:first-child{border-radius:9px 0 0 9px}.crm-table tr.is-selected td:last-child{border-radius:0 9px 9px 0}.crm-client-pick{display:block;padding:0;text-align:left;background:none;width:100%;color:var(--ink)}.crm-client-pick strong{display:block;font-size:13px;line-height:1.5;font-weight:550}.crm-client-pick>span{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.5}.crm-channel-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.crm-channel-tags span{font-size:9px;color:#6a7c61;border:1px solid #e2e9dc;padding:3px 5px;border-radius:4px}.crm-status{display:inline-block;padding:5px 7px;background:#edf1ea;border-radius:5px;font-size:10px;line-height:1.5;color:#5c7353}.crm-status-working,.crm-status-interested{background:#e9f2fa;color:#366584}.crm-status-proposal{background:#f4eedc;color:#8a6b27}.crm-status-won{background:#e8f2df;color:#4f782e}.crm-status-lost{background:#f8ebe6;color:#916150}.crm-table-metric,.crm-table-secondary{display:block;font-size:11px;line-height:1.5}.crm-table-secondary{color:var(--muted);margin-top:5px}
.crm-detail{min-width:0;padding:24px;overflow-wrap:anywhere}.crm-detail-empty{text-align:center;padding:94px 12px;color:var(--muted)}.crm-detail-empty h2{font-size:20px;color:#5b7052}.crm-detail-empty p{font-size:13px;line-height:1.8;margin:15px 0 0}.crm-detail-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.crm-detail-heading .eyebrow{font-size:8px;color:var(--muted)}.crm-detail-heading h2{font-size:23px;line-height:1.25;margin:9px 0}.crm-detail-heading p{font-size:12px;color:var(--muted);margin:0}.crm-detail-heading .secondary{font-size:10px;padding:8px;flex-shrink:0}.crm-detail-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 12px}.crm-detail-status label{width:100%;font-size:10px;color:var(--muted);margin:0}.crm-detail-status select{flex:1;font-size:12px;padding:10px;max-width:230px}.crm-detail-status .primary{font-size:11px;min-height:39px;padding:9px 14px}.crm-contact-info{display:flex;flex-wrap:wrap;gap:7px 15px;font-size:12px;color:#6c7b67;line-height:1.6}.crm-section{margin-top:22px;padding-top:21px;border-top:1px solid #e8ede3}.crm-section h3{font-size:14px;font-weight:600;margin:0 0 13px}.crm-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.crm-section-heading h3{margin:0}.crm-section-heading .small-note{font-size:10px}.crm-prose{font-size:12px;line-height:1.8;color:#63745d;white-space:pre-wrap;margin:0}.crm-source-details{margin-top:20px}.crm-source-details summary,.crm-business-details summary,#crm-link-details summary{cursor:pointer;font-size:12px;color:#637c54;min-height:30px}.crm-source-details dl{font-size:11px}.crm-source-details dt{color:var(--muted);margin-top:10px}.crm-source-details dd{margin:4px 0;line-height:1.6;white-space:pre-wrap}
.crm-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin-bottom:13px}.crm-channel{display:block;padding:12px;background:#f5f8f1;border:1px solid #e0e8da;border-radius:9px;text-align:left;min-width:0;overflow-wrap:anywhere;color:#44633b}.crm-channel strong{display:flex;justify-content:space-between;gap:8px;font-size:12px}.crm-channel>span{display:block;margin-top:8px;font-size:10px;line-height:1.5}.crm-channel small{display:block;font-size:9px;color:#84917c;margin-top:6px;line-height:1.5}#crm-channel-form{background:#f8faf6;border-radius:9px;padding:14px;margin-top:5px}#crm-channel-form label{font-size:11px;margin-top:13px}#crm-channel-form label:first-child{margin-top:0}#crm-channel-form input,#crm-channel-form select{font-size:11px}#crm-channel-form p{font-size:10px}#crm-channel-form .secondary{min-height:38px;font-size:11px}
.crm-ai-badge{border:1px solid #d9e6ce;color:#6d9158;font-size:10px;letter-spacing:1px;border-radius:5px;padding:4px 6px}.crm-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.crm-metrics>div{padding:13px;background:#f3f6ee;border-radius:10px}.crm-metrics span{font-size:10px;color:#7a8b6e;display:block}.crm-metrics strong{font-size:13px;font-weight:550;display:block;margin-top:8px;line-height:1.5}.crm-metrics p{font-size:11px;line-height:1.65;color:#7a8872;margin:8px 0 0}.crm-bot-assessment{padding:15px 0}.crm-bot-assessment>.small-note{font-size:10px;display:block}.crm-bot-assessment>strong{font-size:12px;display:block;margin:7px 0}.crm-bot-assessment .crm-prose{font-size:11px;color:#829078}.crm-analysis-copy h4{font-size:12px;font-weight:600;margin:20px 0 9px}.crm-analysis-copy ul{font-size:12px;line-height:1.8;color:#63745d;margin:0;padding-left:18px}.crm-analysis-copy .small-note{font-size:10px;margin-top:18px}.crm-suggested-tasks{display:grid;gap:8px}.crm-suggested-tasks>div{padding:12px;border:1px dashed #d7e2cf;border-radius:8px}.crm-suggested-tasks strong{font-size:12px;line-height:1.5}.crm-suggested-tasks p{font-size:11px;color:var(--muted);margin:6px 0 9px}.crm-suggested-tasks .secondary{font-size:10px;min-height:34px}.crm-stale{font-size:11px;color:#9b772d;background:#faf4e4;border-radius:7px;padding:10px}.crm-business-details{margin-top:16px}.crm-business-details textarea{font-size:11px;margin-top:4px}.crm-ai-config,#crm-analysis-consent{font-size:10px;margin:12px 0;color:#87917f;line-height:1.75}#crm-analyze{font-size:12px;min-height:40px}
.crm-task{display:flex;align-items:start;gap:8px;padding:11px 0;border-bottom:1px solid #edf0e9}.crm-task label{display:flex;align-items:start;gap:9px;font-size:12px;line-height:1.7;flex:1;min-width:0;margin:0}.crm-task input{margin-top:3px;flex-shrink:0}.crm-task small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.crm-task .icon-button{width:27px;height:27px;flex-shrink:0;font-size:17px}.crm-task.is-done label>span{text-decoration:line-through;color:#8d9786}#crm-task-form{margin-top:14px}#crm-task-form>input{font-size:12px}.crm-task-bottom{display:flex;align-items:end;gap:10px;margin-top:10px}.crm-task-bottom label{font-size:10px;color:var(--muted);flex:1;min-width:0;margin:0}.crm-task-bottom input{margin-top:5px;font-size:11px;padding:9px;min-height:37px}.crm-task-bottom button{font-size:11px;min-height:37px}#crm-detail-error{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
#crm-client-dialog{width:560px;padding:25px}#crm-client-dialog label{font-size:12px}#crm-client-dialog input,#crm-client-dialog select,#crm-client-dialog textarea{font-size:13px}.crm-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.crm-new-checkbox{margin-top:20px!important}.crm-new-checkbox input{flex-shrink:0}#crm-client-form>.card-heading{margin-bottom:24px}#crm-client-company+label{margin-top:18px}
@media(max-width:1100px){.crm-layout{grid-template-columns:minmax(0,1fr) minmax(325px,1fr)}.crm-table th:first-child{width:45%}.crm-table th:nth-child(2){width:26%}.crm-detail{padding:20px}.crm-list-card{padding:14px}.crm-table td{padding:14px 5px}.crm-table th{padding:12px 5px}.crm-client-pick strong{font-size:12px}}
@media(max-width:1000px){.crm-layout{grid-template-columns:1fr}.crm-detail{scroll-margin-top:16px}.crm-detail-empty{padding:36px 15px}.crm-table th:first-child{width:44%}.crm-table th:nth-child(2){width:25%}.crm-table td{padding:16px 10px}.crm-table th{padding:13px 10px}.crm-client-pick strong{font-size:14px}.messenger-tabs>[data-crm-view="clients"]{margin-left:0}}
@media(max-width:760px){.messenger-tabs{justify-content:flex-start;gap:5px}.messenger-tabs>[data-crm-view]{margin-top:4px;min-height:40px}.crm-heading{gap:12px;align-items:start;flex-direction:column;margin:22px 0 18px}.crm-heading h2{font-size:26px}.crm-heading p{font-size:12px;line-height:1.8}.crm-heading .primary{font-size:12px;min-height:42px}.crm-list-card{padding:13px}.crm-filters{gap:8px}.crm-filters select{width:125px;font-size:11px}.crm-filters input{font-size:11px;padding:10px}.crm-table th{font-size:9px;padding:12px 5px}.crm-table td{padding:15px 5px}.crm-table th:first-child{width:43%}.crm-table th:nth-child(2){width:26%}.crm-client-pick strong{font-size:12px}.crm-client-pick>span{font-size:10px}.crm-table-metric,.crm-table-secondary{font-size:10px}.crm-channel-tags span{font-size:8px}.crm-status{font-size:9px;padding:4px 5px}.crm-detail{padding:20px 17px}.crm-detail-heading h2{font-size:22px}.crm-metrics{gap:8px}.crm-metrics>div{padding:12px}.crm-metrics strong{font-size:12px}.crm-metrics p{font-size:10px}.crm-form-pair{grid-template-columns:1fr;gap:18px}#crm-client-dialog{padding:22px 18px}.crm-task .icon-button{width:36px;height:36px}}
.crm-table th:first-child{width:34%}.crm-table th:nth-child(2){width:18%}.crm-table th:nth-child(3){width:23%}.crm-table th:nth-child(4){width:25%}
@media(max-width:760px){.crm-table,.crm-table tbody{display:block}.crm-table thead{display:none}.crm-table tr{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:15px 13px;padding:17px 9px;border-bottom:1px solid var(--line)}.crm-table tr:last-child{border-bottom:0}.crm-table td{padding:0;border:0;min-width:0}.crm-table tr.is-selected{background:#f0f5e9;border-radius:9px}.crm-table tr.is-selected td{background:transparent}.crm-table .crm-list-status{text-align:right}.crm-table td[data-column-label]::before{content:attr(data-column-label);display:block;font-size:9px;line-height:1.5;color:#83917d;margin-bottom:7px}.crm-client-pick strong{font-size:13px}.crm-table-metric,.crm-table-secondary,.crm-next-task-title{font-size:11px}.crm-status{font-size:10px;padding:5px 7px}.crm-channel-tags span{font-size:9px}.crm-list-next-task .crm-table-secondary{margin-top:0}.crm-next-task-title+.crm-table-secondary{margin-top:5px}}

/* Client cards have their own screen; the shared messenger DOM lives in a stable host. */
#crm-list-screen .crm-list-card{width:100%;padding:22px}#crm-list-screen .crm-filters{max-width:700px}#crm-list-screen .crm-table th{font-size:11px}#crm-list-screen .crm-table td{padding-top:19px;padding-bottom:19px}#crm-list-screen .crm-client-pick strong{font-size:14px}#crm-list-screen .crm-client-pick>span,#crm-list-screen .crm-next-task-title,#crm-list-screen .crm-table-metric,#crm-list-screen .crm-table-secondary{font-size:12px}
#crm-card-screen{margin-top:24px;scroll-margin-top:18px}#crm-back-to-list{display:inline-flex;align-items:center;min-height:40px;padding:7px 0;margin-bottom:14px;font-size:13px;color:#607950}#crm-card-loading{min-height:180px;color:var(--muted);font-size:13px}#crm-detail{padding:0;background:none;border:0}#crm-card-header{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:24px 28px}#crm-card-header .crm-detail-heading{flex:1;align-items:center;gap:30px}#crm-card-header .crm-detail-heading h2{font-size:27px}#crm-card-header .crm-detail-heading .secondary{font-size:12px;padding:10px 14px;min-height:40px}#crm-card-header .crm-detail-status{margin:0;flex:0 1 410px;justify-content:flex-end;gap:9px}#crm-card-header .crm-detail-status label{width:auto;margin:0;font-size:11px}#crm-card-header .crm-detail-status select{width:210px;flex:none;max-width:100%}#crm-card-header .crm-detail-status .primary{font-size:12px}
.crm-card-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding:18px 0 13px;margin-bottom:20px}.crm-card-tabs button{padding:12px 19px;min-height:44px;background:transparent;border:1px solid transparent;border-radius:10px;color:#78896e;font-size:13px}.crm-card-tabs button[aria-selected=true]{background:#edf3e7;color:#3f6330;border-color:#d4e1ca}.crm-card-tabs button:hover{background:#edf2e9}
#crm-channel-controls{padding:18px 23px}#crm-channel-controls .crm-channel-section{margin:0;padding:0;border:0}#crm-channel-controls .crm-section-heading{margin-bottom:13px}#crm-channel-controls .crm-channels{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:9px}#crm-channel-controls .crm-channel{flex:0 1 230px;min-width:160px;background:#f8faf5}#crm-channel-controls .crm-channel[aria-pressed=true]{background:#edf4e5;border-color:#a9c792;box-shadow:0 0 0 1px #b5cc9f}#crm-channel-controls .crm-channel strong{font-size:13px}#crm-channel-controls .crm-channel>span{font-size:11px}#crm-channel-controls .crm-channel small{font-size:10px}#crm-channel-controls #crm-link-details{max-width:500px}#crm-channel-controls #crm-link-details summary{font-size:12px}#crm-chat-feedback{margin:12px 0;font-size:12px}#crm-chat-feedback:empty{display:none}#crm-chat-host{margin-top:18px;min-width:0}#crm-chat-host>.chat-card{width:100%;min-height:0}#crm-chat-host .chat-header h2{font-size:20px}#crm-chat-host .chat-messages{height:clamp(340px,45vh,560px)}#crm-chat-host .chat-empty{min-height:360px}#crm-chat-host .reply-form{padding:20px 24px}#crm-chat-host .chat-messages,#crm-chat-host .chat-header{padding-left:24px;padding-right:24px}#crm-chat-host .bubble-text{font-size:14px}.crm-chat-empty{padding:60px 25px;margin-top:18px;text-align:center;color:#809173}.crm-chat-empty h3{font-size:21px;font-weight:500;color:#5b754c;margin:0 0 13px}.crm-chat-empty p{max-width:420px;font-size:13px;line-height:1.8;margin:0 auto}
#crm-info-panel{max-width:100%;padding:28px}#crm-info-panel .crm-contact-info{font-size:14px;gap:12px 24px}#crm-info-panel .crm-info-section{border:0;margin-top:25px;padding-top:0}#crm-info-panel .crm-info-section h3{font-size:17px}#crm-info-panel .crm-prose{font-size:14px;max-width:900px}#crm-info-panel .crm-source-details{margin-top:25px;max-width:900px}#crm-info-panel .crm-source-details summary{font-size:13px}#crm-info-panel .crm-source-details dl{font-size:12px}
#crm-ai-panel{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);align-items:start;gap:20px}#crm-ai-panel>.crm-section{margin:0;padding:25px;border:1px solid var(--line)}#crm-ai-panel .crm-section h3{font-size:16px}#crm-ai-panel .crm-metrics strong{font-size:15px}#crm-ai-panel .crm-metrics span{font-size:11px}#crm-ai-panel .crm-metrics p{font-size:12px}#crm-ai-panel .crm-prose,#crm-ai-panel .crm-analysis-copy ul{font-size:13px}#crm-ai-panel .crm-analysis-copy h4{font-size:13px}#crm-ai-panel .crm-task label{font-size:13px}#crm-ai-panel .crm-task-bottom{flex-wrap:wrap}#crm-ai-panel .crm-business-details textarea{font-size:12px}#crm-ai-panel #crm-analysis-consent{font-size:11px}#crm-detail-error{background:#fff8f5;border-radius:9px;padding:12px 16px}#crm-detail-error:empty{display:none}
@media(max-width:1050px){#crm-card-header{align-items:flex-start;flex-direction:column;gap:18px}#crm-card-header .crm-detail-heading{width:100%}#crm-card-header .crm-detail-status{flex:auto;justify-content:flex-start;width:100%}#crm-ai-panel{grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr)}}
@media(max-width:760px){#crm-list-screen .crm-list-card{padding:13px}#crm-list-screen .crm-table td{padding:0}#crm-list-screen .crm-client-pick strong{font-size:13px}#crm-list-screen .crm-client-pick>span,#crm-list-screen .crm-next-task-title,#crm-list-screen .crm-table-metric,#crm-list-screen .crm-table-secondary{font-size:11px}#crm-card-screen{margin-top:18px}#crm-card-header{padding:19px 17px;gap:17px}#crm-card-header .crm-detail-heading{gap:12px}#crm-card-header .crm-detail-heading h2{font-size:23px}#crm-card-header .crm-detail-heading .secondary{font-size:11px;padding:8px 10px}#crm-card-header .crm-detail-status label{width:100%}#crm-card-header .crm-detail-status select{width:auto;flex:1;min-width:160px;font-size:12px}.crm-card-tabs{gap:3px;padding:13px 0 12px;margin-bottom:15px}.crm-card-tabs button{padding:10px 12px;font-size:12px;flex:1}#crm-channel-controls{padding:16px}#crm-channel-controls .crm-channel{min-width:120px;flex:1 1 125px;padding:11px}#crm-channel-controls .crm-channel strong{font-size:12px}#crm-channel-controls .crm-channel>span{font-size:10px}#crm-channel-controls .crm-channel small{font-size:9px}#crm-chat-host .chat-messages{height:370px;padding:16px 13px}#crm-chat-host .chat-header{padding:16px 13px;gap:8px}#crm-chat-host .chat-header h2{font-size:17px}#crm-chat-host .chat-header .secondary{font-size:10px;padding:8px}#crm-chat-host .reply-form{padding:14px}#crm-chat-host .bubble-text{font-size:13px}#crm-info-panel{padding:21px 17px}#crm-info-panel .crm-prose{font-size:13px}#crm-ai-panel{grid-template-columns:1fr;gap:16px}#crm-ai-panel>.crm-section{padding:20px 17px}#crm-ai-panel .crm-metrics strong{font-size:13px}#crm-ai-panel .crm-metrics p{font-size:11px}.crm-chat-empty{padding:42px 20px}.crm-chat-empty h3{font-size:19px}}
