/* WaWink Pro | Phase 3 Inbox. Scoped to the current lead-table / conversation-modal UX. */
.walink-inbox-page{--ww3-soft:color-mix(in srgb,var(--walink-accent-emerald) 8%,var(--walink-card-bg));min-width:0}
.ww3-inbox-eyebrow{display:inline-flex;align-items:center;gap:8px;font:700 .72rem/1.4 Inter,sans-serif;letter-spacing:.085em;text-transform:uppercase;color:var(--walink-accent-emerald);margin-bottom:10px}
.ww3-inbox-eyebrow .ww-icon{width:17px;height:17px}
.walink-inbox-page .walink-inbox-intro h1{font-family:'Plus Jakarta Sans',Inter,sans-serif;letter-spacing:-.045em;margin-bottom:8px}
.walink-inbox-page .ww3-inbox-description{font-size:.875rem;line-height:1.65;color:var(--walink-text-muted);margin:0;max-width:680px}
.walink-inbox-page .walink-inbox-toolbar{gap:18px;margin-bottom:22px}
.walink-inbox-page .walink-inbox-filters{padding:12px;background:var(--walink-card-bg);border:1px solid var(--walink-card-border);border-radius:15px}
.walink-inbox-page .walink-inbox-filter{letter-spacing:0}
.walink-inbox-page .walink-inbox-filter select,.walink-inbox-page .walink-inbox-filter input{min-height:44px}
.walink-inbox-page .walink-inbox-tabs{gap:8px;scrollbar-width:thin}
.walink-inbox-page .walink-inbox-tabs a{font-weight:650;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.walink-inbox-page .walink-inbox-tabs a[aria-current="page"]{box-shadow:0 4px 12px rgba(8,126,114,.15)}
.walink-inbox-page .walink-inbox-list{border-radius:17px;box-shadow:0 8px 30px rgba(10,29,38,.035)}
.walink-inbox-page .walink-inbox-table th{font-size:.68rem;letter-spacing:.06em;padding-top:17px;padding-bottom:17px}
.walink-inbox-page .walink-inbox-table td{line-height:1.5}
.walink-inbox-page .walink-inbox-table tbody tr{transition:background .15s ease}
.walink-inbox-page .ww3-contact-phone{display:inline-flex;gap:7px;align-items:center;max-width:100%;font-size:.83rem;font-weight:700;color:var(--walink-text-primary);overflow-wrap:anywhere}
.walink-inbox-page .ww3-contact-phone .ww-icon{width:14px;height:14px;color:var(--walink-accent-emerald)}
.walink-inbox-page .ww3-customer-name{font-weight:690;color:var(--walink-text-primary)}
.walink-inbox-page .ww3-transfer-btn{font-size:.73rem;min-height:34px;gap:5px;padding:6px 9px}
.walink-inbox-page .ww3-transfer-btn .ww-icon{width:14px;height:14px}
.walink-inbox-page .walink-inbox-open-chat{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px}
.walink-inbox-page .walink-inbox-open-chat .ww-icon{width:16px;height:16px}
.walink-inbox-page .walink-inbox-empty .ww3-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;background:var(--ww3-soft);border:1px solid var(--walink-card-border);color:var(--walink-accent-emerald);border-radius:18px;margin-bottom:15px}
.walink-inbox-page .ww3-empty-icon .ww-icon{width:28px;height:28px}
/* Both overlays live outside .walink-inbox-page; restrict conversation styles by unique class. */
.ww3-reassign-card{max-width:440px}
.ww3-modal-title{margin:0;font:750 1.06rem/1.35 'Plus Jakarta Sans',Inter,sans-serif;color:var(--walink-text-primary);display:flex;align-items:center;gap:10px}
.ww3-modal-title .ww-icon{width:19px;height:19px;color:var(--walink-accent-emerald)}
.ww3-reassign-close{min-width:38px;padding:8px}
.ww3-reassign-close .ww-icon{width:17px;height:17px}
.ww3-chat-shell{border-radius:19px;box-shadow:0 28px 70px rgba(1,20,26,.25)}
.ww3-chat-shell .walink-chat-header{background:var(--walink-card-bg);border-bottom:1px solid var(--walink-card-border);gap:16px}
.ww3-chat-shell .walink-chat-avatar{width:44px;height:44px;font:800 .9rem/1 'Plus Jakarta Sans',Inter,sans-serif;background:linear-gradient(145deg,#087e72,#17bfa7)}
.ww3-chat-shell .walink-chat-customer-title{font-family:'Plus Jakarta Sans',Inter,sans-serif;line-height:1.3;overflow-wrap:anywhere}
.ww3-chat-shell .walink-chat-meta-subtitle{line-height:1.5}
.ww3-chat-shell .walink-inbox-chat-actions{gap:8px}
.ww3-chat-shell .walink-inbox-chat-actions .walink-btn{display:inline-flex;align-items:center;gap:7px;min-height:40px}
.ww3-chat-shell .walink-inbox-chat-actions .ww-icon{height:16px;width:16px}
.ww3-chat-shell .walink-chat-close-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:11px;border:1px solid var(--walink-card-border);background:var(--walink-input-bg);transition:background .15s ease,color .15s ease}
.ww3-chat-shell .walink-chat-close-btn:hover{background:var(--walink-card-bg)}
.ww3-chat-shell .walink-chat-close-btn .ww-icon{width:19px;height:19px}
.ww3-chat-shell .walink-chat-stream{min-height:0;background:var(--walink-bg);gap:15px;scrollbar-width:thin}
.ww3-chat-shell .walink-msg-bubble-wrapper{max-width:min(82%,690px)}
.ww3-chat-shell .walink-msg-bubble{font:450 .885rem/1.58 Inter,sans-serif;padding:11px 15px;box-shadow:0 3px 12px rgba(1,20,26,.045)}
.ww3-chat-shell .walink-msg-bubble.inbound{border-radius:15px 15px 15px 5px}
.ww3-chat-shell .walink-msg-bubble.outbound{border-radius:15px 15px 5px 15px}
.ww3-chat-shell .walink-chat-footer{border-top:1px solid var(--walink-card-border);background:var(--walink-card-bg)}
.ww3-chat-shell .walink-composer-form{align-items:stretch}
.ww3-chat-shell .walink-composer-input{min-height:46px;border-radius:12px;font-size:.875rem}
.ww3-chat-shell .walink-composer-send-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:12px;white-space:nowrap}
.ww3-chat-shell .walink-composer-send-btn .ww-icon{width:17px;height:17px}
.ww3-chat-shell .walink-notes-drawer{background:var(--walink-card-bg)}
.ww3-chat-shell .walink-inbox-notes-form .walink-textarea{flex:1 1 220px;min-width:0;font-size:.85rem}
.ww3-chat-shell .walink-inbox-notes-form .walink-btn{display:inline-flex;gap:8px;min-height:40px}
.ww3-chat-shell .walink-inbox-notes-form .ww-icon{width:16px;height:16px}
.ww3-chat-shell .walink-inbox-expander{padding:0 13px}
.ww3-chat-shell .walink-inbox-expander>summary{justify-content:flex-start;gap:9px;min-height:47px;font-size:.83rem}
.ww3-chat-shell .walink-inbox-expander>summary .ww-icon{width:17px;height:17px;color:var(--walink-accent-emerald)}
.ww3-chat-shell .walink-inbox-expander>summary::after{margin-left:9px}
.ww3-chat-shell .walink-inbox-expander-hint{margin-left:auto}
.ww3-stream-loading{text-align:center;color:var(--walink-text-muted);font-size:.84rem;padding:40px 0}
.ww3-chat-shell input,.ww3-chat-shell select,.ww3-chat-shell textarea{max-width:100%}
.ww3-chat-shell :is(button,input,textarea,select,summary):focus-visible,.walink-inbox-page :is(a,button,input,select):focus-visible{outline:2px solid var(--walink-accent-emerald);outline-offset:3px}
@media(max-width:820px){
 .walink-inbox-page .walink-inbox-filters{width:100%;padding:11px}
 .walink-inbox-page .walink-inbox-tabs{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}
 .walink-inbox-page .walink-inbox-tabs a{flex:none;scroll-snap-align:start}
 .walink-inbox-page .walink-inbox-table tbody tr{box-shadow:0 3px 12px rgba(1,20,26,.045)}
 .walink-inbox-page .walink-inbox-table td:last-child::before{content:none}
 .walink-inbox-page .walink-inbox-table td:last-child{display:block}
 .walink-inbox-page .walink-inbox-open-chat{width:100%;min-height:44px}
 .ww3-chat-shell .walink-msg-bubble-wrapper{max-width:91%}
 .ww3-chat-shell .walink-inbox-chat-actions{justify-content:flex-start}
 .ww3-chat-shell .walink-inbox-chat-actions .walink-chat-close-btn{margin-left:auto}
}
@media(max-width:520px){
 .walink-inbox-page .walink-inbox-toolbar{gap:15px}
 .walink-inbox-page .ww3-inbox-description{font-size:.82rem}
 .walink-inbox-page .walink-inbox-filters{gap:9px}
 .walink-inbox-page .walink-inbox-filter{flex:1 1 150px}
 .walink-inbox-page .walink-inbox-table tbody tr{border-radius:13px}
 .walink-inbox-page .ww3-contact-phone{font-size:.78rem}
 .ww3-chat-shell{border-radius:11px;height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}
 .ww3-chat-shell .walink-chat-header{padding:11px 12px;gap:9px}
 .ww3-chat-shell .walink-chat-avatar{width:37px;height:37px;font-size:.8rem}
 .ww3-chat-shell .walink-inbox-chat-actions{gap:6px}
 .ww3-chat-shell .walink-inbox-chat-actions .walink-btn{font-size:.72rem;padding:7px 9px}
 .ww3-chat-shell .walink-chat-stream{padding:12px;gap:11px}
 .ww3-chat-shell .walink-msg-bubble{padding:9px 12px;font-size:.84rem}
 .ww3-chat-shell .walink-chat-footer{padding:10px 10px max(10px,env(safe-area-inset-bottom))}
 .ww3-chat-shell .walink-composer-form{flex-wrap:nowrap;gap:7px}
 .ww3-chat-shell .walink-composer-input{flex:1 1 0;min-width:0;min-height:46px;font-size:16px}
 .ww3-chat-shell .walink-composer-send-btn{flex:0 0 auto;min-height:46px;padding:10px 12px}
 .ww3-chat-shell .walink-inbox-expander-hint{font-size:.67rem}
}
@media(max-width:355px){.ww3-chat-shell .ww3-template-action{font-size:0!important;padding:7px!important;gap:0}.ww3-chat-shell .ww3-template-action .ww-icon{width:18px;height:18px}.ww3-chat-shell .ww3-template-action span{font-size:0}}
@media(prefers-reduced-motion:reduce){.walink-inbox-page .walink-inbox-table tbody tr,.ww3-chat-shell .walink-chat-close-btn,.walink-inbox-page .walink-inbox-tabs a{transition:none}}
