/* Conversations presentation only; existing actions, polling and safeguards stay authoritative. */
#app #page-conversations .conversation-shell{position:relative;display:grid;grid-template-columns:280px minmax(0,1fr) 280px;border:1px solid var(--border);border-radius:10px;background:#fff;isolation:isolate}
#app #page-conversations .page-header{align-items:center;gap:10px;margin-bottom:12px}
#app #page-conversations .page-title{font-size:20px}
#app #page-conversations .page-sub{font-size:11px;margin-top:3px}
#app #page-conversations .page-actions .btn{font-size:11px;padding:6px 9px}
#app #page-conversations .conversation-list-pane{min-height:0;min-width:0;overflow-y:auto;background:#fff;border-right:1px solid var(--border)}
#app #page-conversations .conversation-list-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:10px;background:#fff!important}
#app #page-conversations .conversation-list-toolbar .btn{background:transparent;border:0;border-radius:0;padding:8px 10px;font-size:11px;box-shadow:none}
#app #page-conversations .conversation-list-toolbar .btn[aria-pressed=true]{color:var(--accent);border-bottom:2px solid var(--accent);background:transparent!important}
#app #conversation-search{width:100%;flex:1 1 100%;min-width:0;margin-top:6px;padding:8px 10px;font-size:12px;background:#f8fafc;border-radius:6px}
#app #page-conversations .conversation-record-link{position:relative;display:grid!important;grid-template-columns:34px minmax(0,1fr);column-gap:10px;text-decoration:none;padding:14px 13px!important;border-left:3px solid transparent!important;min-height:86px;box-sizing:border-box}
#app #page-conversations .conversation-record-link:hover{background:#f8fafc!important}
#app #page-conversations .conversation-record-link.selected{background:#eef4ff!important;border-left-color:var(--accent)!important}
#app #page-conversations .conversation-record-link>strong{font-size:12px;color:#24344a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:18px}
#app #page-conversations .conversation-record-link>div{grid-column:2;min-width:0;font-size:10px!important;margin:3px 0 0!important}
#app #page-conversations .conversation-record-link>div:last-of-type{font-size:11px!important}
#app #page-conversations .conversation-list-avatar{grid-column:1;grid-row:1/4;align-self:center;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dce8fa;color:#526d9b;font-size:11px;font-weight:600}
#app #page-conversations .conversation-unread-count{position:absolute;right:12px;top:14px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 3px;border-radius:20px;background:var(--accent);color:white;font-size:9px}
#app #page-conversations .conversation-list-empty{padding:16px;font-size:12px;color:var(--muted)}
#app #page-conversations .conversation-thread{min-width:0;background:#fff;display:flex;flex-direction:column;overflow:hidden}
#app #page-conversations #conv-header{flex:none;display:flex;align-items:center!important;flex-wrap:wrap!important;padding:13px 16px!important;min-height:64px;background:#fff;color:var(--text);border-bottom:1px solid var(--border)}
#app #conv-header [data-conversation-heading]{flex:1 1 120px;overflow-wrap:anywhere}
#app #conv-header [data-conversation-heading] strong{display:block;font-size:13px;color:#24344a;font-weight:650}
#app #conv-header [data-conversation-heading] small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:3px}
#app #conv-header .conversation-actions{gap:5px!important;flex:none}
#app #conv-header .conversation-actions .btn{font-size:10px;padding:6px 8px;min-height:29px}
#app #conversation-details-toggle{display:none}
#app #page-conversations #conv-messages{padding:22px 20px!important;gap:18px!important;flex:1 1 0%!important;flex-wrap:nowrap!important;min-height:0;overflow-y:auto;background:#fcfdff;overscroll-behavior:contain}
#app #page-conversations .sms-thread-row{flex:none;min-width:0;flex-wrap:nowrap!important}
#app #page-conversations .sms-thread-bubble{max-width:84%;padding:11px 14px;border-radius:12px 12px 12px 3px;font-size:12px;line-height:1.65;background:#eef1f6;color:#334155;box-shadow:none}
#app #page-conversations .outbound .sms-thread-bubble{border-radius:12px 12px 3px 12px;background:#287afa;color:#fff}
#app #page-conversations .sms-message-meta{font-size:9px;opacity:.78;margin:4px 0;line-height:1.5}
#app #page-conversations .sms-message-status{font-size:10px;line-height:1.5;font-weight:500;margin-top:8px}
#app #page-conversations #sms-blocked-banner{padding:8px 16px;font-size:11px;line-height:1.4;background:#fff1f2;border-bottom:1px solid #ffe0e5;color:#a32939}
#app #page-conversations #conv-reply{flex:none!important;border-top:1px solid var(--border);background:white;padding:10px 16px 14px!important;min-height:0}
#app #conversation-compose-channel{font-size:11px;font-weight:600;color:var(--accent);padding:0 0 8px;border-bottom:1px solid #f0f3f7;margin-bottom:9px}
#app #page-conversations #reply-body{font-size:12px;min-height:60px!important;background:#fff;border:1px solid #e2e8f0;line-height:1.5;padding:10px;border-radius:7px}
#app #page-conversations #manual-sms-send{min-height:36px!important;font-size:11px;border-radius:7px}
#app #page-conversations #manual-sms-feedback{font-size:11px}
#app #page-conversations .conversation-details{min-width:0;min-height:0;overflow-y:auto;background:#fff;border-left:1px solid var(--border);font-size:12px}
#app #page-conversations .conversation-details-empty{padding:30px 20px;text-align:center;color:var(--muted);line-height:1.7;font-size:12px}
#app #conversation-details .conversation-contact{display:block;font-size:12px}
#app #conversation-details .conversation-profile{display:flex;flex-direction:column;align-items:center;padding:22px 16px 18px;text-align:center;gap:9px}
#app #conversation-details .conversation-profile-avatar{width:52px;height:52px;display:grid;place-items:center;background:#78b99b;color:white;border-radius:50%;font-size:15px;font-weight:600}
#app #conversation-details .conversation-contact-name{font-size:13px;line-height:1.5}
#app #conversation-details .conversation-detail-section{padding:16px;border-top:1px solid var(--border)}
#app #conversation-details h3{font-family:inherit;font-size:11px;font-weight:650;color:#40536b;margin:0 0 12px}
#app #conversation-details .conversation-contact-fields{margin:0;font-size:11px}
#app #conversation-details dt{color:#8190a4;margin-top:12px;font-size:10px}
#app #conversation-details dt:first-child{margin-top:0}
#app #conversation-details dd{margin:5px 0 0;overflow-wrap:anywhere;color:#40536b;line-height:1.5}
#app #conversation-details .conversation-contact-row{gap:6px;margin:10px 0 0;min-width:0}
#app #conversation-details .conversation-contact-row>span:first-child:not(.conversation-tag){font-size:10px;color:#8190a4}
#app #conversation-details .conversation-detail-section:has(#conversation-add-tag) .conversation-contact-row>span:first-child:not(.conversation-tag){display:none}
#app #conversation-details .conversation-tag{padding:3px 7px;gap:3px;background:#eef5ff;color:#416792;border:0;border-radius:5px;font-size:10px}
#app #conversation-details .conversation-tag button{min-height:22px!important;min-width:20px!important;padding:0!important;font-size:14px!important}
#app #conversation-details .btn,#app #conversation-details select{font-size:10px;padding:6px 8px;min-height:28px;border-radius:5px}
#app #conversation-details .conversation-contact-feedback{padding:0 16px 16px;font-size:11px}
#app #conversation-details .conversation-details-close{display:none}
@media(min-width:1500px){#app #page-conversations .conversation-shell{grid-template-columns:300px minmax(0,1fr) 300px}}
@media(max-width:1199px){
 #app #page-conversations .conversation-shell{grid-template-columns:240px minmax(0,1fr)}
 #app #conversation-details-toggle{display:inline-flex}
 #app #page-conversations .conversation-details{display:none;position:absolute;right:0;top:0;bottom:0;width:min(320px,100%);z-index:30;box-shadow:-12px 0 30px #15243b20}
 #app #page-conversations.contact-details-open .conversation-details{display:block}
 #app #conversation-details .conversation-details-close{display:flex;margin:10px 10px 0 auto}
 #app #conv-header .conversation-actions{flex-wrap:wrap}
}
@media(max-width:768px){
 #app #page-conversations .conversation-shell{grid-template-columns:minmax(0,1fr)}
 #app #page-conversations .conversation-thread{display:none}
 #app #page-conversations.mobile-thread-open .conversation-thread{display:flex}
 #app #page-conversations #conv-header{padding:10px 12px!important;gap:8px!important}
 #app #page-conversations #conv-messages{padding:14px 12px!important}
 #app #page-conversations .sms-thread-bubble{max-width:92%}
 #app #page-conversations #conv-reply{padding:10px 12px max(10px,env(safe-area-inset-bottom))!important}
 #app #page-conversations #reply-body{font-size:16px!important}
 #app #page-conversations .page-header{margin-bottom:8px;gap:6px}
 #app #page-conversations .page-sub{display:none}
 #app #conv-header .conversation-actions{margin-left:0;max-width:100%}
}
