/* Desktop leads only: preserve chat layout; give each side panel its own scroll. */
@media(min-width:1151px){
 body.wb-desktop{height:100dvh;overflow:hidden}
 body.wb-desktop #app{height:calc(100dvh - 20px);min-height:0;box-sizing:border-box;display:flex;flex-direction:column;padding-top:5px;padding-bottom:8px}
 body.wb-desktop #app>h1,body.wb-desktop #app>p.lead{display:none}
 body.wb-desktop #app>.top{margin:0 0 3px;padding-block:0;font-size:11px;flex-shrink:0}
 body.wb-desktop #sd-navigation-bar{padding:3px 8px;margin:2px 0 6px;gap:6px;min-height:34px;flex-shrink:0}
 body.wb-desktop #sd-navigation-bar button{min-height:28px;padding:2px 9px;font-size:12px}
 body.wb-desktop #sd-navigation-bar [data-sd-navigation-title]{font-size:13px}
 body.wb-desktop .wb-fixed-shell{display:flex;flex-direction:column;flex:1;min-height:0}
 body.wb-desktop .wb-fixed-shell .wb-heading{margin:0 0 4px;min-height:30px;flex-shrink:0}
 body.wb-desktop .wb-fixed-shell .wb-heading h2{font-size:16px}
 body.wb-desktop .wb-fixed-shell .wb-heading button{padding:3px 8px;min-height:28px;font-size:11px}
 body.wb-desktop .wb-fixed-shell .wb-kpis{margin:0 0 4px;gap:6px;flex-shrink:0}
 body.wb-desktop .wb-fixed-shell .wb-kpi{min-height:34px;padding:3px 9px;gap:6px;font-size:12px;border-radius:7px}
 body.wb-desktop .wb-fixed-shell .wb-kpi b{font-size:20px}
 body.wb-desktop .wb-kpi .wb-icon{width:17px;height:17px}
 body.wb-desktop .wb-fixed-shell .wb-tabs{margin:0 0 3px;gap:4px;flex-shrink:0}
 body.wb-desktop .wb-fixed-shell .wb-tabs button{min-height:26px;padding:3px 8px;font-size:11px}
 body.wb-desktop .wb-sync-mini,body.wb-desktop .wb-review-health{font-size:10px;margin-bottom:3px}
 body.wb-desktop .sd-intake-filters{margin:3px 0 6px;padding:5px 8px;gap:5px 10px;flex-shrink:0;align-items:center;border-radius:8px}
 body.wb-desktop .sd-intake-filters label{flex-direction:row;align-items:center;gap:6px;font-size:11px;white-space:nowrap;flex:1 1 190px;margin:0}
 body.wb-desktop .sd-intake-filters select{min-height:28px;padding:2px 6px;font-size:12px;min-width:0;flex:1;width:auto}
 body.wb-desktop .sd-intake-filters button{min-height:28px;padding:3px 8px;font-size:11px}
 body.wb-desktop .sd-intake-filters small{font-size:10px;line-height:1.3}
 body.wb-desktop .wb-fixed-shell .wb-layout{flex:1;min-height:0;align-items:stretch}
 body.wb-desktop .wb-fixed-shell .wb-panel{padding:10px;min-height:0}
 body.wb-desktop .wb-fixed-shell .wb-inbox,body.wb-desktop .wb-fixed-shell .wb-conversation{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 body.wb-desktop .wb-fixed-shell .wb-inbox>h3{margin:0 0 5px;font-size:13px;flex-shrink:0}
 body.wb-desktop .wb-fixed-shell #wb-search{min-height:30px;padding:4px 8px;font-size:12px;flex-shrink:0}
 body.wb-desktop .wb-fixed-shell .wb-inbox-scroll{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;display:block}
 body.wb-desktop .wb-fixed-shell .wb-inbox-scroll .wb-contact{margin:5px 0;padding:7px 8px;min-height:0;flex:none;border-radius:7px}
 body.wb-desktop .wb-fixed-shell .wb-contact-open{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px;min-height:0;overflow:hidden}
 body.wb-desktop .wb-contact-open>strong{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:0 0 100%;min-width:0;font-size:13px;line-height:1.4}
 body.wb-desktop .wb-contact-open>strong a{font-size:11px}
 body.wb-desktop .wb-contact-open>strong>span:last-child{font-size:11px;white-space:nowrap}
 body.wb-desktop .wb-contact-open>strong.wb-person-heading{flex-wrap:nowrap}
 body.wb-desktop .wb-contact-open .wb-person-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.wb-desktop .wb-contact-open .wb-person-phone{flex-shrink:0}
 body.wb-desktop .wb-fixed-shell .wb-contact .wb-pill{margin:0;padding:1px 5px;line-height:1.45;font-size:10px}
 body.wb-desktop .wb-contact-open>.sd-intake-badges{display:flex;flex-wrap:nowrap;max-width:100%;gap:3px;margin:0;overflow:hidden}
 body.wb-desktop .wb-contact-open>.sd-intake-badges .wb-pill{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.wb-desktop .wb-contact-open>.sd-intake-badges+small{display:none}
 body.wb-desktop .wb-fixed-shell .wb-contact p{flex:0 0 100%;margin:2px 0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.45}
 body.wb-desktop .wb-fixed-shell .wb-contact small{margin:0;font-size:10px;line-height:1.4;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.wb-desktop .wb-contact-open>small:last-child{margin-inline-start:auto}
 body.wb-desktop .wb-fixed-shell .wb-close-lead{font-size:10px;padding:2px 6px;min-height:23px;margin-top:4px}
 body.wb-desktop .wb-contact:not(.selected):not(:focus-within)>.wb-close-lead{display:none}
 body.wb-desktop .wb-fixed-shell .wb-chat{height:auto!important;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain}
 body.wb-desktop .wb-fixed-shell .wb-bubble{flex-shrink:0}
 body.wb-desktop .wb-fixed-shell .wb-assistant{display:flex;flex-direction:column;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
 body.wb-desktop .wb-assistant>header,body.wb-desktop .wb-assistant>.wb-media,body.wb-desktop .wb-assistant>.wb-insights,body.wb-desktop .wb-assistant>form{flex:0 0 auto;min-height:auto}
 body.wb-desktop .wb-assistant .wb-insight-row{flex:0 0 auto;min-height:auto;overflow:visible;padding:7px 8px}
 body.wb-desktop .wb-assistant .wb-insight-row strong{font-size:12px;line-height:1.5}
 body.wb-desktop .wb-assistant .wb-insight-row span{display:block;overflow:visible;-webkit-line-clamp:unset;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.55}
 body.wb-desktop .wb-assistant form{position:sticky;bottom:-10px;background:#fff;padding:8px 0 10px;margin-top:8px;z-index:2;border-top:1px solid #e0e9e3}
}
