.moduleHead{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.moduleHead h2{font-size:18px;margin:0 0 4px}.moduleHead p{font-size:11px;color:#8d96a5;margin:0}.three{grid-template-columns:repeat(3,1fr)!important}.moduleGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.moduleCard,.templateCard{padding:18px}.moduleIcon{width:38px;height:38px;border-radius:10px;background:#eaf6f2;color:#167c62;display:grid;place-items:center;margin-bottom:12px}.moduleCard h3,.templateCard h3{font-size:13px;margin:0 0 7px}.moduleCard p{font-size:10px;color:#8b94a2;line-height:1.55;min-height:32px}.moduleFoot{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid #f0f2f5;padding-top:12px;margin-top:13px;font-size:9px;color:#9aa2af}.dangerLink{border:0;background:none;color:#c44a4a;font-size:9px;padding:0}.smallPrimary{border:0;background:#eaf6f2;color:#167c62;border-radius:6px;padding:5px 8px;font-size:9px;font-weight:650}.rowActions{display:flex;align-items:center;gap:8px}.tableTitle{padding:0 17px 13px}.tableTitle h2{font-size:14px;margin:0 0 3px}.tableTitle span,.muted{font-size:9px;color:#9aa2af}.pill,.templateCat{background:#eef7f4;color:#167c62;border-radius:14px;padding:6px 9px;font-size:9px}.templateTop{display:flex;justify-content:space-between}.templateCard label{font-size:8px;padding:4px 7px;border-radius:10px}.approved{background:#e8f7f0;color:#258361}.draft{background:#f1f3f7;color:#687284}.templateBody{background:#fafbfc;border:1px solid #eef0f3;border-radius:8px;padding:12px;margin-top:12px;font-size:10px;color:#697384;line-height:1.55;min-height:76px}.automationFlow{display:flex;align-items:center;gap:8px;color:#9aa2af;font-size:9px;margin-bottom:14px}.flowNode{background:#f5f7f9;border:1px solid #e8ebef;padding:7px;border-radius:7px;color:#526070}.inboxPage{height:calc(100vh - 80px);overflow:hidden}.inboxLayout{height:calc(100vh - 190px);display:grid;grid-template-columns:310px 1fr;overflow:hidden}.conversationList{border-right:1px solid #e7eaf0;overflow:auto}.conversationItem{display:flex;gap:10px;padding:13px;text-decoration:none;color:#293344;border-bottom:1px solid #f0f2f5}.conversationItem.selected{background:#eef8f5}.conversationItem b{display:block;font-size:11px}.conversationItem span{display:block;font-size:9px;color:#929aa7;margin-top:3px}.chatPanel{display:flex;flex-direction:column;min-width:0}.chatHeader{padding:13px 16px;border-bottom:1px solid #e7eaf0;display:flex;justify-content:space-between;align-items:center}.chatHeader b{display:block;font-size:12px}.chatHeader span{display:block;color:#8e97a5;font-size:9px;margin-top:3px}.chatMessages{flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:9px;background:#fafbfc}.bubble{max-width:70%;padding:9px 11px;border-radius:10px;font-size:10px;line-height:1.5}.bubble.in{align-self:flex-start;background:#fff;border:1px solid #e5e8ed}.bubble.out{align-self:flex-end;background:#e6f4ef}.bubble small{display:block;color:#8f98a5;font-size:8px;margin-top:5px}.composer{display:flex;gap:8px;padding:12px;border-top:1px solid #e7eaf0;background:#fff}.composer textarea{flex:1;border:1px solid #e2e6ec;border-radius:8px;padding:9px;resize:none;outline:0;font-size:10px}.analyticsBars{margin-top:20px}.aRow{display:grid;grid-template-columns:170px 1fr 45px;gap:10px;align-items:center;margin:15px 0;font-size:9px}.aTrack{height:9px;background:#edf0f3;border-radius:5px;overflow:hidden}.aTrack i{display:block;height:100%;background:#78c7b0;border-radius:5px}.aRow b{text-align:right;font-size:9px}.mix{display:flex;gap:35px;padding:30px 10px}.mix b{display:block;font-size:30px}.mix span{font-size:9px;color:#8e97a5}.insight{border-top:1px solid #eef0f3;padding-top:15px}.insight b{font-size:10px}.insight p{font-size:9px;color:#8d96a4;line-height:1.5}.negative{color:#c24d4d;font-weight:700}@media(max-width:950px){.moduleGrid{grid-template-columns:1fr 1fr}.three{grid-template-columns:1fr 1fr!important}.inboxLayout{grid-template-columns:250px 1fr}}@media(max-width:700px){.moduleGrid,.three{grid-template-columns:1fr!important}.inboxLayout{grid-template-columns:1fr}.conversationList{display:none}.inboxPage{height:auto;overflow:auto}.inboxLayout{height:600px}}
.queued{background:#edf7ff;color:#3d78a8}.paused{background:#fff0e5;color:#b8661d}.failed{background:#fdecec;color:#b3261e}.cancelled{background:#f1f3f7;color:#687284}
.formGridTwo{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fieldHint{display:block;margin-top:4px;font-size:12px;opacity:.7}.field textarea{width:100%;resize:vertical;box-sizing:border-box} 
@media(max-width:700px){.formGridTwo{grid-template-columns:1fr}}
.fieldManagerNote{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin-bottom:14px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}.fieldManagerNote span{color:#6b7280}.tableSub{display:block;font-size:11px;color:#8b92a1;margin-top:2px}.bulkFieldGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settingsTabs{margin-bottom:18px}@media(max-width:800px){.bulkFieldGrid{grid-template-columns:1fr}}
.ruleRow{display:grid;grid-template-columns:1.2fr 1fr 1.2fr auto;gap:8px;align-items:center;margin-top:8px}.ruleSummary{display:flex;flex-wrap:wrap;gap:6px}.ruleSummary span{font-size:12px;border:1px solid #ddd;border-radius:999px;padding:4px 8px;background:#fafafa}.dateField{font-variant-numeric:tabular-nums}@media(max-width:800px){.ruleRow{grid-template-columns:1fr 1fr}.ruleRow input{grid-column:1/-1}}
.wideModal{max-width:900px;width:min(92vw,900px)}
.templateHeader{padding:10px 12px;margin:10px 0;border-radius:10px;background:#f4f6fa}.templateFooter{padding:8px 0;color:#667085}.templateButtons{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.templatePreview{background:#f4f6fa;border-radius:12px;padding:18px;line-height:1.5}.templatePreview #previewHeader{font-weight:700;margin-bottom:10px}.templatePreview #previewFooter{margin-top:12px;color:#667085;font-size:.9rem}.conversationListTop{display:flex;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #e8ebf0}.composerVisible{border-top:1px solid #e5e7eb;padding:14px;background:#fff}.composerActions{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.startChatForm{display:flex;gap:8px;max-width:700px;margin:18px auto}.chatEmpty{text-align:center;color:#667085;padding:40px 20px}.detailList{display:grid;gap:12px}.detailList>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #edf0f4}.detailList>div:last-child{border-bottom:0}.filter-bar label{display:flex;align-items:center;gap:7px}

/* Inbox: explicit, always-visible chat composer and responsive WhatsApp-style layout */
.inboxHeadActions{display:flex;gap:8px;align-items:center}.waModePill{border-radius:14px;padding:6px 9px;font-size:9px;font-weight:700}.waModePill.live{background:#e8f7f0;color:#167c62}.waModePill.simulate{background:#fff3e8;color:#a45a19}.inboxNotice{margin-bottom:10px}.successNotice{padding:10px 12px;border-radius:8px;background:#eaf7ef;color:#247a4c;font-size:10px}.inboxToolbar{padding:12px;margin-bottom:12px}.conversationListEmpty{padding:30px 15px;text-align:center;color:#929aa7;font-size:10px}.conversationItemText{min-width:0;flex:1}.conversationItemTitle{display:flex;justify-content:space-between;gap:8px}.conversationItemTitle span{white-space:nowrap}.chatCustomer{display:flex;align-items:center;gap:10px}.avatar.large{width:34px;height:34px}.chatMessages{min-height:0}.composerVisible{display:block!important;flex:none!important;padding:12px 14px!important}.composerVisible textarea{display:block!important;width:100%!important;min-height:54px!important;box-sizing:border-box!important;font-size:13px!important;line-height:1.45!important;background:#fff!important;color:#293344!important}.composerActions{gap:12px}.sendButton{min-width:82px}.dndComposer{flex:none;padding:13px 15px;border-top:1px solid #f0d7d7;background:#fff7f7;display:flex;flex-direction:column;gap:4px}.dndComposer strong{font-size:10px;color:#a33d3d}.dndComposer span{font-size:9px;color:#8d5b5b}.inboxStartEmpty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px}.inboxStartEmpty p{text-align:center}.startChatForm{width:min(700px,92%)}@media(max-width:700px){.inboxHeadActions{display:none}.composerActions{align-items:flex-end}.composerActions .muted{display:none}.sendButton{width:82px}.startChatForm{flex-direction:column}}

/* v3.18 Inbox workspace - fixed chat geometry and permanently docked composer */
.inboxPageV2{height:calc(100vh - 80px);min-height:560px;display:flex;flex-direction:column;overflow:hidden}.inboxPageHeader{flex:none}.mutedPill{background:#f3f5f7;color:#697384}.inboxWorkspace{flex:1;min-height:0;display:grid;grid-template-columns:340px minmax(0,1fr);border:1px solid #e5e8ed;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 3px 18px rgba(30,40,55,.04)}.inboxSidebar{min-width:0;display:flex;flex-direction:column;border-right:1px solid #e5e8ed;background:#fff}.sidebarHeader{height:58px;flex:none;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f3}.sidebarHeader strong{display:block;font-size:12px}.sidebarHeader span{display:block;margin-top:2px;font-size:9px;color:#929aa7}.compactBtn{padding:7px 9px!important}.newChatPanel{display:none;padding:10px;border-bottom:1px solid #edf0f3;background:#fafbfc}.newChatPanel.open{display:block}.newChatPanel form{display:grid;gap:7px}.inboxSearch{display:grid;grid-template-columns:minmax(0,1fr) 82px 62px;gap:6px;padding:10px;border-bottom:1px solid #edf0f3}.inboxSearch .text-input{min-width:0}.conversationScroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}.conversationItemV2{display:flex;gap:10px;padding:12px;text-decoration:none;color:#293344;border-bottom:1px solid #f0f2f5;min-width:0}.conversationItemV2:hover{background:#f7faf9}.conversationItemV2.selected{background:#eef8f5;box-shadow:inset 3px 0 0 #167c62}.conversationItemV2 .avatar{flex:none}.conversationItemText{min-width:0;flex:1}.conversationItemTitle{display:flex;align-items:center;justify-content:space-between;gap:7px}.conversationItemTitle b{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversationItemTitle time{font-size:8px;color:#9aa2af;white-space:nowrap}.conversationPreview{font-size:9px;color:#737d8c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.conversationMeta{display:flex;align-items:center;gap:5px;font-size:8px;color:#9aa2af;margin-top:5px}.statusDot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#b4bbc5}.statusDot.open{background:#2da67f}.dndMini{color:#b14a4a;font-weight:700;margin-left:3px}.inboxChat{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fafbfc}.chatHeaderV2{min-width:0;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e8ed;background:#fff}.chatCustomer{display:flex;align-items:center;gap:10px;min-width:0}.chatCustomer strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatCustomer span{display:block;color:#8e97a5;font-size:9px;margin-top:3px}.chatHeaderActions{display:flex;align-items:center;gap:9px}.chatLiveState{font-size:8px;font-weight:700;color:#167c62;background:#e8f7f0;border-radius:10px;padding:5px 7px}.chatMessagesV2{min-height:0;overflow-y:auto;overflow-x:hidden;padding:18px 22px 14px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(#fafbfc,#f8fafb)}.messageRow{display:flex;width:100%}.messageRow.inbound{justify-content:flex-start}.messageRow.outbound{justify-content:flex-end}.bubbleV2{max-width:min(72%,620px);padding:9px 11px;border-radius:10px;box-shadow:0 1px 1px rgba(20,30,40,.03)}.inbound .bubbleV2{background:#fff;border:1px solid #e4e8ed;border-top-left-radius:3px}.outbound .bubbleV2{background:#e5f4ee;border:1px solid #d6ebe3;border-top-right-radius:3px}.messageBody{font-size:10px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.messageMeta{font-size:7.5px;color:#8d96a4;margin-top:5px;text-align:right}.composerDock{min-width:0;border-top:1px solid #dfe4ea;background:#fff;position:relative;z-index:2}.composerV2{padding:10px 13px 9px;display:grid;grid-template-columns:minmax(0,1fr);gap:7px}.composerV2 textarea{display:block;width:100%;min-height:46px;max-height:140px;resize:none;box-sizing:border-box;border:1px solid #d8dee6;border-radius:9px;padding:10px 11px;outline:none;font:inherit;font-size:11px;line-height:1.45;color:#293344;background:#fff;overflow-y:auto}.composerV2 textarea:focus{border-color:#8bbfae;box-shadow:0 0 0 2px rgba(22,124,98,.08)}.composerBottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.composerBottom span{font-size:8px;color:#98a0ad}.sendButton{min-width:76px;padding:8px 13px!important}.dndComposerV2{padding:12px 15px;background:#fff7f7;display:flex;flex-direction:column;gap:4px}.dndComposerV2 strong{font-size:10px;color:#a33d3d}.dndComposerV2 span{font-size:9px;color:#8d5b5b}.chatEmptyV2{margin:auto;text-align:center;color:#8d96a4;display:flex;flex-direction:column;align-items:center;gap:5px}.chatEmptyV2 div{font-size:26px;opacity:.55}.chatEmptyV2 strong{font-size:12px;color:#687284}.chatEmptyV2 span{font-size:9px}.chatBlankState{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;color:#7e8795}.blankIcon{font-size:45px;opacity:.3}.chatBlankState h2{font-size:16px;color:#4b5563;margin:8px 0 4px}.chatBlankState p{font-size:10px;max-width:420px;margin:0 0 15px}@media(max-width:900px){.inboxWorkspace{grid-template-columns:290px minmax(0,1fr)}.inboxSearch{grid-template-columns:1fr 72px}.inboxSearch button{display:none}.bubbleV2{max-width:82%}}@media(max-width:680px){.inboxPageV2{height:auto;min-height:0;overflow:visible}.inboxWorkspace{height:calc(100vh - 210px);min-height:500px;grid-template-columns:1fr}.inboxSidebar{display:none}.inboxPageV2 .moduleHead{margin-bottom:10px}.chatHeaderV2{padding:10px}.chatHeaderActions .chatLiveState{display:none}.chatMessagesV2{padding:14px}.bubbleV2{max-width:88%}}

/* v3.19 Inbox: hard layout isolation - conversation list and chat are independent scroll regions */
.inboxPageV3{height:calc(100vh - 80px)!important;min-height:620px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:16px 20px 20px!important;box-sizing:border-box!important}.inboxPageV3 .moduleNav{flex:0 0 auto}.inboxPageV3 .moduleHead{flex:0 0 auto;margin-bottom:12px}.inboxWorkspaceV3{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:360px minmax(0,1fr)!important;overflow:hidden!important;border:1px solid #dfe4ea;border-radius:12px;background:#fff}.inboxSidebarV3{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid #e2e7ec}.inboxSidebarV3 .sidebarHeader{flex:0 0 58px}.inboxSidebarV3 .newChatPanel{flex:0 0 auto}.inboxSidebarV3 .inboxSearch{flex:0 0 auto}.conversationScrollV3{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important}.inboxChatV3{min-width:0!important;min-height:0!important;height:100%!important;display:grid!important;grid-template-rows:70px minmax(0,1fr) auto!important;overflow:hidden!important;background:#f7f9fa}.chatHeaderV3{min-height:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;border-bottom:1px solid #e2e7ec}.chatMessagesV3{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:20px 24px!important;display:flex;flex-direction:column;gap:10px}.composerDockV3{min-height:0!important;display:block!important;background:#fff;border-top:1px solid #dfe4ea!important;z-index:5}.composerV3{padding:12px 16px!important}.composerV3 textarea{width:100%!important;min-height:48px!important;max-height:150px!important;display:block!important;box-sizing:border-box!important}.composerBottomV3{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.messageRowV3{display:flex;width:100%}.messageRowV3.inbound{justify-content:flex-start}.messageRowV3.outbound{justify-content:flex-end}.bubbleV3{max-width:min(68%,680px);padding:10px 12px;border-radius:12px;line-height:1.5}.inbound .bubbleV3{background:#fff;border:1px solid #e1e6eb;border-top-left-radius:4px}.outbound .bubbleV3{background:#dcf5e9;border:1px solid #ccebdd;border-top-right-radius:4px}.messageBodyV3{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.messageMetaV3{font-size:8px;color:#8993a0;text-align:right;margin-top:5px}.conversationItemV3{display:flex;gap:11px;padding:13px;border-bottom:1px solid #eef1f4;text-decoration:none;color:#263142}.conversationItemV3.selected{background:#eaf6f2;box-shadow:inset 3px 0 #167c62}.conversationPreviewV3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#707b89;margin-top:4px}.conversationMetaV3{font-size:8px;color:#929aa6;margin-top:5px}.chatBlankV3{height:100%;display:grid;place-items:center;text-align:center;padding:30px}.chatBlankV3Inner{max-width:430px}.chatBlankV3Inner h2{font-size:20px;margin:10px 0 6px}.chatBlankV3Inner p{font-size:11px;color:#8992a1;line-height:1.6}.dndComposerV3{padding:15px 18px;background:#fff5f5}.dndComposerV3 strong{display:block;color:#a33d3d;font-size:12px}.dndComposerV3 span{display:block;color:#8d5b5b;font-size:10px;margin-top:4px}@media(max-width:900px){.inboxPageV3{padding:10px!important}.inboxWorkspaceV3{grid-template-columns:300px minmax(0,1fr)!important}.bubbleV3{max-width:80%}}@media(max-width:700px){.inboxPageV3{height:auto!important;min-height:0!important;overflow:visible!important}.inboxWorkspaceV3{height:calc(100vh - 190px)!important;min-height:520px!important;grid-template-columns:1fr!important}.inboxSidebarV3{display:none!important}.bubbleV3{max-width:88%}}


/* v3.20 Inbox structural rebuild - sidebar + fixed chat header + independently scrolling messages + docked composer */
.inboxPageV3{height:calc(100vh - 48px);min-height:620px;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0!important}
.inboxPageV3>.moduleNav,.inboxPageV3>.moduleHead,.inboxPageV3>.inboxNotice{flex:0 0 auto}
.inboxWorkspaceV3{flex:1 1 auto;min-height:0;width:100%;display:grid;grid-template-columns:360px minmax(0,1fr);background:#fff;border:1px solid #e3e7ec;border-radius:12px;overflow:hidden;box-shadow:0 4px 20px rgba(23,32,47,.06)}
.inboxSidebarV3{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e5e8ed;overflow:hidden}
.inboxSidebarV3 .sidebarHeader{height:58px;min-height:58px}.inboxSidebarV3 .newChatPanel{flex:none}.inboxSidebarV3 .inboxSearch{flex:none}
.conversationScrollV3{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.conversationItemV3{display:flex;gap:11px;padding:12px 13px;text-decoration:none;color:#293344;border-bottom:1px solid #f0f2f5;min-width:0;background:#fff}
.conversationItemV3:hover{background:#f7faf9}.conversationItemV3.selected{background:#eaf6f2;box-shadow:inset 3px 0 #167c62}
.conversationItemV3 .conversationItemText{min-width:0;flex:1}.conversationItemV3 .conversationItemTitle{display:flex;align-items:center;justify-content:space-between;gap:8px}
.conversationItemV3 .conversationItemTitle b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversationItemV3 time{font-size:8px;color:#9aa2af;white-space:nowrap}
.conversationPreviewV3{margin-top:4px;font-size:9px;color:#7d8795;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversationMetaV3{margin-top:5px;font-size:8px;color:#258361}.dndMini{margin-left:5px;color:#b42318;font-weight:700}
.inboxChatV3{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f7f9f8;overflow:hidden}
.chatHeaderV3{grid-row:1;min-height:64px;padding:10px 16px;background:#fff;border-bottom:1px solid #e5e8ed;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2}
.chatCustomer{min-width:0}.chatCustomer>div:last-child{min-width:0}.chatCustomer strong{display:block;font-size:12px;color:#273142}.chatCustomer span{display:block;margin-top:3px;font-size:9px;color:#8b94a2}.chatHeaderActions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.chatHeaderActions form{margin:0}.chatLiveState{font-size:8px;font-weight:800;color:#167c62;background:#eaf6f2;border-radius:12px;padding:5px 8px}
.chatMessagesV3{grid-row:2;min-height:0;overflow-y:auto;overflow-x:hidden;padding:22px clamp(18px,4vw,58px);display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain;scrollbar-gutter:stable;background:#f7f9f8}
.messageRowV3{display:flex;width:100%;flex:none}.messageRowV3.inbound{justify-content:flex-start}.messageRowV3.outbound{justify-content:flex-end}.bubbleV3{max-width:min(72%,680px);padding:9px 11px 7px;border-radius:11px;box-shadow:0 1px 2px rgba(20,30,40,.08);font-size:11px;line-height:1.45;overflow-wrap:anywhere}.inbound .bubbleV3{background:#fff;border-top-left-radius:3px}.outbound .bubbleV3{background:#dff4ea;border-top-right-radius:3px}.messageBodyV3{white-space:pre-wrap;color:#293344}.messageMetaV3{text-align:right;margin-top:4px;font-size:8px;color:#84908e}
.composerDockV3{grid-row:3;position:relative;flex:none;background:#fff;border-top:1px solid #dde3e6;padding:11px 14px;z-index:3;box-shadow:0 -3px 12px rgba(30,40,55,.035)}
.composerV3{display:block;margin:0}.composerV3 textarea{display:block;width:100%;min-height:48px;max-height:150px;resize:none;overflow-y:auto;border:1px solid #dfe4e8;border-radius:10px;padding:12px 13px;font-size:12px;line-height:1.45;background:#fff;color:#273142;outline:none}.composerV3 textarea:focus{border-color:#77bda9;box-shadow:0 0 0 3px rgba(22,124,98,.08)}
.composerBottomV3{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:7px}.composerBottomV3 span{font-size:8px;color:#98a1ae}.composerBottomV3 .sendButton{min-width:88px}
.dndComposerV3{display:flex;flex-direction:column;gap:3px;padding:7px 9px;background:#fff5f5;border:1px solid #f2d5d5;border-radius:9px}.dndComposerV3 strong{font-size:10px;color:#b42318}.dndComposerV3 span{font-size:9px;color:#8f6262}
.chatBlankV3{grid-row:1/-1;display:grid;place-items:center;background:#f8faf9}.chatBlankV3Inner{text-align:center;max-width:430px;padding:30px}.chatBlankV3Inner .blankIcon{font-size:34px}.chatBlankV3Inner h2{font-size:17px;margin:10px 0 6px}.chatBlankV3Inner p{font-size:10px;line-height:1.6;color:#8b94a2;margin:0 0 15px}.chatEmptyV2{margin:auto;text-align:center;color:#8b94a2;display:flex;flex-direction:column;gap:5px}.chatEmptyV2>div{font-size:28px}.chatEmptyV2 strong{color:#4b5563;font-size:12px}.chatEmptyV2 span{font-size:9px}
@media(max-width:900px){.inboxWorkspaceV3{grid-template-columns:290px minmax(0,1fr)}.chatHeaderActions .chatLiveState{display:none}.bubbleV3{max-width:82%}}
@media(max-width:680px){.inboxPageV3{height:calc(100vh - 20px);min-height:520px}.inboxWorkspaceV3{grid-template-columns:1fr}.inboxSidebarV3{display:none}.chatMessagesV3{padding:14px}.composerBottomV3 span{display:none}.bubbleV3{max-width:88%}}

/* v3.26 Templates + Campaigns workspace */
.templateWorkspace,.campaignWorkspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.templateGridV4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.templateCardV4{padding:16px;min-width:0}.templateCardV4 .templateBody{min-height:96px;white-space:pre-wrap}.templateStatusRow{display:flex;justify-content:space-between;align-items:center;gap:8px}.pending{background:#fff5dc;color:#936c12}.rejected{background:#fdecec;color:#a33d3d}.componentLine{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.campaignBuilder{padding:18px}.builderStep{border:1px solid #e5e9ee;border-radius:10px;padding:14px;margin-bottom:12px;background:#fff}.builderStep h3{font-size:12px;margin:0 0 10px}.builderStep .fieldHint{margin-top:5px}.audienceSummary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.audienceMetric{background:#f7f9fb;border-radius:8px;padding:10px}.audienceMetric b{display:block;font-size:16px}.audienceMetric span{font-size:8px;color:#8d96a4}.campaignPreview{background:#f4f7f8;border-radius:10px;padding:14px}.campaignPreview .waBubble{background:#dcf5e9;border:1px solid #ccebdd;border-radius:10px;padding:11px;font-size:11px;white-space:pre-wrap}.stickySide{position:sticky;top:12px}@media(max-width:1000px){.templateWorkspace,.campaignWorkspace{grid-template-columns:1fr}.stickySide{position:static}.templateGridV4{grid-template-columns:1fr}}@media(max-width:700px){.audienceSummary{grid-template-columns:1fr}}

/* v3.27 Meta-style template builder */
.templateBuilderPage .tableCard{margin-top:14px}.templateBuilderModal{width:min(1480px,96vw);height:min(94vh,920px);padding:0;overflow:hidden}.templateBuilderHeader{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #e5e7eb}.templateBuilderHeader h2{margin:0;font-size:20px}.templateBuilderHeader span{color:#6b7280;font-size:12px}.templateBuilderGrid{height:calc(100% - 70px);display:grid;grid-template-columns:minmax(600px,1.35fr) minmax(360px,.65fr);min-height:0}.templateEditorPane{overflow:auto;padding:20px 24px;background:#fff}.templatePreviewPane{border-left:1px solid #e5e7eb;background:#f4f5f7;padding:20px;display:flex;flex-direction:column;align-items:center;overflow:auto}.builderSection{border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:14px}.sectionTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:13px}.sectionTitle span{font-size:11px;color:#6b7280}.headerChoices{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}.headerChoices label{border:1px solid #d1d5db;border-radius:8px;padding:8px 11px;font-size:12px}.editorToolbar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.editorToolbar button{border:1px solid #d1d5db;background:#fff;border-radius:7px;padding:7px 10px;cursor:pointer}.templateBodyEditor{width:100%;min-height:180px;resize:vertical;border:1px solid #d1d5db;border-radius:8px;padding:12px;font:14px/1.55 inherit}.variableHelp{font-size:11px;color:#6b7280;margin-top:7px}.builderButtonRow{border:1px solid #e5e7eb;border-radius:10px;padding:12px;margin-bottom:10px;background:#fafafa}.buttonRowTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.buttonExtra{margin-top:8px}.buttonExtraGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}.buttonExtraGrid small{grid-column:1/-1;color:#6b7280;font-size:11px}.addButton{margin-top:2px}.reviewChecklist{display:flex;gap:8px;flex-wrap:wrap}.reviewChecklist span{font-size:11px;padding:6px 8px;border-radius:999px;background:#f3f4f6}.builderActions{display:flex;justify-content:flex-end;gap:10px;padding:8px 0 20px}.previewTitle{width:100%;display:flex;justify-content:space-between;max-width:430px;margin-bottom:12px}.previewTitle span{font-size:11px;color:#16a34a}.phoneFrame{width:min(390px,100%);height:680px;background:#dfe5dc;border-radius:28px;border:8px solid #222;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 15px 35px rgba(0,0,0,.18)}.phoneTop{height:48px;background:#075e54;color:white;display:flex;justify-content:space-between;align-items:center;padding:0 14px;font-size:13px}.chatWall{flex:1;padding:18px 12px;overflow:auto;background:linear-gradient(135deg,#e5ddd5,#d9e1d8)}.waBubble{max-width:88%;background:#fff;border-radius:8px;padding:9px 10px;margin-left:auto;box-shadow:0 1px 2px rgba(0,0,0,.14);font-size:13px;line-height:1.45}.waBubble small{display:block;text-align:right;color:#777;font-size:9px;margin-top:5px}.waVar{background:#e5f6ff;border-radius:4px;padding:1px 3px}.waMedia{height:150px;border-radius:6px;background:#d1d5db;display:flex;align-items:center;justify-content:center;margin-bottom:7px;font-size:12px}.waLocation{padding:18px;text-align:center;background:#eef2f7;border-radius:6px;margin-bottom:7px}.waButton{text-align:center;border-top:1px solid #e5e7eb;color:#168aad;padding:7px 3px;margin-top:7px;font-weight:600}.phoneInput{height:50px;background:#f0f0f0;display:flex;align-items:center;gap:10px;padding:0 12px;color:#777;font-size:12px}.phoneInput span:nth-child(2){flex:1;background:#fff;border-radius:18px;padding:8px 12px}.previewMeta{width:min(390px,100%);display:flex;flex-direction:column;gap:4px;margin-top:12px;font-size:12px}.previewMeta span{color:#6b7280}.text-input{width:100%}@media(max-width:1000px){.templateBuilderGrid{grid-template-columns:1fr}.templatePreviewPane{border-left:0;border-top:1px solid #e5e7eb}.templateBuilderModal{height:96vh}.phoneFrame{height:560px}}@media(max-width:650px){.buttonExtraGrid,.formGridTwo{grid-template-columns:1fr}.templateEditorPane{padding:14px}.templateBuilderHeader{padding:0 14px}.templateBuilderHeader span{display:none}}

/* v3.28 template builder fixes */
.templateBuilderModal{display:flex;flex-direction:column;min-height:0}.templateBuilderForm{flex:1;min-height:0;display:flex}.templateBuilderGrid{flex:1;height:auto;min-height:0}.templateEditorPane{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.templatePreviewPane{min-height:0;overflow-y:auto;overscroll-behavior:contain}.headerMediaBox input[type=file]{padding:9px;background:#fff;border:1px dashed #cfd6de;border-radius:8px}.waMediaImage{display:block;width:100%;max-height:180px;object-fit:cover;border-radius:6px;margin-bottom:7px}

/* v3.29 template builder - hard layout/scroll boundaries and Meta-like media preview */
.templateBuilderModal{width:min(1500px,96vw);height:calc(100vh - 40px);max-height:calc(100vh - 40px);min-height:0;display:flex;flex-direction:column;overflow:hidden}
.templateBuilderHeader{flex:0 0 70px}
.templateBuilderForm{display:flex;flex:1 1 auto;min-height:0;height:auto;overflow:hidden}
.templateBuilderGrid{display:grid;grid-template-columns:minmax(560px,1.35fr) minmax(360px,.65fr);flex:1 1 auto;height:auto;min-height:0;overflow:hidden}
.templateEditorPane{height:100%;min-height:0;overflow-y:scroll;overflow-x:hidden;padding:20px 24px 80px;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
.templatePreviewPane{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.templateEditorPane .builderSection{scroll-margin-top:12px}
.templateEditorPane .builderActions{padding-bottom:30px}
.waBubble{overflow:hidden}
.waMediaImage{display:block;width:100%;height:auto;aspect-ratio:1.91/1;object-fit:cover;border-radius:7px;margin:0 0 8px;background:#e5e7eb}
.waMediaPlaceholder{height:150px;aspect-ratio:auto;background:#e9ecef;color:#68707b;border:1px dashed #c8ced6}
.waMediaVideo{height:150px;aspect-ratio:auto;background:#202b2a;color:#fff;position:relative}
.waMediaVideo span{font-size:28px;margin-right:8px}
.waMediaDocument{min-height:90px;background:#f1f3f5;border:1px solid #e0e4e8;color:#394150;display:flex;align-items:center;justify-content:center;gap:8px}
.waTextHeader{padding:2px 0 8px;font-size:13px;line-height:1.35}
.waLocation{min-height:105px;background:#eef2f5;border-radius:7px;margin-bottom:8px;padding:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#4b5563}
.waLocationPin{font-size:28px}
@media(max-width:1000px){.templateBuilderModal{height:calc(100vh - 20px);max-height:calc(100vh - 20px)}.templateBuilderGrid{grid-template-columns:1fr;overflow:auto}.templateEditorPane{height:auto;min-height:0;overflow:visible}.templatePreviewPane{height:auto;min-height:600px;border-left:0;border-top:1px solid #e5e7eb;overflow:visible}.templateBuilderForm{overflow:auto}.templateBuilderGrid{display:block}}
/* v3.30 template sync + guaranteed editor navigation */
.builderJumpBar{position:sticky;top:0;z-index:5;display:flex;gap:6px;flex-wrap:wrap;padding:7px 0 10px;background:#fff;border-bottom:1px solid #eef0f3;margin-bottom:10px}
.builderJumpBar a{font-size:11px;text-decoration:none;border:1px solid #dfe4ea;border-radius:999px;padding:5px 9px;color:#667085;background:#fff}
.builderJumpBar a:hover{color:#167c62;border-color:#b9dfd3}
.templateEditorPane{scroll-behavior:smooth}
.stats.five{grid-template-columns:repeat(5,minmax(0,1fr));}
@media(max-width:1100px){.stats.five{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.stats.five{grid-template-columns:repeat(2,minmax(0,1fr));}}
