/* Two-workspace refinement. The approved sidebar is intentionally out of scope. */
.asfit-v2 .cv2-command .crm-command-attention-band { min-width:0; }
.asfit-v2 .cv2-command .cv2-command-attention { min-height:0; }
.asfit-v2 .cv2-command .cv2-command-attention:has(.crm-operational-empty) { display:grid; grid-template-columns:minmax(240px,.9fr) minmax(0,1.6fr); align-items:center; gap:20px; }
.asfit-v2 .cv2-command .cv2-command-attention:has(.crm-operational-empty) .asfit-card-header { margin:0; }
.asfit-v2 .cv2-command .attention-queue-list { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:230px; align-content:start; overflow-y:auto; min-height:0; }
.asfit-v2 .cv2-command .attention-queue-list:has(.crm-operational-empty) { grid-template-columns:minmax(0,1fr); }
.asfit-v2 .cv2-command .crm-operational-empty { padding:12px 14px; }
.asfit-v2 .cv2-command .crm-command-analysis { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:20px; align-items:start; }
.asfit-v2 .cv2-command .crm-command-analysis > :only-child { grid-column:1/-1; }
.asfit-v2 .cv2-command .crm-command-analysis:not(:has(> section)) { display:none; }
.asfit-v2 .cv2-command .crm-command-analysis:not(:has(.cv2-feed-item)) { grid-template-columns:minmax(0,1fr); }
.asfit-v2 .cv2-command .crm-command-analysis .cv2-command-pipeline { order:0; }
.asfit-v2 .cv2-command .crm-command-analysis .cv2-command-activity { order:1; }
.asfit-v2 .crm-command-analysis .crm-stage-chart { grid-template-columns:144px minmax(0,1fr); gap:24px; }
.asfit-v2 .crm-command-analysis .crm-stage-chart__summary { flex-direction:column; gap:10px; align-items:center; text-align:center; }
.asfit-v2 .crm-command-analysis .crm-stage-chart__summary p { gap:4px; font-size:11px; }
.asfit-v2 .crm-command-analysis .crm-stage-chart__summary p strong { font-size:12px; }
.asfit-v2 .crm-command-analysis .crm-stage-chart__bars { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
.asfit-v2 .cv2-command .cv2-feed { max-height:310px; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.asfit-v2 .cv2-command .cv2-command-overview { padding:16px 20px; }
.asfit-v2 .cv2-command .cv2-work-list a { gap:12px; align-items:center; }
.asfit-v2 .cv2-command .cv2-work-list a span { min-width:0; }
.asfit-v2 .cv2-command .cv2-work-list a strong { flex:none; }
/* Filter overflow remains native-scrollable, with explicit keyboard-operable edge controls. */
.asfit-v2 :is(.cv2-inbox,.cv2-conversation) .crm-filter-rail { display:flex; align-items:center; gap:5px; min-width:0; max-width:100%; }
.asfit-v2 :is(.cv2-inbox,.cv2-conversation) .crm-filter-rail .lead-inbox-quick-filters { min-width:0; flex:1; scrollbar-width:thin; padding-bottom:6px; }
.asfit-v2 :is(.cv2-inbox,.cv2-conversation) .crm-filter-edge { display:none; flex:0 0 28px; width:28px; min-height:32px; padding:0; align-items:center; justify-content:center; border:1px solid #cbd5e1; background:#fff; border-radius:5px; color:#334155; cursor:pointer; }
.asfit-v2 :is(.cv2-inbox,.cv2-conversation) .crm-filter-rail.has-overflow .crm-filter-edge { display:flex; }
.asfit-v2 :is(.cv2-inbox,.cv2-conversation) .crm-filter-edge:disabled { opacity:.35; cursor:default; }
.asfit-v2 :is(.cv2-inbox,.cv2-conversation) .crm-filter-edge:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.asfit-v2 .cv2-conversation .conversation-detail-header { flex-wrap:wrap; align-items:flex-start; padding:12px 16px; gap:10px 12px; }
.asfit-v2 .cv2-conversation .conversation-detail-identity { flex:1 1 260px; min-width:0; align-items:flex-start; }
.asfit-v2 .cv2-conversation .conversation-detail-titles { min-width:0; }
.asfit-v2 .cv2-conversation .conversation-detail-name-row { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; }
.asfit-v2 .cv2-conversation .conversation-detail-name-row h1 { min-width:0; max-width:none; flex:1 1 180px; font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
.asfit-v2 .cv2-conversation .conversation-detail-titles p { max-width:none; margin:4px 0 0; font-size:12px; line-height:1.5; }
.asfit-v2 .cv2-conversation :is(.crm-conversation-contact,.crm-conversation-service) { display:block; overflow-wrap:anywhere; }
.asfit-v2 .cv2-conversation .crm-conversation-service { color:var(--text-muted); font-size:11px; margin-top:2px; }
.asfit-v2 .cv2-conversation .conversation-detail-actions { flex:1 1 100%; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin:0; }
.asfit-v2 .cv2-conversation .conversation-active-pane > .message-list { min-height:100px; overflow-y:auto; overscroll-behavior:contain; padding:20px; gap:18px; }
.asfit-v2 .cv2-conversation .message { max-width:min(92%,780px); min-width:0; flex:0 0 auto; }
.asfit-v2 .cv2-conversation .message-body { max-width:100%; min-width:0; white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; line-height:1.65; }
.asfit-v2 .cv2-conversation .message-meta { flex-wrap:wrap; line-height:1.5; }
.asfit-v2 .cv2-conversation .conversation-composer { flex:0 0 auto; }
.asfit-v2 .cv2-conversation .crm-message-history-empty { margin:auto; text-align:center; padding:24px; font-size:13px; color:var(--text-muted); }
.asfit-v2 .cv2-conversation .message-list:has(.message) > .crm-message-history-empty { display:none; }
.asfit-v2 .cv2-conversation .conversation-context-pane { overscroll-behavior:contain; }
@media(min-width:1025px) and (max-width:1279px) {
 .asfit-v2 .cv2-conversation .conversation-split-workspace { grid-template-columns:minmax(0,1fr) 260px; grid-template-areas:'thread context'; }
 .asfit-v2 .cv2-conversation .conversation-inbox-pane { display:none; }
 .asfit-v2 .cv2-conversation .conversation-split-workspace.is-context-collapsed { grid-template-columns:minmax(0,1fr); grid-template-areas:'thread'; }
}
@media(max-width:1200px) {
 .asfit-v2 .cv2-command .crm-command-analysis { grid-template-columns:minmax(0,1fr); }
 .asfit-v2 .crm-command-analysis .crm-stage-chart { grid-template-columns:180px minmax(0,1fr); }
}
@media(max-width:1024px) {
 .asfit-v2 .cv2-conversation .conversation-split-workspace { height:calc(100dvh - 140px); min-height:520px; }
 .asfit-v2 .cv2-conversation .conversation-active-pane > .message-list { padding:16px; }
}
@media(max-width:700px) {
 .asfit-v2 .cv2-command .cv2-command-attention:has(.crm-operational-empty) { grid-template-columns:minmax(0,1fr); gap:12px; }
 .asfit-v2 .cv2-command .attention-queue-list { grid-template-columns:minmax(0,1fr); }
 .asfit-v2 .crm-command-analysis .crm-stage-chart { grid-template-columns:minmax(0,1fr); }
 .asfit-v2 .crm-command-analysis .crm-stage-chart__summary { flex-direction:row; text-align:left; }
 .asfit-v2 .crm-command-analysis .crm-stage-chart__bars { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
 .asfit-v2 .cv2-conversation .page-pretitle { display:none; }
 .asfit-v2 .cv2-conversation .page-header-row h1.page-title { font-size:22px; line-height:1.35; margin:0; }
 .asfit-v2 .cv2-conversation .conversation-detail-header { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; }
 .asfit-v2 .cv2-conversation .conversation-chat-back { grid-column:1; grid-row:1; }
 .asfit-v2 .cv2-conversation .conversation-detail-identity { grid-column:1/-1; grid-row:2; width:100%; }
 .asfit-v2 .cv2-conversation .conversation-detail-actions { grid-column:2; grid-row:1; justify-content:flex-end; }
}
