[hidden]{display:none!important}
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eaf1f8;background:#06111c;--bg:#06111c;--panel:#0c1a27;--panel2:#102233;--line:#1b3449;--muted:#8fa4b7;--text:#edf4fa;--green:#20b486;--green2:#163f35;--blue:#2a7fde;--red:#e05e6b;--amber:#e7b251;--purple:#9a78e8;--shadow:0 18px 60px rgba(0,0,0,.28)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 20% 0,#0e2a3b 0,#06111c 34%,#050d16 100%);color:var(--text)}body{min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid var(--line);background:#071522;color:var(--text);border-radius:11px;padding:10px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#347ca6;box-shadow:0 0 0 3px rgba(52,124,166,.14)}textarea{resize:vertical;min-height:90px}.primary{background:linear-gradient(135deg,#1b9c79,#27bb90);color:#fff;border:0;border-radius:11px;padding:11px 15px;font-weight:800}.secondary{background:#193044;color:#eaf1f8;border:1px solid #294961;border-radius:11px;padding:10px 14px;font-weight:700}.ghost{background:transparent;color:#b8c9d7;border:1px solid #294156;border-radius:10px;padding:9px 12px;font-weight:700}.danger{background:#7e2f3b;color:#fff;border:0;border-radius:10px;padding:9px 12px}.wide{width:100%}.eyebrow{margin:0 0 5px;color:#60d0ad;font-size:11px;font-weight:900;letter-spacing:.14em}.loginScreen{min-height:100vh;display:grid;grid-template-columns:1.25fr .75fr}.loginVisual{padding:clamp(40px,8vw,120px);display:flex;justify-content:center;flex-direction:column;position:relative;overflow:hidden}.loginVisual:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:rgba(24,163,126,.12);filter:blur(15px);right:-160px;top:-180px}.loginVisual img{width:105px;height:90px;object-fit:contain;margin-bottom:26px}.loginVisual h1{font-size:clamp(38px,5vw,72px);line-height:1.02;max-width:840px;margin:0 0 24px;letter-spacing:-.045em}.loginVisual>p:not(.eyebrow){color:#aabccb;font-size:18px;line-height:1.7;max-width:720px}.loginBadges{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.loginBadges span{border:1px solid #28465c;background:#0d1f2d;padding:8px 11px;border-radius:999px;color:#a9bfce;font-size:12px}.loginCard{margin:auto 7vw auto 0;width:min(420px,86%);background:rgba(12,26,39,.94);border:1px solid #203b50;border-radius:24px;padding:30px;box-shadow:var(--shadow)}.loginCard h2{font-size:29px;margin:0 0 7px}.loginCard>p{color:var(--muted);margin:0 0 22px}.loginCard label,.formGrid label{display:grid;gap:7px;color:#a9bccb;font-size:12px;font-weight:700;margin:13px 0}.loginCard .primary{margin-top:9px}.formError{color:#ff8c98!important;min-height:18px;margin:11px 0 0!important}.mobileBrand{display:none}.app{display:grid;grid-template-columns:238px 1fr;grid-template-rows:76px 1fr;min-height:100vh}.sidebar{grid-row:1/3;background:rgba(7,20,31,.97);border-right:1px solid #172d40;padding:16px 12px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:5px 8px 18px}.brand img{width:39px;height:36px;object-fit:contain}.brand strong,.brand span{display:block}.brand strong{font-size:14px}.brand span{font-size:11px;color:#7f9aad;margin-top:2px}.sidebar nav{display:grid;gap:5px}.sidebar nav button{border:0;background:transparent;color:#8fa6b8;border-radius:11px;padding:11px 12px;text-align:left;font-weight:700;display:flex;align-items:center;gap:11px}.sidebar nav button span{width:22px;text-align:center;font-size:17px}.sidebar nav button b{margin-left:auto;background:#204c42;color:#91e9cc;padding:2px 7px;border-radius:999px;font-size:10px}.sidebar nav button:hover,.sidebar nav button.active{background:#10283a;color:#fff}.sidebar nav button.active{box-shadow:inset 3px 0 #2ec095}.sidebarFoot{margin-top:auto;border-top:1px solid #162d3f;padding-top:12px}.sidebarAction{width:100%;border:0;background:#0f2535;color:#a8becd;border-radius:9px;padding:9px;margin-bottom:6px;font-size:12px;font-weight:700}.userMini{display:flex;align-items:center;gap:9px;margin-top:9px;padding:9px 5px}.userMini>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#1a4b3d;color:#8ae3c5;font-weight:900}.userMini div{min-width:0;flex:1}.userMini b,.userMini small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.userMini b{font-size:12px}.userMini small{font-size:10px;color:#7891a4}.userMini button{border:0;background:transparent;color:#8da3b5;font-size:18px}.topbar{grid-column:2;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #172e40;background:rgba(6,17,28,.88);backdrop-filter:blur(12px);position:sticky;top:0;z-index:15}.topbar h1{font-size:22px;margin:0;letter-spacing:-.02em}.topActions{display:flex;align-items:center;gap:8px;color:#93a8b8;font-size:12px}.connectionDot{width:8px;height:8px;border-radius:50%;background:#28c997;box-shadow:0 0 0 4px rgba(40,201,151,.1)}.connectionDot.off{background:#e46a74}.menuBtn{display:none;background:transparent;border:0;color:#fff;font-size:23px}.app main{grid-column:2;padding:18px;min-width:0}.viewHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.viewHeader h2{margin:0;font-size:20px}.viewHeader p{color:var(--muted);margin:4px 0 0;font-size:13px}.rowActions{display:flex;gap:8px;flex-wrap:wrap}.statGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.statCard,.panel{background:linear-gradient(180deg,rgba(15,33,49,.96),rgba(9,23,35,.96));border:1px solid #1b3448;border-radius:15px;box-shadow:0 10px 32px rgba(0,0,0,.12)}.statCard{padding:15px}.statCard span{display:block;color:#829aab;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.statCard b{display:block;font-size:24px;margin-top:6px}.statCard small{color:#7f96a8}.panel{padding:16px;margin-bottom:13px}.panelHead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.panelHead h3{margin:0;font-size:15px}.panelHead p{margin:3px 0 0;color:var(--muted);font-size:12px}.inbox{display:grid;grid-template-columns:330px minmax(400px,1fr) 300px;height:calc(100vh - 112px);border:1px solid #183146;border-radius:16px;overflow:hidden;background:#081724}.inboxCol{min-width:0;overflow:hidden}.convListCol,.contactDetailCol{border-right:1px solid #183146}.contactDetailCol{border-right:0;border-left:1px solid #183146}.convToolbar{padding:12px;border-bottom:1px solid #173044;display:grid;gap:8px}.filterRow{display:grid;grid-template-columns:1fr 1fr;gap:7px}.convList{height:calc(100% - 113px);overflow:auto}.convItem{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;padding:13px 14px;border-bottom:1px solid #12283a;position:relative}.convItem:hover,.convItem.active{background:#102537}.convTop{display:flex;align-items:center;gap:8px}.channelIcon{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:900;flex:0 0 auto}.channelIcon.instagram{background:#4b294f;color:#efb2ef}.channelIcon.whatsapp{background:#164638;color:#82e9c6}.channelIcon.facebook{background:#173a67;color:#8cc1ff}.convTop strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.convTop time{margin-left:auto;color:#6e8799;font-size:9px}.convItem p{margin:7px 0 0;color:#8199ab;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.convMeta{display:flex;align-items:center;gap:5px;margin-top:7px}.tinyPill{font-size:9px;border-radius:999px;padding:3px 6px;background:#162f42;color:#94aec0}.tinyPill.high,.tinyPill.urgent{background:#4b2a32;color:#ffafb8}.unreadDot{margin-left:auto;background:#1eb084;color:white;border-radius:999px;min-width:18px;text-align:center;padding:2px 5px;font-size:9px}.chatCol{display:grid;grid-template-rows:auto 1fr auto;min-height:0}.chatHead{padding:13px 16px;border-bottom:1px solid #173044;display:flex;justify-content:space-between;align-items:center}.chatHead strong{display:block}.chatHead small{color:#8299aa}.chatMessages{overflow:auto;padding:18px;background:radial-gradient(circle at 80% 0,rgba(23,69,82,.13),transparent 35%)}.message{max-width:76%;margin:8px 0;padding:10px 12px;border-radius:14px 14px 14px 4px;background:#152b3d;border:1px solid #1c3a50;font-size:13px;line-height:1.5}.message.outbound{margin-left:auto;border-radius:14px 14px 4px 14px;background:#155241;border-color:#1c6853}.message.internal{margin-left:auto;margin-right:auto;background:#302b1f;border-color:#4c432c;color:#e8d8a8;max-width:86%}.message .msgMeta{display:flex;gap:7px;justify-content:flex-end;color:#8198a9;font-size:9px;margin-top:6px}.message .msgType{font-weight:800;text-transform:uppercase;letter-spacing:.05em}.composer{border-top:1px solid #173044;padding:11px;background:#091924}.policyBanner{font-size:10px;color:#9fb2c0;margin-bottom:8px;display:flex;justify-content:space-between;gap:8px}.policyBanner.blocked{color:#f2a8af}.composerRow{display:flex;gap:8px}.composer textarea{min-height:48px;max-height:150px;resize:none}.composer button{align-self:flex-end}.templateComposer{display:grid;grid-template-columns:1fr 120px;gap:7px;margin-bottom:8px}.chatEmpty,.emptyState{height:100%;display:grid;place-items:center;text-align:center;color:#7892a6;padding:40px}.chatEmpty b,.emptyState b{display:block;color:#c2d1dc;font-size:17px;margin-bottom:7px}.contactDetail{height:100%;overflow:auto;padding:15px}.contactHero{text-align:center;padding:10px}.contactAvatar{width:58px;height:58px;border-radius:50%;margin:auto;display:grid;place-items:center;background:#173c4e;font-size:20px;font-weight:900}.contactHero h3{margin:9px 0 2px}.contactHero p{margin:0;color:#839aaa;font-size:11px}.detailSection{border-top:1px solid #173044;padding:13px 0}.detailSection h4{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7892a5;margin:0 0 9px}.detailGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.detailSection label{font-size:10px;color:#8ca3b4;display:grid;gap:4px}.tagList{display:flex;gap:5px;flex-wrap:wrap}.tag{padding:4px 7px;border-radius:999px;background:#173245;color:#a9bfd0;font-size:9px}.consentRow{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:7px 0;font-size:11px}.consentGood{color:#70dcb9}.consentBad{color:#e68a93}.noteForm{display:flex;gap:6px}.noteForm input{font-size:11px}.tableWrap{overflow:auto}.dataTable{width:100%;border-collapse:collapse}.dataTable th,.dataTable td{text-align:left;padding:10px;border-bottom:1px solid #173044;font-size:12px;vertical-align:top}.dataTable th{color:#8399aa;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.dataTable small{display:block;color:#7e95a7;margin-top:3px}.statusPill{display:inline-flex;padding:4px 7px;border-radius:999px;background:#183448;color:#a3bbcb;font-size:9px;font-weight:800;text-transform:uppercase}.statusPill.ok,.statusPill.active{background:#164237;color:#79dfbd}.statusPill.warn{background:#4b3c21;color:#f0ca7c}.statusPill.bad{background:#4a2830;color:#f0a2aa}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.formGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.formGrid label.full{grid-column:1/-1}.switchRow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #143044}.switchRow:last-child{border:0}.switchRow b{font-size:12px}.switchRow small{display:block;color:#8299aa;margin-top:2px}.toggle{width:42px;height:23px;border-radius:999px;background:#293d4d;padding:3px;border:0}.toggle:after{content:"";display:block;width:17px;height:17px;border-radius:50%;background:#8194a3;transition:.2s}.toggle.on{background:#1a654e}.toggle.on:after{transform:translateX(19px);background:#7be0be}.ruleCard{padding:13px;border:1px solid #1a374b;border-radius:12px;margin-bottom:8px;background:#0b1c2a}.ruleTop{display:flex;align-items:center;gap:8px}.ruleTop strong{font-size:13px}.ruleTop .statusPill{margin-left:auto}.ruleCard p{font-size:11px;color:#8199aa;margin:7px 0}.ruleActions{display:flex;gap:6px;justify-content:flex-end}.channelCards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.channelCard{padding:17px;border:1px solid #1b394e;background:#0c1c2a;border-radius:15px}.channelCard h3{display:flex;align-items:center;gap:8px;margin:0}.channelCard p{color:#8098aa;font-size:11px;line-height:1.5}.channelCard code,.codeBox{display:block;background:#06131e;border:1px solid #18344a;padding:9px;border-radius:9px;color:#8fc7db;font-size:10px;overflow-wrap:anywhere}.capList{display:grid;gap:6px;margin-top:10px}.capList span{font-size:10px;color:#93a9b9}.capList span:before{content:"✓";color:#45c59b;margin-right:7px}.capList span.limit:before{content:"!";color:#e4b15c}.alert{border:1px solid #54401f;background:#302718;color:#e2c685;border-radius:11px;padding:11px 13px;font-size:11px;line-height:1.5}.alert.good{border-color:#1c513f;background:#102e27;color:#8fe0c2}.alert.bad{border-color:#60303a;background:#351e24;color:#f2a5ae}.auditList{max-height:420px;overflow:auto}.auditRow{padding:9px 0;border-bottom:1px solid #153043;display:grid;grid-template-columns:145px 180px 1fr;gap:10px;font-size:10px}.auditRow time{color:#708b9e}.auditRow code{color:#90a8b8;white-space:pre-wrap;word-break:break-word}.toast{position:fixed;right:20px;bottom:20px;background:#122b3b;border:1px solid #285069;color:#eef6fb;padding:12px 15px;border-radius:12px;box-shadow:var(--shadow);z-index:80;font-size:12px;max-width:370px}.toast.error{background:#3a2027;border-color:#74404a}.mobileOnly{display:none}@media(max-width:1180px){.inbox{grid-template-columns:300px minmax(380px,1fr)}.contactDetailCol{display:none}.statGrid{grid-template-columns:repeat(2,1fr)}.channelCards{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}}@media(max-width:820px){.loginScreen{grid-template-columns:1fr}.loginVisual{display:none}.loginCard{margin:auto;width:min(430px,calc(100% - 28px))}.mobileBrand{display:flex;align-items:center;gap:9px;margin-bottom:25px}.mobileBrand img{width:42px;height:38px;object-fit:contain}.app{grid-template-columns:1fr;grid-template-rows:68px 1fr}.sidebar{position:fixed;transform:translateX(-105%);transition:.25s;width:250px}.sidebar.open{transform:none;box-shadow:30px 0 80px #0009}.topbar,.app main{grid-column:1}.topbar{padding:0 12px}.menuBtn{display:block}.topbar>div:first-of-type{flex:1;margin-left:8px}.topActions #connectionText{display:none}.app main{padding:10px}.inbox{display:block;height:calc(100vh - 92px);border-radius:12px}.convListCol{height:100%}.inbox.hasSelection .convListCol{display:none}.inbox .chatCol{display:none;height:100%}.inbox.hasSelection .chatCol{display:grid}.mobileOnly{display:inline-flex}.chatHead{padding:9px}.message{max-width:88%}.statGrid,.grid2,.grid3,.formGrid{grid-template-columns:1fr}.viewHeader{align-items:flex-start}.channelCards{grid-template-columns:1fr}.auditRow{grid-template-columns:1fr;gap:3px}.tableWrap{margin:0 -8px}.dataTable th,.dataTable td{padding:9px 7px;font-size:10px}}
.consentActions{display:grid;gap:8px;margin-top:10px}.consentActions>div{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center}.consentActions small{color:#8ca3b4;text-transform:uppercase;letter-spacing:.08em}.tinyPill.urgent{border-color:rgba(255,97,97,.45);color:#ffaaaa;background:rgba(134,22,22,.18)}

/* V1.1.0 rich messaging, automation and storage additions */
.enhancedComposer{grid-template-columns:auto 1fr auto;align-items:end}.enhancedComposer #attachBtn{min-width:46px;height:46px;font-size:22px}.pendingMedia{margin:8px 0;padding:10px 12px;border:1px solid #23506a;background:#0d2432;border-radius:10px;font-size:12px}.mediaCard{display:grid;gap:6px;margin-top:8px;padding:8px;border:1px solid #285064;border-radius:12px;background:#071925;max-width:420px;color:#9dd9ff;text-decoration:none}.mediaCard img,.mediaCard video{max-width:100%;max-height:300px;border-radius:8px;object-fit:contain;background:#031018}.mediaCard audio{width:100%}.mediaCard.file{display:inline-block}.replyContext,.referralContext{font-size:11px;color:#8eb0c3;border-left:3px solid #1eb99a;padding-left:8px;margin-bottom:6px}.messageReaction{display:inline-flex;margin-top:6px;background:#163747;border-radius:999px;padding:3px 7px;font-size:13px}.reactBtn{margin-top:6px;padding:2px 8px;font-size:18px}.mutedCard{opacity:.78}.channelCard hr,.panel hr{border:0;border-top:1px solid #193748;margin:18px 0}.statusPill.warn{background:#563d16;color:#ffd782}.alert.warn{border-color:#73551d;background:#2c2312;color:#efd28c}.alert.bad{border-color:#713c43;background:#2a1519;color:#ffc3c8}.rowActions{flex-wrap:wrap}.codeBox{word-break:break-all}.grid3 .statCard b{font-size:24px}
@media(max-width:720px){.enhancedComposer{grid-template-columns:auto 1fr auto}.mediaCard{max-width:100%}}

/* V1.2.0 premium shared-inbox UX */
.inboxShell{display:grid;gap:10px}.inboxTop{overflow:auto}.viewPills{display:flex;gap:7px;min-width:max-content}.viewPills button{border:1px solid #1d3c51;background:#0a1b28;color:#88a2b5;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:800}.viewPills button.active{background:#16483b;border-color:#287c64;color:#a2efd6}.searchBox{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:11px;background:#071522;padding:0 10px;color:#6f8a9d}.searchBox input{border:0;padding-left:0}.convTop{align-items:center}.convIdentity{min-width:0;flex:1}.convIdentity strong,.convIdentity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.convIdentity small{font-size:9px;color:#6f879a;margin-top:2px}.avatar{border-radius:50%;object-fit:cover;background:#173c4e;display:inline-grid;place-items:center;font-weight:900;flex:0 0 auto}.avatar.sm{width:34px;height:34px;font-size:10px}.avatar.md{width:44px;height:44px}.avatar.lg{width:70px;height:70px;font-size:20px}.chatHead.premium{min-height:66px}.chatPerson,.chatActions{display:flex;align-items:center;gap:10px}.chatPerson>div{display:grid}.presenceBadge{background:#43341b;color:#f0d18b;border-radius:999px;padding:6px 9px;font-size:9px}.message{position:relative;box-shadow:0 6px 20px rgba(0,0,0,.08)}.messageText{white-space:pre-wrap}.contextCard{font-size:10px;color:#9db7c8;background:#0b2030;border-left:3px solid #32997e;border-radius:5px;padding:6px 8px;margin-bottom:7px}.contextCard.story{border-left-color:#9d6fe4}.contextCard.referral{border-left-color:#d39b48}.shareCard{display:flex;flex-direction:column;gap:4px;border:1px solid #35506b;background:#0b2132;color:#b9d3e4;border-radius:12px;padding:12px;margin-top:8px;text-decoration:none}.mediaMissing{display:grid;gap:4px;font-size:10px;padding:8px;border:1px dashed #4a5660;border-radius:8px;color:#97a6b1;margin-top:7px}.mediaMissing b{color:#c0ccd4}.mediaMissing span{line-height:1.35}.mediaCard.image img{width:min(100%,420px);max-height:420px}.msgStatus{color:#69cbaa}.premiumComposer{padding:10px 12px}.composerTools{display:flex;align-items:center;gap:7px;margin:6px 0}.composerTools select{width:auto;max-width:210px;padding:7px 9px;font-size:10px}.toolBtn{border:1px solid #24475d;background:#10283a;color:#c0d3df;border-radius:9px;width:36px;height:32px}.composerHint{margin-left:auto;color:#617e92;font-size:9px}.sendPrimary{min-width:72px}.contactDetail.premium{padding:0}.detailTabs{display:grid;grid-template-columns:repeat(4,1fr);position:sticky;top:0;background:#0b1a27;border-bottom:1px solid #183347;z-index:3}.detailTabs button{border:0;background:transparent;color:#7893a7;padding:11px 3px;font-size:9px;font-weight:800}.detailTabs button.active{color:#9be7cf;box-shadow:inset 0 -2px #31b891}.detailTabs+#detailTabBody{padding:12px}.metricLine{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #153043;font-size:11px}.sideSectionHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.sideSectionHead h3{margin:0}.sideSectionHead span{background:#163649;border-radius:999px;padding:3px 7px;font-size:9px}.attachmentGallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}.attachmentTile{min-width:0}.attachmentTile .mediaCard{margin:0;max-width:100%;padding:5px}.attachmentTile img,.attachmentTile video{height:110px;width:100%;object-fit:cover}.attachmentTile small{display:block;color:#6c8799;font-size:8px;margin-top:4px}.sideEmpty{padding:30px 10px;text-align:center;color:#708c9f;font-size:11px}.activityTimeline{display:grid}.activityItem{display:grid;grid-template-columns:14px 1fr;gap:7px;padding:8px 0}.activityItem i{width:7px;height:7px;border-radius:50%;background:#39ba92;margin-top:4px;box-shadow:0 0 0 4px #15352d}.activityItem b,.activityItem small{display:block;font-size:10px}.activityItem small{color:#6e899b;margin-top:3px}.copilotHero{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:linear-gradient(135deg,#15283a,#17372f);margin-bottom:10px}.copilotHero>span{font-size:24px}.copilotHero h3,.copilotHero p{margin:0}.copilotHero p{font-size:9px;color:#8fa7b7;margin-top:3px}.copilotPanel button{margin-bottom:7px}.copilotOutput{border:1px solid #1c3b50;background:#081925;border-radius:11px;padding:11px;font-size:11px;line-height:1.5;min-height:70px}.copilotPanel details{margin-top:10px;font-size:10px;color:#819bac}.copilotPanel pre{white-space:pre-wrap;font:inherit}.featuredChannel{border-color:#2e8068!important;box-shadow:0 0 0 1px rgba(45,184,143,.15)}.connectStatus{display:grid;gap:3px;padding:10px;margin-top:10px;background:#0d2d25;border:1px solid #1d5746;border-radius:10px}.connectStatus b{font-size:11px}.connectStatus span,.connectStatus small{font-size:9px;color:#8bb8aa}.connectStatus.error{background:#321d22;border-color:#713a45}.connectStatus.error span{color:#f1aab2}
@media(max-width:1180px){.detailTabs{grid-template-columns:repeat(4,1fr)}}@media(max-width:820px){.inboxTop{margin-bottom:-2px}.viewPills{padding-bottom:3px}.chatActions .presenceBadge{display:none!important}.composerHint{display:none}.contactDetailCol{display:none}.attachmentGallery{grid-template-columns:1fr}}

/* ===== V1.3.1 Reliable Sync + Media Recovery ===== */
.convSelectWrap{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:stretch;border-bottom:1px solid var(--line,#e8edf2)}
.convSelectWrap>.convItem{border-bottom:0!important;width:100%;border-radius:0!important}
.convSelectWrap.bulkOn{background:color-mix(in srgb,var(--accent,#0878ff) 7%,transparent)}
.bulkCheck{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative}
.bulkCheck input{position:absolute;opacity:0;pointer-events:none}
.bulkCheck span{width:17px;height:17px;border:1.5px solid #aab5c1;border-radius:5px;background:#fff;display:block;transition:.15s ease}
.bulkCheck input:checked+span{background:#0878ff;border-color:#0878ff;box-shadow:inset 0 0 0 4px #fff}
.bulkBar{display:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f7faff;border-bottom:1px solid #dce8f7;position:sticky;top:0;z-index:4}
.bulkBar.show{display:flex}.bulkBar>div:first-child{display:flex;flex-direction:column;min-width:90px}.bulkBar small{color:#66768a}.bulkActions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.bulkActions button{padding:7px 9px;font-size:12px}
.draftStatus{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;margin:0 0 7px;border:1px dashed #d5dce6;border-radius:10px;color:#6b7787;font-size:12px;background:#fbfcfe}.draftStatus.active{border-style:solid;border-color:#bdd4f8;background:#f3f8ff;color:#285785}.draftStatus button{padding:3px 7px;font-size:11px}
.copilotTools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.copilotTools button{min-height:36px}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.analyticsHero{margin-bottom:14px}.analyticsLoading{padding:42px;text-align:center;color:#64748b}
.miniChart{height:220px;display:flex;align-items:flex-end;gap:6px;padding:18px 4px 2px;overflow-x:auto}.miniDay{height:100%;min-width:24px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px}.barStack{height:170px;width:14px;display:flex;align-items:flex-end;gap:2px}.barStack i,.barStack b{display:block;flex:1;min-height:3px;border-radius:4px 4px 1px 1px;background:#8db9f3}.barStack b{background:#234f86}.miniDay small{font-size:9px;color:#718096;transform:rotate(-45deg);transform-origin:center;white-space:nowrap;margin-bottom:10px}
.agentTable{display:grid;gap:0}.agentRow{display:grid;grid-template-columns:minmax(160px,1fr) 100px 100px;gap:12px;padding:11px 8px;border-top:1px solid #edf0f3}.agentRow.head{border-top:0;color:#6b7787;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.agentRow span:not(:first-child){text-align:right}
.fbDiagnosticsV130{margin-top:14px;padding:13px;border:1px solid #dce4ef;border-radius:14px;background:#fbfcfe}.diagHead{display:flex;align-items:center;justify-content:space-between;gap:12px}.diagHead>div{display:flex;flex-direction:column;gap:2px}.diagHead small{color:#6b7787}.fbDiagGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0}.fbDiagGrid>div{padding:9px;border:1px solid #e4e9ef;border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:4px}.fbDiagGrid span{font-size:10px;color:#718096;text-transform:uppercase}.fbDiagGrid b{font-size:13px}.scopeChips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.scopeChips span{font-size:10px;padding:5px 7px;border-radius:999px;background:#edf1f5;color:#5c6773}.scopeChips .ok{background:#e8f7ef;color:#167245}.scopeChips .bad{background:#fff1f1;color:#a33b3b}
.workflowMapV130{margin-top:14px}.workflowRows{display:grid;gap:10px}.workflowRow{display:grid;grid-template-columns:minmax(120px,.8fr) 22px minmax(150px,1.2fr) 22px minmax(180px,1.3fr);align-items:center;gap:8px;opacity:.72}.workflowRow.live{opacity:1}.workflowRow>i{text-align:center;color:#8a98aa;font-style:normal}.flowNode{border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#fff;min-width:0}.flowNode small{display:block;font-size:9px;color:#7a8796;letter-spacing:.08em;margin-bottom:3px}.flowNode b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flowNode.trigger{border-left:3px solid #0878ff}.flowActions{display:flex;gap:5px;flex-wrap:wrap}.flowActions span{background:#eef4fb;border:1px solid #d8e5f3;color:#31577d;padding:6px 8px;border-radius:999px;font-size:10px}
.commandOverlay{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(5px);display:flex;align-items:flex-start;justify-content:center;padding-top:min(18vh,150px);z-index:9999}.commandBox{width:min(620px,calc(100vw - 28px));max-height:65vh;background:#fff;border-radius:18px;box-shadow:0 28px 80px rgba(15,23,42,.28);overflow:hidden;border:1px solid rgba(255,255,255,.7)}.commandSearch{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid #e9edf2}.commandSearch>span{font-size:11px;padding:5px 7px;border:1px solid #dbe2ea;border-radius:7px;color:#657385}.commandSearch input{border:0!important;box-shadow:none!important;font-size:17px;padding:8px 0!important;outline:0}.commandSearch button{border:0;background:transparent;color:#7a8796;cursor:pointer}.commandBox #commandListV130{padding:8px;overflow:auto;max-height:50vh}.commandBox #commandListV130 button{width:100%;border:0;background:transparent;padding:11px 12px;border-radius:10px;display:flex;justify-content:space-between;text-align:left;cursor:pointer}.commandBox #commandListV130 button:hover,.commandBox #commandListV130 button:focus{background:#f1f6fc;outline:0}

@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.fbDiagGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflowRow{grid-template-columns:1fr}.workflowRow>i{transform:rotate(90deg)}.bulkBar{align-items:flex-start;flex-direction:column}.bulkActions{justify-content:flex-start}}
@media(max-width:700px){.grid4{grid-template-columns:1fr}.convSelectWrap{grid-template-columns:30px minmax(0,1fr)}.bulkActions{overflow-x:auto;flex-wrap:nowrap;width:100%;padding-bottom:3px}.bulkActions button{white-space:nowrap}.fbDiagGrid{grid-template-columns:1fr 1fr}.agentRow{grid-template-columns:minmax(110px,1fr) 65px 55px}.commandOverlay{padding-top:70px}.copilotTools{grid-template-columns:1fr 1fr}}

/* V1.3.2 conversation history recovery */
.historyRepairV132{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid rgba(66,197,166,.22);background:rgba(28,110,91,.16);font-size:11px;min-height:42px}
.historyRepairV132>div:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}.historyRepairV132 b{font-size:11px;color:#d9fff5}.historyRepairV132 span{color:#90b7ad;white-space:normal}.historyRepairV132 button{flex:0 0 auto}
.historyRepairPulseV132{width:9px;height:9px;border-radius:999px;background:#40d3ab;box-shadow:0 0 0 0 rgba(64,211,171,.38);animation:historyPulseV132 1.35s infinite}
@keyframes historyPulseV132{0%{box-shadow:0 0 0 0 rgba(64,211,171,.38)}70%{box-shadow:0 0 0 8px rgba(64,211,171,0)}100%{box-shadow:0 0 0 0 rgba(64,211,171,0)}}
.historyEmptyV132{min-height:240px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;padding:30px;color:#7396a4}.historyEmptyV132 b{color:#cde3e8;font-size:14px}.historyEmptyV132 span{max-width:360px;font-size:11px;line-height:1.5}
.historySpinnerV132{width:24px;height:24px;border-radius:50%;border:2px solid rgba(122,177,190,.18);border-top-color:#40d3ab;animation:historySpinV132 .8s linear infinite}@keyframes historySpinV132{to{transform:rotate(360deg)}}


/* V1.3.3 live Instagram media capture */
.igMediaHealthV133{margin-top:14px;padding:13px;border:1px solid rgba(55,211,169,.25);border-radius:14px;background:rgba(15,55,45,.35)}
.igMediaStatsV133{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.igMediaStatsV133>div{padding:9px;border:1px solid rgba(125,180,164,.18);border-radius:10px;background:rgba(4,24,31,.45);display:grid;gap:4px}.igMediaStatsV133 span{font-size:9px;color:#7ea59a;text-transform:uppercase}.igMediaStatsV133 b{font-size:11px;color:#d5fff4;overflow-wrap:anywhere}.mediaMissing.historical{border-color:rgba(195,142,72,.35);background:rgba(81,54,21,.22)}
@media(max-width:700px){.igMediaStatsV133{grid-template-columns:1fr}}


/* V1.3.4 Facebook Rescue Connector */
.fbRescueV134{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.rescueRoutesV134{display:grid;gap:10px;margin-top:10px}.rescueRouteV134{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.02)}.rescueRouteV134.featured{border-color:rgba(52,211,153,.4);background:rgba(16,185,129,.05)}.rescueRouteV134 b{font-size:13px}.rescueRouteV134 span{font-size:11px;line-height:1.5;color:var(--muted)}.rescueRouteV134 label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.rescueRouteV134 input{width:100%;box-sizing:border-box;padding:10px 11px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--text)}.fbRescueActionsV134{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}

/* V1.4.2 current-access mode */
#fbCurrentAccessV142 .alert.good{margin-top:12px}

/* ===== V1.5.0 Professional Inbox ===== */
:root{--surface0:#07121d;--surface1:#0b1925;--surface2:#0f2231;--surface3:#132a3a;--borderSoft:#193549;--accent:#24bd91;--accentSoft:#113c31;--blueSoft:#153c67;--textStrong:#f4f8fb;--textSoft:#91a7b7}
body{background:#07111b}
.app{grid-template-columns:224px minmax(0,1fr);grid-template-rows:72px 1fr}
.sidebar{background:#081723;padding:15px 11px;border-right:1px solid #163044}
.sidebar nav button{min-height:43px;border-radius:10px;font-size:13px;transition:background .14s ease,color .14s ease,transform .14s ease}
.sidebar nav button:hover{transform:translateX(1px)}
.sidebar nav button b{font-size:10px;background:#1c5547;color:#a2f3d7;min-width:22px;text-align:center}
.sidebarAction.enabledV150{background:#164536;color:#9ce7cc}
.topbar{height:72px;background:rgba(7,18,29,.96);padding:0 18px;border-color:#193347}
.topbar h1{font-size:21px}.topbar .eyebrow{font-size:9px;margin-bottom:3px}
.app main{padding:12px 14px 14px}
.notificationBellV150{position:relative;width:39px;height:39px;border-radius:11px;border:1px solid #294459;background:#0e2231;color:#dceaf3;display:grid;place-items:center}
.bellGlyphV150{width:14px;height:14px;border:2px solid #8ea6b7;border-radius:8px 8px 5px 5px;display:block;font-size:0;position:relative}.bellGlyphV150:after{content:"";position:absolute;width:4px;height:2px;background:#8ea6b7;border-radius:4px;bottom:-5px;left:3px}
.notificationBellV150 b{position:absolute;right:-5px;top:-6px;background:#ef5f69;color:white;border:2px solid #07121d;border-radius:999px;min-width:20px;height:20px;line-height:16px;padding:0 4px;font-size:9px}
.notificationCenterV150{position:fixed;z-index:120;right:18px;top:64px;width:min(390px,calc(100vw - 24px));max-height:min(600px,calc(100vh - 88px));background:#0b1b29;border:1px solid #25465d;border-radius:16px;box-shadow:0 28px 90px rgba(0,0,0,.52);overflow:hidden}
.notifHeadV150{display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #1b374a}.notifHeadV150 b,.notifHeadV150 small{display:block}.notifHeadV150 b{font-size:15px}.notifHeadV150 small{color:#7f9aac;font-size:10px;margin-top:2px}.notifHeadV150 .ghost{font-size:10px;padding:7px 9px}.notifListV150{overflow:auto;max-height:510px}.notifItemV150{width:100%;border:0;border-bottom:1px solid #142e40;background:#0a1925;color:inherit;padding:12px 13px;display:grid;grid-template-columns:34px 1fr 8px;gap:10px;text-align:left;align-items:start}.notifItemV150:hover{background:#102536}.notifItemV150.unread{background:#10293a}.notifItemV150.unread b{color:#fff}.notifItemV150 p{margin:3px 0 4px;color:#96aaba;font-size:11px;line-height:1.35}.notifItemV150 small{color:#6d889b;font-size:9px}.notifItemV150 i{width:7px;height:7px;border-radius:50%;background:#36c698;margin-top:6px}.notifChannelV150{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:10px;font-weight:900}.notifChannelV150.facebook{background:#173c6b;color:#9ecaff}.notifChannelV150.instagram{background:#4c2d54;color:#f2b4ed}.notifChannelV150.whatsapp{background:#17483b;color:#9be8cc}.notifEmptyV150{padding:48px 25px;text-align:center;color:#7892a6}.notifEmptyV150 b,.notifEmptyV150 span{display:block}.notifEmptyV150 b{color:#cbd9e2;margin-bottom:5px}

.professionalInboxV150{gap:8px}.professionalInboxV150 .inboxTop{display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:42px}.proViewPillsV150{flex:1}.proViewPillsV150 button{padding:7px 12px;background:#091a27;border-color:#1b3b50;color:#87a2b5;transition:.14s ease}.proViewPillsV150 button:hover{background:#102739;color:#d8e6ef}.proViewPillsV150 button.active{background:#185846;border-color:#26876b;color:#dcfff3;box-shadow:0 4px 18px rgba(30,184,139,.12)}
.queueSummaryV150{display:flex;align-items:center;gap:10px;flex:0 0 auto;color:#7d96a8;font-size:9px;white-space:nowrap}.queueSummaryV150 span{border:1px solid #1a364a;background:#0b1c29;padding:6px 8px;border-radius:9px}.queueSummaryV150 span b{color:#d8e7ef;margin-right:2px}.queueSummaryV150 small{color:#58cba8;font-size:9px}
.professionalGridV150{height:calc(100vh - 130px);grid-template-columns:minmax(330px,360px) minmax(480px,1fr) minmax(290px,325px);border:1px solid #19384d;border-radius:14px;background:#081722;box-shadow:0 18px 50px rgba(0,0,0,.18)}
.professionalGridV150.detailsCollapsedV150{grid-template-columns:minmax(330px,370px) minmax(540px,1fr) 0}.professionalGridV150.detailsCollapsedV150 .contactDetailCol{display:none}
.convListCol{background:#091824}.convToolbar{padding:10px;background:#0b1c29;border-color:#18364a;gap:7px}.convToolbar input,.convToolbar select{background:#081722;border-color:#1d3b50;border-radius:9px;padding:9px 10px;font-size:11px}.convToolbar .searchBox{border-radius:10px;background:#081722}.filterRow{gap:6px}.convList{height:calc(100% - 107px);scrollbar-width:thin;scrollbar-color:#315167 transparent}
.proConvWrapV150{position:relative;border-bottom:1px solid #132d3f;background:#091824}.proConvWrapV150.hasUnreadV150{background:#0d2030}.proConvWrapV150 .bulkCheck{opacity:0;transition:.15s ease;z-index:3}.proConvWrapV150:hover .bulkCheck,.proConvWrapV150.bulkOn .bulkCheck{opacity:1}.proConvWrapV150>.proConvV150{padding:12px 13px 11px 47px;border:0;min-height:103px}.proConvV150:hover{background:#10283a}.proConvV150.active{background:#133044;box-shadow:inset 3px 0 #2dc093}.proConvV150.unreadV150{background:#0e2535}.proConvV150.unreadV150 .convIdentity strong,.proConvV150.unreadV150 .convPreviewV150 p{color:#f5f9fc;font-weight:800}.proConvV150.unreadV150 time{color:#67d5b2;font-weight:800}.proConvV150 .convTop{gap:10px}.proConvV150 .avatar.sm{width:36px;height:36px}.proConvV150 .convIdentity strong{font-size:12px;color:#dbe8ef}.proConvV150 .convIdentity small{font-size:9px}.proConvV150 time{font-size:9px}.convPreviewV150{display:flex;align-items:center;gap:8px;margin-top:7px}.convPreviewV150 p{margin:0;min-width:0;flex:1;color:#8299aa;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unreadCountV150{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:#27bd90;color:#04271e;font-size:9px;font-weight:900}.proConvV150 .convMeta{margin-top:8px}.proConvV150 .channelIcon{width:22px;height:22px;border-radius:7px;font-size:9px}.agentPillV150{max-width:84px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.chatCol{background:#091721}.chatHead.premium{min-height:68px;padding:11px 15px;background:#0b1c29;border-bottom-color:#19384c}.chatPerson .avatar.sm{width:39px;height:39px}.chatPerson strong{font-size:13px}.chatPerson small{font-size:10px;margin-top:2px}.chatActions{gap:7px}.chatActions button{padding:8px 10px;font-size:10px}.detailsToggleV150{white-space:nowrap}.chatMessages{padding:22px clamp(18px,3vw,42px) 24px;background:linear-gradient(180deg,#081620 0%,#091a25 100%);scrollbar-width:thin;scrollbar-color:#315167 transparent}.message{max-width:min(72%,680px);padding:11px 13px;border-radius:15px 15px 15px 5px;background:#122a3a;border-color:#1d4055;font-size:12.5px;line-height:1.55;box-shadow:0 8px 22px rgba(0,0,0,.10)}.message.outbound{background:#14513f;border-color:#206b54;border-radius:15px 15px 5px 15px}.message .msgMeta{font-size:8.5px;opacity:.78}.message .mediaCard img,.message .mediaCard video{border-radius:11px}.mediaCard.image img{width:min(100%,520px);max-height:520px}
.premiumComposer{padding:10px 13px 13px;background:#0a1b27;border-top:1px solid #1a394d;box-shadow:0 -12px 30px rgba(0,0,0,.12)}.premiumComposer .policyBanner{margin-bottom:6px;color:#7e9dac;font-size:9px}.composerTools{margin:4px 0 7px}.composerTools select{height:34px;max-width:190px}.composerHint{font-size:8.5px}.premiumComposer .composerRow{align-items:stretch;gap:9px}.premiumComposer textarea#messageInput{min-height:82px;max-height:180px;border-radius:13px;background:#071722;border:1px solid #24445a;padding:12px 14px;font-size:13px;line-height:1.45;resize:none}.premiumComposer textarea#messageInput:focus{border-color:#2e8b6e;box-shadow:0 0 0 3px rgba(42,184,139,.12)}.premiumComposer .sendPrimary{min-width:90px;border-radius:12px;font-size:13px;align-self:stretch}.draftStatus{font-size:9px}.pendingMedia{max-height:110px;overflow:auto}
.contactDetailCol{background:#091925;border-left-color:#19384c}.contactDetail.premium{background:#091925}.detailTabs{background:#0b1d2b}.detailTabs button{padding:12px 3px}.detailTabs+#detailTabBody{padding:14px}.contactHero{padding:16px 10px}.contactAvatar{width:64px;height:64px}.detailSection{padding-top:13px}.metricLine{padding:8px 0}.inboxWelcomeV150{max-width:430px}.welcomeIconV150{width:52px;height:52px;border-radius:16px;background:#12372e;color:#67d7b4;display:grid;place-items:center;margin:0 auto 15px;font-size:22px}.inboxWelcomeV150 b{font-size:18px}.inboxWelcomeV150 span{display:block;max-width:380px;margin:7px auto 14px;line-height:1.55}.inboxWelcomeV150 div:last-child{font-size:9px;color:#688598}.inboxWelcomeV150 kbd{background:#10283a;border:1px solid #27485d;border-bottom-width:2px;border-radius:5px;padding:2px 5px;color:#abc2d0}

@media(max-width:1350px){.professionalGridV150{grid-template-columns:320px minmax(430px,1fr)}.professionalGridV150 .contactDetailCol{display:none}.detailsToggleV150{display:none}.queueSummaryV150 small{display:none}}
@media(max-width:980px){.queueSummaryV150{display:none}.professionalInboxV150 .inboxTop{display:block}.professionalGridV150{height:calc(100vh - 124px);grid-template-columns:300px minmax(400px,1fr)}}
@media(max-width:820px){.app{grid-template-rows:64px 1fr}.topbar{height:64px}.app main{padding:7px}.professionalGridV150{display:block;height:calc(100vh - 105px)}.professionalGridV150 .convListCol{height:100%}.professionalGridV150.hasSelection .convListCol{display:none}.professionalGridV150 .chatCol{display:none;height:100%}.professionalGridV150.hasSelection .chatCol{display:grid}.professionalInboxV150 .inboxTop{overflow-x:auto}.proViewPillsV150{padding-bottom:4px}.message{max-width:88%}.chatMessages{padding:14px 10px}.premiumComposer{padding:8px}.premiumComposer textarea#messageInput{min-height:72px}.premiumComposer .sendPrimary{min-width:72px}.notificationCenterV150{right:8px;top:58px}}


/* ===== V1.6.0 media composer, menu studio and AI agent ===== */
.attachImagesV160{height:48px;min-width:88px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800}.mediaTrayV160{display:flex;gap:10px;overflow-x:auto;padding:10px 2px 4px}.outMediaChipV160,.menuImageV160{position:relative;min-width:96px;max-width:130px;border:1px solid var(--line);border-radius:14px;background:var(--panel2);padding:6px}.outMediaChipV160 img,.menuImageV160 img{width:100%;height:82px;object-fit:cover;border-radius:10px;display:block}.outMediaChipV160 span,.menuImageV160 span{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.outMediaChipV160 button,.menuImageV160 button{position:absolute;right:2px;top:2px;width:24px;height:24px;border:0;border-radius:50%;background:#071b27dd;color:#fff;cursor:pointer}.automationStudiosV160{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;margin-bottom:16px}.menuUploaderV160{border:1px dashed var(--line);border-radius:14px;padding:14px}.menuUploaderV160 small{margin-left:10px;color:var(--muted)}.menuImagesV160{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px;margin-top:12px}.sideCardV160{margin:14px 12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--panel2)}.sideCardV160 p{color:var(--muted);font-size:12px}.sideCardV160 label{display:grid;gap:6px;font-size:12px}.sideCardV160 select{width:100%}.aiZeroV160{font-size:11px;font-weight:900;padding:4px 8px;border-radius:999px;background:#083d31;color:#71f0c5}.aiShadowDraftV160{margin-top:12px;padding:12px;border-radius:12px;background:#071b27}.aiShadowDraftV160 p{color:var(--text);line-height:1.45}.miniStatsV160{grid-template-columns:repeat(3,1fr);margin:8px 0 14px}.danger{color:#ff9b9b!important}@media(max-width:1050px){.automationStudiosV160{grid-template-columns:1fr}.attachImagesV160 span{display:none}.attachImagesV160{min-width:48px}}


/* ===== V1.6.5 scroll stability + scoped live AI ===== */
html{scrollbar-gutter:stable}.convList,.chatMessages,.contactDetail,.inboxTop,.mediaTrayV160{overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:auto!important}.professionalGridV150,.convList,.chatMessages,.contactDetail{overflow-anchor:none}.aiLiveCardV165{border-color:#245c4c;background:linear-gradient(180deg,#102a28,#0b2022)}.aiLiveStateV165{font-size:10px;font-weight:900;padding:5px 8px;border-radius:999px;background:#482a31;color:#ffbdc4;letter-spacing:.05em}.aiLiveStateV165.on{background:#0c4d3c;color:#8df0cf;box-shadow:0 0 0 3px rgba(42,196,148,.08)}.aiLiveExplainV165{line-height:1.5}.aiLiveToggleRowV165{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #245142;border-radius:12px;background:#0a1b1e;margin:10px 0}.aiLiveToggleRowV165 b,.aiLiveToggleRowV165 small{display:block}.aiLiveToggleRowV165 small{color:#8aa99f;margin-top:3px;line-height:1.35}.aiLiveToggleRowV165 .toggle{flex:0 0 auto}.aiLivePolicyV165{display:block;color:#78978e;line-height:1.45;margin-top:10px}.aiPausedNoteV165{margin-top:10px}.convItem:focus-visible,.notificationBellV150:focus-visible,.aiLiveToggleRowV165 button:focus-visible{outline:2px solid #56d7b1;outline-offset:-2px}@media(max-width:820px){.chatHead.premium{position:sticky;top:0;z-index:4}.premiumComposer{position:sticky;bottom:0;z-index:5}.aiLiveToggleRowV165{padding:10px}}

/* V1.6.5 UI stabilization polish */
@media(max-width:820px){
  .app{grid-template-columns:1fr!important;grid-template-rows:64px minmax(0,1fr)!important;width:100%;min-width:0}
  .topbar,.app main{grid-column:1!important;width:100%;min-width:0}
  .app main{height:calc(100dvh - 64px);min-height:0;overflow:hidden;padding:7px}
  .professionalInboxV150{height:100%;min-height:0;display:flex;flex-direction:column}
  .professionalInboxV150 .inboxTop{flex:0 0 auto}
  .professionalGridV150{height:auto!important;max-height:none!important;min-height:0;flex:1 1 auto}
  .professionalGridV150 .chatCol{min-height:0}
  .premiumComposer{max-height:42dvh;overflow:auto;bottom:0}
}

/* ===== V1.7.0 Cortex AI ===== */
.aiBrainStatusV170{display:grid;gap:3px;padding:10px 12px;margin:9px 0;border:1px solid #295548;border-radius:11px;background:#081b1a}.aiBrainStatusV170 span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#78aa9c}.aiBrainStatusV170 b{font-size:12px;color:#e2fff6}.aiBrainStatusV170 small{font-size:9px;line-height:1.4;color:#7f9f96}.cortexPillV170{background:#193f58!important;color:#9bdcff!important}.cortexProviderV170{grid-column:1/-1;border:1px solid #244459;border-radius:15px;background:linear-gradient(180deg,#0a1d2a,#081722);padding:14px;margin:6px 0 10px}.cortexHeadV170{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cortexHeadV170 b,.cortexHeadV170 small{display:block}.cortexHeadV170 b{font-size:13px;color:#e8f5fb}.cortexHeadV170 small{font-size:10px;line-height:1.5;color:#8da8b8;margin-top:3px;max-width:680px}.brainChipV170{flex:0 0 auto;font-size:9px;font-weight:900;padding:6px 8px;border-radius:999px;background:#382b22;color:#eac989;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brainChipV170.ready{background:#113e34;color:#80ebca}.providerGridV170{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;margin-top:10px}.providerGridV170 label{margin:6px 0!important}.cortexFactsV170{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.cortexFactsV170 span{font-size:9px;padding:5px 7px;border-radius:999px;background:#102a3a;border:1px solid #21445b;color:#a7c4d4}.miniStatsV160{grid-template-columns:repeat(4,1fr)!important}#relearnAiHistoryV170{align-self:end;margin:10px 0 0}.aiStudioV160 textarea[name="knowledge"]{min-height:150px}.aiStudioV160 input[type="password"]{letter-spacing:.03em}@media(max-width:760px){.providerGridV170{grid-template-columns:1fr}.cortexHeadV170{display:grid}.brainChipV170{max-width:100%}.miniStatsV160{grid-template-columns:repeat(2,1fr)!important}}

/* ===== V1.8.0 premium Meta-native chat surfaces ===== */
.metaConversationV180 .chatCol{border-left:0;border-right:0}
.platformHeadV180{min-height:64px!important;padding:10px 14px!important;box-shadow:none!important}
.platformIdentityV180{display:grid;min-width:0}.platformIdentityV180 strong{font-size:13px!important;line-height:1.25}.platformIdentityV180 small{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}
.platformActionsV180{gap:8px!important}.platformSurfaceV180{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.01em;white-space:nowrap}.platformSurfaceV180 i{width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:900}.platformSurfaceV180.facebook{background:#162d4d;color:#a9cbff}.platformSurfaceV180.facebook i{background:#0866ff;color:white}.platformSurfaceV180.instagram{background:#2a1d2d;color:#f3c5e9}.platformSurfaceV180.instagram i{background:linear-gradient(135deg,#f9ce34,#ee2a7b 52%,#6228d7);color:#fff}.platformAiBtnV180,.platformInfoBtnV180,.platformToolBtnV180{border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center;border-radius:50%}.platformAiBtnV180,.platformInfoBtnV180{width:34px;height:34px;font-size:16px}.platformAiBtnV180:hover,.platformInfoBtnV180:hover,.platformToolBtnV180:hover{background:rgba(255,255,255,.08)}.cortexLivePillV180{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:800;padding:5px 8px;border-radius:999px;background:#10372c;color:#9af1d2}.cortexLivePillV180 i{width:6px;height:6px;border-radius:50%;background:#42d69f;box-shadow:0 0 0 3px rgba(66,214,159,.12)}
.platformThreadV180{display:flex;flex-direction:column;gap:2px;padding:18px clamp(14px,3vw,34px) 24px!important}.threadIntroV180{text-align:center;padding:14px 8px 24px;color:#a8a8a8}.threadIntroV180 .avatar{margin:auto}.threadIntroV180 b{display:block;font-size:13px;margin-top:8px}.threadIntroV180 small{display:block;font-size:10px;margin-top:3px}.threadIntroAvatarV180 .avatar{width:54px;height:54px}
.platformBubbleV180{box-shadow:none!important;border:0!important;max-width:min(68%,620px)!important;margin:1px 0!important;padding:8px 12px!important;line-height:1.42!important;font-size:13px!important;position:relative}.platformBubbleV180.inbound{align-self:flex-start;border-radius:18px 18px 18px 5px!important}.platformBubbleV180.outbound{align-self:flex-end;border-radius:18px 18px 5px 18px!important}.platformBubbleV180 .messageText{white-space:pre-wrap;word-break:break-word}.platformMetaV180{display:flex!important;gap:5px!important;justify-content:flex-end!important;margin-top:3px!important;font-size:8px!important;line-height:1!important;opacity:.62}.platformAuthorV180:empty{display:none}.platformBubbleV180:not(:hover) .platformAuthorV180{display:none}.platformBubbleV180 .msgStatus{font-size:8px!important}.cortexMessageV180:after{content:'Cortex';position:absolute;right:8px;bottom:-14px;font-size:7px;opacity:0;transition:.15s}.cortexMessageV180:hover:after{opacity:.45}.platformReactV180{position:absolute!important;right:-26px!important;top:50%!important;transform:translateY(-50%)!important;padding:3px!important;border-radius:50%!important;font-size:14px!important}.platformBubbleV180.outbound .platformReactV180{right:auto!important;left:-26px!important}
.platformBubbleV180 .mediaCard{border:0!important;background:transparent!important;padding:0!important;margin:4px -7px -3px!important;overflow:hidden;border-radius:14px!important;display:block!important}.platformBubbleV180 .mediaCard span{display:none!important}.platformBubbleV180 .mediaCard img{display:block!important;width:100%!important;max-width:460px!important;max-height:520px!important;object-fit:contain!important;border-radius:14px!important}.platformBubbleV180 .mediaCard video{max-width:460px!important;border-radius:14px!important}.platformBubbleV180:has(.mediaCard):not(:has(.messageText)){padding:4px!important;background:transparent!important}.platformBubbleV180:has(.mediaCard):not(:has(.messageText)) .platformMetaV180{padding:2px 4px}
.platformComposerV180{padding:7px 12px 11px!important;box-shadow:none!important}.platformPolicyV180{padding:0 3px 5px!important;margin:0!important;background:transparent!important;border:0!important;font-size:8px!important;opacity:.72}.platformPolicyV180 span:last-child{text-transform:uppercase;letter-spacing:.06em}.platformToolsV180{margin:0 0 5px!important;gap:4px!important}.platformToolsV180 select{height:28px!important;border-radius:8px!important;max-width:150px!important;font-size:9px!important}.platformToolBtnV180{width:30px;height:30px;font-size:18px}.platformComposerRowV180{position:relative;align-items:flex-end!important;gap:7px!important}.platformComposerV180 textarea#messageInput{min-height:42px!important;max-height:150px!important;border-radius:22px!important;padding:10px 14px!important;resize:none!important;font-size:13px!important;line-height:1.35!important}.platformSendV180{border:0!important;background:transparent!important;font-weight:800!important;font-size:12px!important;padding:10px 4px!important;cursor:pointer}.platformSendV180:disabled{opacity:.4}

/* Facebook Messenger dark surface */
.chatCol.channel-facebook{background:#18191a!important;color:#e4e6eb!important}.channel-facebook .platformHeadV180{background:#242526!important;border-bottom:1px solid #3a3b3c!important;color:#e4e6eb!important}.channel-facebook .platformIdentityV180 small{color:#b0b3b8!important}.channel-facebook .platformThreadV180{background:#18191a!important}.channel-facebook .threadIntroV180{color:#b0b3b8}.channel-facebook .threadIntroV180 b{color:#e4e6eb}.channel-facebook .platformBubbleV180.inbound{background:#3a3b3c!important;color:#e4e6eb!important}.channel-facebook .platformBubbleV180.outbound{background:#0866ff!important;color:#fff!important}.channel-facebook .platformComposerV180{background:#242526!important;border-top:1px solid #3a3b3c!important}.channel-facebook .platformComposerV180 textarea#messageInput{background:#3a3b3c!important;border:0!important;color:#e4e6eb!important;box-shadow:none!important}.channel-facebook .platformComposerV180 textarea#messageInput::placeholder{color:#b0b3b8}.channel-facebook .platformToolsV180 select{background:#3a3b3c!important;border:0!important;color:#e4e6eb!important}.channel-facebook .platformToolBtnV180,.channel-facebook .platformAiBtnV180,.channel-facebook .platformInfoBtnV180{color:#4599ff!important}.channel-facebook .platformSendV180{color:#4599ff!important}.channel-facebook .platformMetaV180{color:#b0b3b8}.channel-facebook .platformBubbleV180.outbound .platformMetaV180{color:#e7f1ff}.channel-facebook .avatar{background:#3a3b3c}

/* Instagram Direct dark surface */
.chatCol.channel-instagram{background:#000!important;color:#f5f5f5!important}.channel-instagram .platformHeadV180{background:#000!important;border-bottom:1px solid #262626!important;color:#f5f5f5!important}.channel-instagram .platformIdentityV180 small{color:#a8a8a8!important}.channel-instagram .chatPerson .avatar{outline:2px solid #c13584;outline-offset:2px}.channel-instagram .platformThreadV180{background:#000!important}.channel-instagram .threadIntroV180{color:#a8a8a8}.channel-instagram .threadIntroV180 b{color:#f5f5f5}.channel-instagram .platformBubbleV180.inbound{background:#262626!important;color:#f5f5f5!important;border-radius:22px 22px 22px 6px!important}.channel-instagram .platformBubbleV180.outbound{background:#3797f0!important;color:#fff!important;border-radius:22px 22px 6px 22px!important}.channel-instagram .platformComposerV180{background:#000!important;border-top:1px solid #262626!important}.channel-instagram .platformComposerV180 textarea#messageInput{background:#000!important;border:1px solid #363636!important;color:#f5f5f5!important;box-shadow:none!important}.channel-instagram .platformComposerV180 textarea#messageInput::placeholder{color:#a8a8a8}.channel-instagram .platformToolsV180 select{background:#000!important;border:1px solid #363636!important;color:#f5f5f5!important}.channel-instagram .platformToolBtnV180,.channel-instagram .platformAiBtnV180,.channel-instagram .platformInfoBtnV180{color:#f5f5f5!important}.channel-instagram .platformSendV180{color:#0095f6!important}.channel-instagram .platformMetaV180{color:#a8a8a8}.channel-instagram .platformBubbleV180.outbound .platformMetaV180{color:#d8ecff}

/* Built-in premium catalogue studio */
.builtinCatalogueV180{grid-column:1/-1;border:1px solid #345a72;border-radius:15px;background:linear-gradient(180deg,#0a1c29,#071620);padding:13px;margin:4px 0 10px}.builtinCatalogueHeadV180{display:flex;justify-content:space-between;gap:12px;align-items:center}.builtinCatalogueHeadV180 b,.builtinCatalogueHeadV180 small{display:block}.builtinCatalogueHeadV180 b{font-size:12px;color:#edf7fb}.builtinCatalogueHeadV180 small{font-size:9px;color:#87a4b4;margin-top:3px}.builtinCatalogueHeadV180>span{font-size:8px;font-weight:900;padding:5px 7px;border-radius:999px;background:#173a2f;color:#8beac8}.builtinCatalogueStripV180{display:grid;grid-template-columns:repeat(7,minmax(62px,1fr));gap:7px;margin-top:11px}.builtinCatalogueStripV180 a{position:relative;border-radius:9px;overflow:hidden;border:1px solid #29475a;background:#06131c;aspect-ratio:4/5}.builtinCatalogueStripV180 img{width:100%;height:100%;object-fit:cover;display:block}.builtinCatalogueStripV180 em{position:absolute;right:4px;bottom:4px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#07151dcc;color:#fff;font-size:8px;font-style:normal;font-weight:900}.builtinCatalogueV180 p{margin:9px 0 0;color:#87a4b4;font-size:9px;line-height:1.45}.builtinCatalogueV180 code{color:#f1c981}.menuStudioV160 textarea[name="replyText"]{min-height:72px}

@media(max-width:1180px){.platformSurfaceV180{max-width:120px;overflow:hidden}.cortexLivePillV180{display:none}.platformBubbleV180{max-width:76%!important}}
@media(max-width:820px){.platformHeadV180{min-height:58px!important;padding:8px 10px!important}.platformSurfaceV180{display:none}.platformActionsV180{gap:2px!important}.platformBubbleV180{max-width:86%!important}.platformThreadV180{padding:12px 9px 20px!important}.threadIntroV180{padding-top:8px}.platformComposerV180{padding:6px 8px 8px!important;max-height:38dvh!important}.platformToolsV180 select{display:none}.composerHint{display:none!important}.builtinCatalogueStripV180{grid-template-columns:repeat(4,1fr)}.platformBubbleV180 .mediaCard img{max-height:440px!important}.platformIdentityV180 small{max-width:160px}}

/* V1.8.0 menu albums: seven catalogue pages render as one compact native-looking media album instead of a huge vertical stack. */
.menuAlbumMessageV180{width:min(68%,620px)!important;max-width:min(68%,620px)!important;background:transparent!important;padding:3px!important}.builtinMenuAlbumV180{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:min(510px,100%);border-radius:15px;overflow:hidden;background:#111}.builtinMenuTileV180{position:relative;min-width:0;aspect-ratio:4/5;overflow:hidden;background:#111}.builtinMenuTileV180 .mediaCard{width:100%!important;height:100%!important;margin:0!important;border-radius:0!important}.builtinMenuTileV180 .mediaCard img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:0!important}.builtinMenuTileV180>span{position:absolute;right:5px;bottom:5px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#000b;color:#fff;font-size:8px;font-weight:800;pointer-events:none}.channel-facebook .builtinMenuAlbumV180{background:#242526}.channel-instagram .builtinMenuAlbumV180{background:#111}.menuAlbumMessageV180 .platformMetaV180{padding:3px 4px!important}
@media(max-width:820px){.menuAlbumMessageV180{width:91%!important;max-width:91%!important}.builtinMenuAlbumV180{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.builtinMenuTileV180{aspect-ratio:4/5}}

/* ===== V1.9.1 Phone Bridge + SMS + multi-image polish ===== */
.channelIcon.sms{background:linear-gradient(145deg,#23a35a,#11723b);color:white;font-size:9px;letter-spacing:-.4px}
.phoneBridgeV190{margin-top:16px;background:linear-gradient(145deg,rgba(12,18,28,.98),rgba(8,14,23,.98));border:1px solid rgba(63,137,198,.28)}
.phoneBridgeGridV190{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;margin-top:12px}
.phoneDevicesV190{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:12px}
.phoneDeviceV190{border:1px solid rgba(126,154,179,.2);border-radius:16px;padding:14px;background:rgba(9,16,26,.74);display:grid;gap:7px}
.phoneDeviceV190>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center}.phoneDeviceV190 small{color:var(--muted)}
.phoneSettingsV190{border:1px solid rgba(126,154,179,.18);border-radius:16px;padding:16px;background:rgba(9,16,26,.62);display:grid;gap:10px}.phoneSettingsV190 label{display:grid;gap:5px}.phoneSettingsV190 small{line-height:1.5;color:var(--muted)}
.pairTokenV190{margin-top:12px;border:1px solid rgba(42,145,230,.42);border-radius:14px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:8px;background:rgba(16,70,112,.16)}.pairTokenV190 span{grid-column:1/-1;color:var(--muted);font-size:12px}.pairTokenV190 b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.phoneEventsV190{margin-top:16px;border-top:1px solid rgba(126,154,179,.16);padding-top:14px}.phoneEventsV190 h4{margin:0 0 10px}.phoneEventV190{display:grid;grid-template-columns:150px minmax(120px,.4fr) 1fr;gap:10px;padding:8px 0;border-bottom:1px solid rgba(126,154,179,.1)}.phoneEventV190 b{text-transform:capitalize}.phoneEventV190 small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.outMediaChipV160{min-width:148px}.mediaTrayV160{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px}.mediaTrayV160::-webkit-scrollbar{height:6px}
@media(max-width:820px){.phoneBridgeGridV190{grid-template-columns:1fr}.phoneEventV190{grid-template-columns:1fr;gap:3px}.phoneEventV190 small{white-space:normal}.phoneDevicesV190{grid-template-columns:1fr}}

.nativeLanguageStatusV190{margin-top:14px;border:1px solid rgba(70,150,215,.28);border-radius:15px;padding:14px;background:linear-gradient(145deg,rgba(9,31,48,.9),rgba(7,19,31,.92))}.nativeLanguageStatusV190>div{display:flex;justify-content:space-between;gap:12px;align-items:center}.nativeLanguageStatusV190 b{font-size:13px}.nativeLanguageStatusV190>div span{color:#6ed7b5;font-weight:800;font-size:12px}.nativeLanguageStatusV190 p{color:var(--muted);font-size:11px;line-height:1.55;margin:8px 0 10px}.aiAlwaysOnNoteV190{margin-top:10px;border-radius:12px;padding:10px 11px;background:rgba(31,125,93,.12);border:1px solid rgba(57,185,139,.2);display:grid;gap:3px}.aiAlwaysOnNoteV190 b{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#67ddb7}.aiAlwaysOnNoteV190 span{font-size:10px;line-height:1.45;color:#a9bfce}
.phonePlatformLimitsV190{margin-top:14px;border:1px solid rgba(231,178,81,.2);border-radius:13px;padding:11px 13px;background:rgba(231,178,81,.06);display:grid;gap:5px}.phonePlatformLimitsV190>b{font-size:11px;color:#edc678}.phonePlatformLimitsV190>span{font-size:10px;line-height:1.5;color:var(--muted)}


/* V1.9.8 Global Cortex fresh-install setup */
.freshSetupV196{border:1px solid rgba(37,99,235,.22);box-shadow:0 12px 34px rgba(15,23,42,.08);margin-bottom:18px}
.freshSetupFactsV196{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 16px}.freshSetupFactsV196 span{padding:7px 10px;border-radius:999px;background:rgba(37,99,235,.07);font-size:12px;font-weight:700;color:var(--text)}
.freshMetaGridV196{display:grid;grid-template-columns:1fr 1fr;gap:16px}.freshMetaGroupV196{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2,#f8fafc)}.freshMetaGroupV196 h4{margin:0 0 4px}.freshMetaGroupV196 small{display:block;margin-bottom:12px;color:var(--muted)}.freshMetaGroupV196 label{display:block;font-size:12px;font-weight:700;margin-top:10px}.freshMetaGroupV196 input{width:100%;margin-top:6px}.freshMetaSubmitV196{grid-column:1/-1;display:flex;align-items:center;gap:14px;justify-content:space-between}.freshMetaSubmitV196 small{color:var(--muted);max-width:620px}
@media(max-width:820px){.freshMetaGridV196{grid-template-columns:1fr}.freshMetaSubmitV196{grid-column:1;align-items:stretch;flex-direction:column}.freshSetupFactsV196 span{font-size:11px}}

/* V2.0 advanced ordering + pause controls */
.globalCortexPauseV200{grid-column:1/-1;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--line,#dbe3ef);border-radius:16px;background:var(--panel,#fff);margin-bottom:8px}.globalCortexPauseV200>div{display:grid;gap:4px}.globalCortexPauseV200 b{font-size:15px}.globalCortexPauseV200 span{font-size:12px;opacity:.75}.globalCortexPauseV200.live{box-shadow:inset 4px 0 0 #1f9d62}.globalCortexPauseV200.paused{box-shadow:inset 4px 0 0 #d97706}.explicitPauseV200{display:grid;gap:6px;margin-top:12px}.explicitPauseV200 button{width:100%}.explicitPauseV200 small{opacity:.7;line-height:1.35}.cortexOrderV200{margin-top:10px}.orderExplainV200{font-size:12px;line-height:1.45;opacity:.78}.orderLinesV200{display:grid;gap:8px;margin:12px 0}.orderLinesV200>div{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--line,#e3e8ef);border-radius:12px}.orderLinesV200 b{font-size:12px}.orderLinesV200 span{font-size:12px}.orderLinesV200 em{font-size:12px;font-style:normal;font-weight:700}.orderTotalsV200{display:grid;gap:5px;border-top:1px solid var(--line,#e3e8ef);padding-top:10px;margin-top:8px}.orderTotalsV200>div{display:flex;justify-content:space-between;font-size:12px}.orderTotalsV200 .grand{font-size:14px;padding-top:5px}.emptyMiniV200{padding:12px;border:1px dashed var(--line,#dbe3ef);border-radius:12px;font-size:12px;opacity:.7}.orderCapabilitiesV200{margin-top:12px}@media(max-width:640px){.globalCortexPauseV200{align-items:stretch;flex-direction:column}.globalCortexPauseV200 button{width:100%}.orderLinesV200>div{grid-template-columns:auto 1fr}.orderLinesV200 em{grid-column:2}}

/* V2.4 Conversation Reliability / Order Integrity */
.quoteIntegrityV240{margin:10px 0;padding:10px 12px;border:1px solid var(--line,#2f3540);border-radius:10px;background:rgba(255,255,255,.025)}
.quoteIntegrityV240>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.quoteIntegrityV240 small{display:block;margin-top:6px;opacity:.76;line-height:1.35}.statusPill.danger{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.36);color:#fecaca}.orderIntegrityAlertV240{margin-top:10px}.cortexTraceV240{margin-top:12px;border-top:1px solid var(--line,#2f3540);padding-top:10px}.cortexTraceV240 summary{cursor:pointer;font-weight:700;font-size:12px;opacity:.9}.cortexTraceGridV240{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.cortexTraceGridV240>div{min-width:0;padding:7px 8px;border-radius:8px;background:rgba(255,255,255,.03)}.cortexTraceGridV240 span{display:block;font-size:10px;opacity:.62;text-transform:uppercase;letter-spacing:.04em}.cortexTraceGridV240 b{display:block;margin-top:2px;font-size:11px;overflow-wrap:anywhere}.traceIssueV240{display:block;margin-top:8px;line-height:1.35}.cortexOrderV200 .statusPill{white-space:nowrap}
@media(max-width:820px){.cortexTraceGridV240{grid-template-columns:1fr}}

/* V2.5 Advanced Conversation Memory + Delivery Manager */
.deliveryExpansionV250{margin-top:10px;padding:10px 12px;border:1px solid var(--line,#2f3540);border-radius:10px;background:rgba(255,255,255,.025)}

/* V2.6 Cortex Reliability Lab */
.cortexReliabilityV260{border-top:1px solid rgba(64,156,255,.35)}
.cortexReliabilityGridV260{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.cortexReliabilityGridV260>div{padding:9px;border:1px solid var(--border);border-radius:10px;display:flex;flex-direction:column;gap:3px}.cortexReliabilityGridV260 span,.memoryV260{font-size:11px;color:var(--muted)}
.qaCategoryV260{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.qaCategoryV260 span{display:flex;gap:7px;align-items:center;padding:5px 8px;border-radius:999px;background:var(--surface2);font-size:10px}.qaCategoryV260 em{font-style:normal;font-weight:800}
.feedbackV260{margin-top:12px;padding-top:10px;border-top:1px solid var(--border);display:grid;gap:8px}.feedbackV260>div{display:flex;gap:7px;flex-wrap:wrap}.correctionV260{display:grid!important;gap:7px}.correctionV260[hidden]{display:none!important}.correctionV260 input,.correctionV260 textarea{width:100%;box-sizing:border-box}
.reliabilityStatsV260{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.reliabilityStatsV260>div{background:var(--surface2);border:1px solid var(--border);padding:12px;border-radius:12px;display:grid;gap:3px}.reliabilityStatsV260 b{font-size:20px}.reliabilityStatsV260 span{font-size:11px;color:var(--muted)}
.failureCloudV260{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.failureCloudV260 span{padding:6px 9px;background:var(--surface2);border:1px solid var(--border);border-radius:999px;font-size:11px}.canaryV260{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:14px}.canaryV260 label{display:grid;gap:5px}.canaryV260 input[type=number]{max-width:110px}.canaryV260 .check{display:flex;align-items:center;gap:7px}.testCenterV260{margin-top:12px;display:grid;gap:6px}.testCenterV260 small{color:var(--muted)}
@media(max-width:820px){.cortexReliabilityGridV260,.reliabilityStatsV260{grid-template-columns:1fr 1fr}}
/* V2.7 — native Meta media geometry: keep chat images compact like Messenger / Instagram Direct. */
.channel-facebook .platformBubbleV180:has(.mediaCard),.channel-facebook .platformBubbleV180:has(.builtinMenuAlbumV180){max-width:min(320px,74vw)!important;width:auto!important}
.channel-instagram .platformBubbleV180:has(.mediaCard),.channel-instagram .platformBubbleV180:has(.builtinMenuAlbumV180){max-width:min(320px,74vw)!important;width:auto!important}
.channel-facebook .platformBubbleV180 .mediaCard img,.channel-facebook .platformBubbleV180 .mediaCard video{width:auto!important;height:auto!important;max-width:min(320px,74vw)!important;max-height:400px!important;object-fit:contain!important;border-radius:18px!important}
.channel-instagram .platformBubbleV180 .mediaCard img,.channel-instagram .platformBubbleV180 .mediaCard video{width:auto!important;height:auto!important;max-width:min(320px,74vw)!important;max-height:400px!important;object-fit:contain!important;border-radius:18px!important}
.menuAlbumMessageV180{width:min(330px,78vw)!important;max-width:min(330px,78vw)!important}
.builtinMenuAlbumV180{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:min(320px,100%)!important;gap:2px!important;border-radius:18px!important}
.builtinMenuTileV180{aspect-ratio:4/5!important}
.builtinMenuTileV180 .mediaCard img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important}
@media(max-width:820px){.channel-facebook .platformBubbleV180:has(.mediaCard),.channel-instagram .platformBubbleV180:has(.mediaCard){max-width:min(300px,80vw)!important}.menuAlbumMessageV180{width:min(310px,82vw)!important;max-width:min(310px,82vw)!important}.builtinMenuAlbumV180{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* V2.7 unified Facebook + Instagram media footprint */
.channel-facebook .platformBubbleV180:has(.mediaCard),.channel-instagram .platformBubbleV180:has(.mediaCard){max-width:min(320px,74vw)!important;width:auto!important}
.channel-facebook .platformBubbleV180 .mediaCard img,.channel-facebook .platformBubbleV180 .mediaCard video,.channel-instagram .platformBubbleV180 .mediaCard img,.channel-instagram .platformBubbleV180 .mediaCard video{width:auto!important;height:auto!important;max-width:min(320px,74vw)!important;max-height:400px!important;object-fit:contain!important;border-radius:18px!important}
@media(max-width:820px){.channel-facebook .platformBubbleV180:has(.mediaCard),.channel-instagram .platformBubbleV180:has(.mediaCard){max-width:min(300px,80vw)!important}.channel-facebook .platformBubbleV180 .mediaCard img,.channel-facebook .platformBubbleV180 .mediaCard video,.channel-instagram .platformBubbleV180 .mediaCard img,.channel-instagram .platformBubbleV180 .mediaCard video{max-width:min(300px,80vw)!important;max-height:380px!important}}

/* ===== V3.3.0 Mobile Communications Hub ===== */
:root{--smn-safe-top:env(safe-area-inset-top,0px);--smn-safe-right:env(safe-area-inset-right,0px);--smn-safe-bottom:env(safe-area-inset-bottom,0px);--smn-safe-left:env(safe-area-inset-left,0px);--smn-vvh:100dvh}
.buttonLikeV330{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
.phoneBridgeV330{margin-top:18px;overflow:hidden}.pbHeroV330{align-items:flex-start}.pbHeroV330 .eyebrow{margin:0 0 4px;color:#55d8b5}.pbFactsV330{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px}.pbFactsV330 span{font-size:10px;font-weight:750;letter-spacing:.02em;padding:7px 9px;border:1px solid rgba(76,215,177,.18);background:rgba(76,215,177,.07);border-radius:999px;color:#aeead9}.pbMainGridV330{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:18px}.pbLowerGridV330{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(280px,1fr) minmax(260px,.8fr);gap:16px;margin-top:18px}.pbLowerGridV330>div,.pbQuickV330,.phoneBridgeV330 .phoneSettingsV190{border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.025);padding:14px}.pbActionRowV330{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pbActionRowV330>*{min-height:38px}.pbDevicesV330{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.pbDeviceV330{border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.022);padding:13px;display:grid;gap:10px}.pbDeviceV330.online{box-shadow:inset 3px 0 0 rgba(76,215,177,.8)}.pbDeviceHeadV330,.pbDeviceFootV330{display:flex;justify-content:space-between;gap:10px;align-items:center}.pbDeviceHeadV330>div{display:grid;gap:2px}.pbDeviceHeadV330 small,.pbDeviceFootV330 small{color:var(--muted);font-size:10px}.pbDeviceMetricsV330{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.pbDeviceMetricsV330 span{border-radius:10px;background:rgba(255,255,255,.035);padding:8px;display:grid;gap:2px;min-width:0}.pbDeviceMetricsV330 b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pbDeviceMetricsV330 small{font-size:9px;color:var(--muted)}.pbSimListV330,.pbReadyV330{display:flex;gap:6px;flex-wrap:wrap}.pbSimChipV330{border:1px solid var(--border);padding:5px 7px;border-radius:8px;font-size:9px;color:var(--muted)}.pbSimChipV330.selected{border-color:rgba(76,215,177,.45);color:#9fe5d1;background:rgba(76,215,177,.07)}.pbReadyV330 span{font-size:9px;padding:5px 7px;border-radius:999px;background:rgba(255,255,255,.035)}.pbReadyV330 .good{color:#83e2c5}.pbReadyV330 .warn{color:#f3c97d}.pbErrorV330{border:1px solid rgba(239,68,68,.2);background:rgba(239,68,68,.06);padding:8px 9px;border-radius:10px;display:grid;gap:2px}.pbErrorV330 b{font-size:10px;color:#ffc4c4}.pbErrorV330 span{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.dangerTextV330{color:#ffabab!important}.badTextV330{color:#ffaaaa!important}.pbQuickV330{display:grid;gap:8px}.pbQuickV330 h4,.pbLowerGridV330 h4{margin:0 0 4px}.pbQuickV330 p{font-size:11px;color:var(--muted);line-height:1.45;margin:0 0 4px}.pbQuickV330 label,.phoneBridgeV330 .phoneSettingsV190 label{display:grid;gap:5px;font-size:10px;color:var(--muted)}.pbQuickV330 input,.pbQuickV330 select,.pbQuickV330 textarea,.phoneBridgeV330 .phoneSettingsV190 input,.phoneBridgeV330 .phoneSettingsV190 select{width:100%;box-sizing:border-box}.pbCallControlsV330{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.pbCallControlsV330 button{border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:10px;min-height:34px;font-size:10px}.pbQuickV330>small{color:var(--muted);font-size:9px;line-height:1.45}.pbPairV330{margin-top:10px;border:1px solid rgba(44,143,235,.3);background:rgba(44,143,235,.07);border-radius:14px;padding:12px;display:grid;gap:9px}.pbPairV330>div:first-child{display:flex;justify-content:space-between;gap:10px}.pbPairV330>div:first-child span{font-size:10px;color:var(--muted)}.pbPairV330 code{display:block;padding:8px 9px;border-radius:9px;background:rgba(0,0,0,.18);overflow-wrap:anywhere;font-size:10px}.pbPairV330>small{font-size:9px;color:var(--muted);line-height:1.45}.pbEmptyV330{border:1px dashed var(--border);padding:18px;border-radius:14px;display:grid;gap:5px;text-align:center}.pbEmptyV330 span{color:var(--muted);font-size:11px}.pbEmptyV330.small{padding:10px}.pbTimelineV330,.pbCommandListV330{display:grid;gap:6px;max-height:360px;overflow:auto}.pbTimelineRowV330{display:grid;grid-template-columns:9px 1fr;gap:8px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.04)}.pbTimelineRowV330 i{width:8px;height:8px;border-radius:99px;background:#5584aa;margin-top:4px}.pbTimelineRowV330 i.sms{background:#4cd7b1}.pbTimelineRowV330>div{display:grid;gap:1px;min-width:0}.pbTimelineRowV330 b{font-size:10px;text-transform:capitalize}.pbTimelineRowV330 span{font-size:10px}.pbTimelineRowV330 small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pbCommandV330{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;border-bottom:1px solid rgba(255,255,255,.04);padding:7px 0}.pbCommandV330>div{display:grid;gap:2px}.pbCommandV330 b{font-size:10px;text-transform:capitalize}.pbCommandV330 small{font-size:9px;color:var(--muted)}.pbPlatformV330{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.pbPlatformV330>div{border-radius:14px;padding:12px;border:1px solid var(--border);background:rgba(255,255,255,.018);display:grid;gap:4px}.pbPlatformV330 b{font-size:11px}.pbPlatformV330 span{font-size:10px;line-height:1.5;color:var(--muted)}
.mobileDockV330,.offlineBarV330,.mobileCloseDetailsV330,.mobileDetailsBtnV330{display:none}

@media(max-width:1100px){.pbMainGridV330{grid-template-columns:1fr}.pbLowerGridV330{grid-template-columns:1fr 1fr}.pbLowerGridV330>div:last-child{grid-column:1/-1}.pbDevicesV330{grid-template-columns:1fr}.pbPlatformV330{grid-template-columns:1fr}}

@media(max-width:820px){
  html,body{overscroll-behavior:none;background:#06111c}.app{height:var(--smn-vvh,100dvh);min-height:0;padding-bottom:calc(64px + var(--smn-safe-bottom));overflow:hidden}.topbar{height:calc(60px + var(--smn-safe-top));padding-top:var(--smn-safe-top);padding-left:max(14px,var(--smn-safe-left));padding-right:max(14px,var(--smn-safe-right));box-sizing:border-box}.topbar h1{font-size:19px}.topbar .eyebrow{font-size:8px}.topActions #connectionText{display:none}.topActions #refreshBtn{width:38px;overflow:hidden;color:transparent;position:relative;padding:0}.topActions #refreshBtn:after{content:'↻';color:var(--text);position:absolute;inset:0;display:grid;place-items:center;font-size:18px}.menuBtn{width:38px;height:38px;border-radius:12px}.sidebar{padding-top:max(18px,var(--smn-safe-top));padding-bottom:calc(76px + var(--smn-safe-bottom));width:min(88vw,330px)!important;z-index:120!important;box-shadow:18px 0 50px rgba(0,0,0,.45)}#main{height:calc(var(--smn-vvh,100dvh) - 60px - var(--smn-safe-top) - 64px - var(--smn-safe-bottom));overflow:auto;padding:10px 8px 14px!important;box-sizing:border-box;-webkit-overflow-scrolling:touch}.mobileDockV330{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:110;left:0;right:0;bottom:0;height:calc(62px + var(--smn-safe-bottom));padding:5px max(4px,var(--smn-safe-right)) var(--smn-safe-bottom) max(4px,var(--smn-safe-left));background:rgba(5,16,27,.96);backdrop-filter:blur(18px);border-top:1px solid rgba(123,164,194,.18);box-sizing:border-box}.mobileDockV330 button{position:relative;border:0;background:transparent;color:#8199aa;display:grid;place-items:center;align-content:center;gap:1px;padding:3px;border-radius:12px}.mobileDockV330 button span{font-size:17px;line-height:1}.mobileDockV330 button b{font-size:8px;font-weight:700}.mobileDockV330 button.active{color:#68ddbd;background:rgba(76,215,177,.08)}.mobileDockV330 em{position:absolute;top:2px;right:20%;min-width:16px;height:16px;padding:0 3px;border-radius:99px;background:#ef476f;color:white;font:700 9px/16px sans-serif;font-style:normal;text-align:center}.mobileDockV330.chatMode button[data-mobile-v330="inbox"] b:after{content:' · Chat'}.offlineBarV330{display:block;position:fixed;z-index:150;left:10px;right:10px;bottom:calc(68px + var(--smn-safe-bottom));padding:9px 11px;border-radius:12px;background:#8b5e10;color:#fff4d8;font-size:10px;text-align:center;box-shadow:0 8px 26px rgba(0,0,0,.3)}.offlineBarV330[hidden]{display:none}.inboxShell{height:100%;min-height:0}.inboxTop{overflow-x:auto;scrollbar-width:none;position:sticky;top:0;z-index:15;background:var(--bg);padding-bottom:7px}.inboxTop::-webkit-scrollbar{display:none}.inboxTop>div{width:max-content;min-width:100%}.inbox{height:calc(100% - 48px)!important;min-height:0!important;border-radius:14px!important;overflow:hidden}.convListCol,.chatCol{height:100%!important;min-height:0}.convToolbar{padding:8px!important}.convList{overscroll-behavior:contain}.convItem{min-height:78px;padding:10px 11px!important}.chatHead{min-height:58px;padding:8px 10px!important}.chatPerson strong{font-size:13px}.chatPerson small{font-size:9px}.chatActions{gap:4px}.chatActions #assistBtn,.chatActions #closeConversation{display:none}.mobileDetailsBtnV330{display:inline-flex!important;min-height:32px!important;padding:0 9px!important;font-size:9px!important}.chatMessages{padding:10px 8px 16px!important;overscroll-behavior:contain;scroll-padding-bottom:120px}.message,.platformBubbleV180{max-width:88%!important}.composer{position:sticky!important;bottom:0!important;z-index:25!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px))!important;background:rgba(5,16,27,.97)!important;backdrop-filter:blur(12px)}.composerTools{overflow-x:auto;scrollbar-width:none}.composerHint{display:none}.composerRow{align-items:flex-end!important}.composerRow textarea{min-height:46px!important;max-height:128px!important;border-radius:18px!important;font-size:16px!important;padding:12px!important}.sendPrimary,#sendBtn{min-width:60px!important;min-height:46px!important;border-radius:16px!important}.policyBanner{font-size:8px!important;padding:5px 7px!important}.contactDetailCol{display:block!important;position:fixed!important;z-index:130!important;top:calc(60px + var(--smn-safe-top));left:0;right:0;bottom:calc(62px + var(--smn-safe-bottom));width:auto!important;max-width:none!important;background:#07131f;transform:translateY(110%);transition:transform .22s ease;overflow:auto!important;padding-top:42px}.inbox.mobileDetailsOpenV330 .contactDetailCol{transform:translateY(0)}.mobileCloseDetailsV330{display:block;position:fixed;top:calc(65px + var(--smn-safe-top));left:10px;z-index:132;border:1px solid var(--border);background:#102438;color:var(--text);border-radius:10px;padding:7px 10px;font-size:10px}.detailTabs{position:sticky;top:0;z-index:3;background:#07131f}.contactDetail{min-height:100%}.phoneBridgeV330{padding:12px!important}.pbHeroV330{display:grid;gap:8px}.pbFactsV330{gap:5px}.pbFactsV330 span{font-size:8px;padding:5px 7px}.pbMainGridV330,.pbLowerGridV330,.pbPlatformV330{grid-template-columns:1fr}.pbLowerGridV330>div:last-child{grid-column:auto}.pbDevicesV330{grid-template-columns:1fr}.pbDeviceMetricsV330{grid-template-columns:repeat(4,minmax(0,1fr))}.pbDeviceMetricsV330 span{padding:6px}.pbDeviceMetricsV330 b{font-size:10px}.pbActionRowV330>*{flex:1 1 auto}.pbPairV330 .pbActionRowV330{display:grid;grid-template-columns:1fr}.pbQuickV330 input,.pbQuickV330 textarea,.pbQuickV330 select,.phoneBridgeV330 select,.phoneBridgeV330 input{font-size:16px!important}.pbCallControlsV330{grid-template-columns:1fr 1fr}.pbTimelineV330,.pbCommandListV330{max-height:240px}.viewHeader{gap:8px;align-items:flex-start}.viewHeader h2{font-size:20px}.panel{border-radius:14px}.channelCards{grid-template-columns:1fr!important}.mobileChatV330 #main{padding-left:0!important;padding-right:0!important}.mobileChatV330 .inboxShell{border-radius:0}.mobileChatV330 .inbox{border-radius:0!important}
}
@media(max-width:430px){.pbDeviceMetricsV330{grid-template-columns:repeat(2,1fr)}.pbDeviceHeadV330{align-items:flex-start}.pbDeviceFootV330{align-items:flex-start}.pbCallControlsV330{grid-template-columns:1fr}.mobileDockV330 em{right:14%}}

/* V3.3.0 global physical-SIM call HUD */
.incomingSimCallV330{position:fixed;z-index:99990;right:18px;top:18px;width:min(520px,calc(100vw - 36px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid rgba(94,234,194,.34);border-radius:20px;background:rgba(6,22,34,.97);box-shadow:0 24px 70px rgba(0,0,0,.44);backdrop-filter:blur(18px)}
.incomingSimPulseV330{width:13px;height:13px;border-radius:50%;background:#5eeac2;box-shadow:0 0 0 0 rgba(94,234,194,.7);animation:simCallPulseV330 1.45s infinite}
@keyframes simCallPulseV330{0%{box-shadow:0 0 0 0 rgba(94,234,194,.64)}70%{box-shadow:0 0 0 13px rgba(94,234,194,0)}100%{box-shadow:0 0 0 0 rgba(94,234,194,0)}}
.incomingSimTextV330{display:flex;min-width:0;flex-direction:column;gap:2px}.incomingSimTextV330 small{color:#74d7be;font-size:10px;font-weight:800;letter-spacing:.12em}.incomingSimTextV330 b{color:#fff;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.incomingSimTextV330 span{color:#a8bed0;font-size:12px}
.incomingSimActionsV330{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.incomingSimActionsV330 button{min-height:38px;border-radius:12px;padding:0 12px}.incomingSimActionsV330 .accept{background:#167a60;color:#fff;border:1px solid #2fc49a}.incomingSimActionsV330 .end{background:#6d2630;color:#fff;border:1px solid #b84a58}
@media(max-width:720px){.incomingSimCallV330{left:10px;right:10px;top:max(10px,env(safe-area-inset-top));width:auto;grid-template-columns:auto 1fr;padding:12px;gap:10px}.incomingSimActionsV330{grid-column:1/-1;width:100%}.incomingSimActionsV330 button{flex:1}.incomingSimTextV330 b{font-size:17px}}
.iosInstallGuideV330{position:fixed;z-index:99999;inset:0;display:grid;place-items:end center;padding:18px;background:rgba(0,0,0,.48);backdrop-filter:blur(8px)}.iosInstallGuideV330>div{position:relative;width:min(520px,100%);padding:22px;border-radius:24px;background:#0b1e2e;border:1px solid rgba(124,183,219,.24);box-shadow:0 25px 80px rgba(0,0,0,.48);color:#fff}.iosInstallGuideV330 h3{margin:4px 0 12px;font-size:21px}.iosInstallGuideV330 ol{margin:0 0 18px;padding-left:22px;color:#b7cbd9;line-height:1.7}.iosGuideCloseV330{position:absolute;right:13px;top:11px;border:0;background:transparent;color:#aac1d1;font-size:26px}.iosGuideDoneV330{width:100%;min-height:48px}
/* V3.4 Owner Copilot */
.adminCopilotView{display:grid;grid-template-rows:auto auto minmax(320px,1fr) auto;gap:14px;min-height:calc(100vh - 112px);padding:18px;max-width:1280px;margin:0 auto}.copilotTop{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;background:linear-gradient(135deg,#0b1f31,#102c35);border:1px solid #24495a;border-radius:18px;padding:20px}.copilotTop h2{margin:8px 0 5px;font-size:25px}.copilotTop p{margin:0;color:#a7c1cf;max-width:720px;line-height:1.5}.copilotShield{display:inline-flex;padding:5px 9px;border-radius:999px;background:#123c34;color:#8ff0c8;border:1px solid #286657;font-size:10px;font-weight:800;letter-spacing:.09em}.copilotCustomerPick{min-width:260px;display:grid;gap:7px}.copilotCustomerPick label{font-size:11px;color:#9db5c4;display:grid;gap:6px}.copilotCustomerPick select{width:100%;background:#07131f;color:#eaf5fb;border:1px solid #315267;border-radius:10px;padding:10px}.copilotCustomerPick small{color:#78a2b6}.copilotQuickV340{display:flex;flex-wrap:wrap;gap:8px}.copilotQuickV340 button{background:#0f2434;color:#cce7f4;border:1px solid #29485a;border-radius:999px;padding:8px 11px;cursor:pointer}.adminCopilotChat{overflow:auto;background:#071019;border:1px solid #1f3a4a;border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:12px}.adminCopilotBubble{max-width:82%;padding:13px 15px;border-radius:14px;line-height:1.48;font-size:14px}.adminCopilotBubble.user{align-self:flex-end;background:#176fbe;color:white}.adminCopilotBubble.assistant{align-self:flex-start;background:#102431;color:#e1eef5;border:1px solid #254554}.copilotWelcome{margin:auto;max-width:520px;text-align:center;color:#9cb5c2;display:grid;gap:7px}.copilotWelcome b{font-size:20px;color:#eef8fc}.adminCopilotComposer{display:grid;grid-template-columns:1fr auto;gap:10px}.adminCopilotComposer textarea{min-height:62px;max-height:180px;resize:vertical;background:#07131f;color:#eef8fc;border:1px solid #2d5062;border-radius:14px;padding:12px}.copilotActionCard{margin-top:12px;padding:12px;border-radius:12px;background:#0d1a20;border:1px solid #7d6330;display:grid;gap:8px}.copilotActionCard>small{color:#a8b7bf}.copilotInvoicePreview{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;padding:10px;background:#07131f;border-radius:10px}.copilotInvoicePreview strong{font-size:20px}.copilotInvoicePreview small{grid-column:1/-1;color:#9fbdca}.chatHead #adminAiBtn{white-space:nowrap}@media(max-width:760px){.adminCopilotView{padding:10px;min-height:calc(100vh - 130px)}.copilotTop{display:grid}.copilotCustomerPick{min-width:0}.adminCopilotBubble{max-width:94%}.adminCopilotComposer{grid-template-columns:1fr}.copilotQuickV340{overflow:auto;flex-wrap:nowrap}.copilotQuickV340 button{white-space:nowrap}}

/* V3.5 direct invoice entry points */
.directInvoiceV350{white-space:nowrap;font-weight:800}
.cortexInvoiceActionsV350{margin-top:12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cortexInvoiceActionsV350 small{flex:1;min-width:180px;color:var(--muted,#8ca3b4);line-height:1.35}
@media (max-width:720px){.directInvoiceV350{padding-inline:10px}.cortexInvoiceActionsV350 .primary{width:100%}}

/* V3.7 durable menu-transport recovery */
.menuRecoveryV370{margin-top:12px;padding:12px;border:1px solid rgba(78,159,255,.35);border-radius:14px;background:rgba(15,64,105,.22);display:grid;gap:10px}.menuRecoveryV370.failed{border-color:rgba(255,127,92,.55);background:rgba(116,48,38,.22)}.menuRecoveryV370 div{display:grid;gap:3px}.menuRecoveryV370 b{font-size:13px}.menuRecoveryV370 small{line-height:1.4;opacity:.85}.menuRecoveryV370 button{justify-self:start}

/* V3.7.0 R5 — actor provenance + full-history / in-chat search */
.platformAuthorV180.actorAiV375,.actorAiV375{color:#8bd5ff!important;font-weight:800}.platformAuthorV180.actorManualV375,.actorManualV375{color:#79e6b9!important;font-weight:800}.platformAuthorV180.actorCustomerV375,.actorCustomerV375{color:#aab9c6!important}.platformAuthorV180.actorSyncV375,.actorSyncV375{color:#b59acb!important;font-weight:700}.platformAuthorV180.actorSystemV375,.actorSystemV375{color:#7f8b95!important}.deepSearchHitV375{margin:4px 10px 7px 54px;padding:6px 8px;border-radius:8px;background:#102a3a;border:1px solid #214963;display:grid;gap:2px}.deepSearchHitV375 b{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#67d9b7}.deepSearchHitV375 span{font-size:9px;color:#c1d2df;line-height:1.3}.chatSearchToggleV375{min-width:34px!important;font-size:18px!important}.chatSearchBarV375{display:flex;align-items:center;gap:6px;padding:7px 9px;background:#0b1d2a;border-bottom:1px solid #1b3c52;position:sticky;top:0;z-index:14}.chatSearchBarV375[hidden]{display:none}.chatSearchBarV375 input{flex:1;min-width:0;background:#071622;border:1px solid #24465c;color:#eaf4fa;border-radius:9px;padding:8px 10px;font-size:11px}.chatSearchBarV375 span{font-size:9px;color:#92a9b9;min-width:52px;text-align:center}.chatSearchBarV375 button{border:1px solid #27475c;background:#102537;color:#d5e3ec;border-radius:8px;height:30px;min-width:30px}.chatSearchHitV375{outline:1px solid rgba(255,210,77,.45);outline-offset:2px}.chatSearchCurrentV375{outline:2px solid #ffd24d!important;box-shadow:0 0 0 4px rgba(255,210,77,.12)!important}@media(max-width:760px){.deepSearchHitV375{margin-left:48px}.chatSearchBarV375{top:0}.chatSearchBarV375 input{font-size:16px}.chatSearchToggleV375{display:inline-flex!important}}

/* R18 Cortex per-response correctness confidence */
.cortexConfidenceV18{display:inline-flex;align-items:center;padding:2px 7px;border:1px solid currentColor;border-radius:999px;font-size:10px;font-weight:700;opacity:.78;white-space:nowrap}

/* ===== V3.7.0 R6-R20 — Lead Opportunity Workbench ===== */
.leadHeroR20{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 30px;margin-bottom:18px;border:1px solid var(--line,#dfe6e4);border-radius:22px;background:linear-gradient(135deg,rgba(11,71,78,.09),rgba(255,255,255,.96));box-shadow:0 12px 36px rgba(21,52,55,.07)}
.leadHeroR20 h2{font-size:30px;line-height:1.08;margin:5px 0 9px}.leadHeroR20 p{max-width:760px;margin:0;color:var(--muted,#647675);line-height:1.55}.leadEyebrowR20{font-size:11px;font-weight:800;letter-spacing:.13em;color:#366c70}.leadHeroMarkR20{display:grid;place-items:center;min-width:72px;height:72px;border-radius:20px;background:#103f45;color:#fff;font-size:30px;box-shadow:0 12px 28px rgba(16,63,69,.2)}
.leadKpiR20{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.leadKpiR20 button{display:flex;flex-direction:column;align-items:flex-start;padding:16px 18px;border:1px solid var(--line,#dfe6e4);border-radius:16px;background:var(--surface,#fff);cursor:pointer;text-align:left}.leadKpiR20 button:hover,.leadKpiR20 button.active{border-color:#39797e;box-shadow:0 8px 24px rgba(17,67,72,.09)}.leadKpiR20 b{font-size:28px}.leadKpiR20 span{color:var(--muted,#647675);font-size:12px}
.leadToolbarR20{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px}.leadToolbarR20 div{display:flex;flex-direction:column;gap:2px}.leadToolbarR20 small{color:var(--muted,#647675)}
.leadGridR20{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:28px}.leadCardR20{position:relative;padding:19px;border:1px solid var(--line,#dfe6e4);border-radius:18px;background:var(--surface,#fff);box-shadow:0 7px 24px rgba(20,48,51,.055);overflow:hidden}.leadCardR20:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#879795}.leadCardR20.high:before{background:#176f59}.leadCardR20.medium:before{background:#a26a13}.leadCardR20 header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.leadCardR20 h3{font-size:19px;margin:7px 0 1px}.leadCardR20 header small{color:var(--muted,#647675);text-transform:capitalize}.leadBandR20,.leadInboxBadgeR20{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;letter-spacing:.04em;background:#edf1f0;color:#5d6b69}.leadBandR20.high,.leadInboxBadgeR20.high{background:#e3f3ed;color:#155e4b}.leadBandR20.medium,.leadInboxBadgeR20.medium{background:#fff0d4;color:#8a5710}.leadScoreR20{display:grid;place-items:center;min-width:48px;height:48px;border-radius:14px;background:#f1f5f4;font-size:18px;font-weight:800;color:#153f43}.leadLatestR20,.leadNextR20,.leadDraftPreviewR20{margin-top:15px;padding:12px 13px;border-radius:12px;background:#f7f9f8}.leadNextR20{background:#edf5f3}.leadDraftPreviewR20{background:#f6f3ec}.leadLatestR20 span,.leadNextR20 span,.leadDraftPreviewR20 span{font-size:9px;font-weight:800;letter-spacing:.11em;color:#657674}.leadLatestR20 p,.leadNextR20 p,.leadDraftPreviewR20 p{margin:5px 0 0;line-height:1.42}.leadReasonsR20{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.leadReasonsR20 span{padding:5px 8px;border-radius:999px;background:#f2f5f4;color:#526360;font-size:10px}.leadCardR20 footer{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.leadEmptyR20{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:250px;border:1px dashed var(--line,#dfe6e4);border-radius:18px;color:var(--muted,#647675)}.leadEmptyR20 b{color:var(--text,#203536);margin-bottom:6px}.leadInboxLineR20{margin:3px 0 6px}
@media(max-width:900px){.leadGridR20{grid-template-columns:1fr}.leadKpiR20{grid-template-columns:repeat(2,1fr)}.leadHeroR20{padding:21px}.leadHeroR20 h2{font-size:24px}.leadHeroMarkR20{display:none}}
@media(max-width:520px){.leadKpiR20{grid-template-columns:1fr 1fr}.leadCardR20 footer{flex-direction:column}.leadCardR20 footer button{width:100%}.leadToolbarR20{align-items:flex-end}.leadHeroR20{border-radius:16px}}

/* R21 WhatsApp controlled-rollout operations */
#whatsappOpsR21 .formGrid{margin-top:16px}
#whatsappOpsR21 .formGrid small{grid-column:1/-1;color:var(--muted,#65748b)}
#whatsappOpsR21 .channelCard h3{display:flex;align-items:center;gap:8px}
#whatsappOpsR21 .rowActions{display:flex;gap:10px;flex-wrap:wrap}
