@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root{--bg:#f5f7fb;--card:#fff;--text:#171a22;--muted:#7a8191;--line:#e8ebf1;--primary:#6d5dfc;--primary2:#8a7dff;--dark:#11131a;--green:#18a76b;--red:#d64d5f;--shadow:0 12px 40px rgba(28,33,48,.07);--radius:20px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}.admin-body{min-height:100vh}.app-shell{display:flex;min-height:100vh;direction:rtl}.sidebar{width:278px;background:linear-gradient(180deg,#12141c 0%,#171923 100%);color:#fff;padding:24px 18px;position:fixed;right:0;top:0;bottom:0;display:flex;flex-direction:column;z-index:50;box-shadow:-16px 0 50px rgba(15,17,25,.1)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#7b6cff,#a798ff);display:grid;place-items:center;color:#fff;font-weight:800;letter-spacing:-1px;box-shadow:0 8px 22px rgba(108,93,252,.35)}.brand strong{display:block;font-size:18px;line-height:1.1}.brand span{display:block;color:#9096a8;font-size:11px;margin-top:4px;letter-spacing:.4px}.brand.large .brand-mark{width:50px;height:50px;border-radius:16px}.brand.large strong{font-size:21px}.nav-list{margin-top:34px;display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:12px;color:#afb4c1;font-weight:600;transition:.18s}.nav-link span{width:24px;height:24px;display:grid;place-items:center;font-size:15px}.nav-link:hover{background:rgba(255,255,255,.055);color:#fff}.nav-link.active{background:linear-gradient(90deg,rgba(109,93,252,.24),rgba(109,93,252,.08));color:#fff;box-shadow:inset -3px 0 0 #8376ff}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#666d7f;margin:20px 13px 5px}.sidebar-footer{margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.07)}.user-mini{display:flex;gap:10px;align-items:center;margin-bottom:12px}.avatar{width:37px;height:37px;border-radius:11px;background:#2a2d39;display:grid;place-items:center;font-weight:700}.user-mini b{display:block;font-size:12px}.user-mini small{display:block;color:#777f90;font-size:10px;max-width:170px;overflow:hidden;text-overflow:ellipsis}.main-area{margin-right:278px;width:calc(100% - 278px);min-width:0}.topbar{height:92px;padding:18px 34px;display:flex;align-items:center;gap:18px;background:rgba(245,247,251,.88);backdrop-filter:blur(14px);position:sticky;top:0;z-index:30;border-bottom:1px solid rgba(228,232,240,.8)}.topbar>div:nth-child(2){flex:1}.topbar h1{margin:0;font-size:24px;line-height:1.2}.topbar p{margin:5px 0 0;color:var(--muted);font-size:12px}.menu-btn{display:none;border:0;background:#fff;width:42px;height:42px;border-radius:12px;box-shadow:var(--shadow)}.content{padding:30px 34px 50px;max-width:1600px;margin:auto}.card{background:var(--card);border:1px solid #eceef3;border-radius:var(--radius);padding:22px;box-shadow:0 6px 24px rgba(32,37,52,.035)}.card h3{margin:0;font-size:16px}.card p{margin:6px 0 0}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.card-head p{font-size:12px;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat-card{background:#fff;border:1px solid #ebedf3;border-radius:18px;padding:20px;display:flex;align-items:center;gap:15px;box-shadow:0 5px 20px rgba(30,35,50,.035)}.stat-icon{width:48px;height:48px;border-radius:14px;background:#f0eeff;color:var(--primary);display:grid;place-items:center;font-size:20px}.stat-card small{display:block;color:var(--muted);font-size:11px}.stat-card strong{display:block;font-size:26px;margin-top:4px;letter-spacing:-.5px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid-main-side{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.stack{display:flex;flex-direction:column;gap:18px}.mt-24{margin-top:24px}.mt-10{margin-top:10px}.grow{flex:1}.connection-list{display:flex;flex-direction:column}.connection-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.connection-item:last-child{border-bottom:0}.connection-item b{display:block;font-size:13px}.connection-item small{color:var(--muted);font-size:10px}.channel-dot{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:800}.channel-dot.openai{background:#12141b;color:#fff}.channel-dot.whatsapp{background:#eafaf2;color:#13a566}.channel-dot.facebook{background:#edf3ff;color:#2468d9}.badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}.badge.ok{background:#eaf8f1;color:#118455}.badge.muted{background:#f0f2f5;color:#767e8d}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-grid a{border:1px solid var(--line);border-radius:14px;padding:15px;display:grid;grid-template-columns:30px 1fr;column-gap:7px;transition:.18s}.quick-grid a:hover{border-color:#cfc9ff;background:#faf9ff;transform:translateY(-1px)}.quick-grid a>b{font-size:12px}.quick-grid a>small{grid-column:2;color:var(--muted);font-size:9px;margin-top:2px}.text-link{color:var(--primary);font-weight:700;font-size:12px}.table-wrap{overflow:auto;border-radius:12px}.table-wrap table{width:100%;border-collapse:collapse;min-width:700px}.table-wrap th{font-size:10px;color:#858c9b;text-align:right;padding:12px;border-bottom:1px solid var(--line);font-weight:700}.table-wrap td{padding:14px 12px;border-bottom:1px solid #f0f2f5;font-size:12px}.table-wrap tr:last-child td{border-bottom:0}.clickable{cursor:pointer}.clickable:hover td{background:#fafbfe}.block{display:block;color:var(--muted);font-size:9px;margin-top:3px}.channel-tag{padding:5px 8px;border-radius:8px;font-size:9px;font-weight:700;text-transform:uppercase}.channel-tag.website{background:#f0edff;color:#6d5dfc}.channel-tag.whatsapp{background:#e9faf2;color:#12935d}.channel-tag.facebook{background:#edf3ff;color:#2468d9}.empty{text-align:center!important;color:var(--muted);padding:30px!important}.filters{display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.filters select{min-width:160px}.pagination{padding-top:18px}.form-stack{display:flex;flex-direction:column;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:12px;color:#373c49}label small{font-size:9px;color:var(--muted);font-weight:400}.check-row{flex-direction:row;align-items:center}.check-row input{width:auto}.form-grid input,.form-grid textarea,.form-stack input,textarea,select{width:100%;border:1px solid #dfe3eb;border-radius:12px;padding:12px 13px;background:#fff;color:var(--text);outline:none;transition:.18s}.form-grid input:focus,.form-grid textarea:focus,.form-stack input:focus,textarea:focus,select:focus{border-color:#9f95ff;box-shadow:0 0 0 4px rgba(109,93,252,.08)}textarea{resize:vertical;line-height:1.8}.btn{border:1px solid transparent;border-radius:11px;padding:10px 14px;font-weight:700;font-size:11px;display:inline-flex;justify-content:center;align-items:center;gap:7px;transition:.16s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,var(--primary),#7c6dfb);color:#fff;box-shadow:0 8px 18px rgba(109,93,252,.18)}.btn-secondary{background:#fff;color:#353a47;border-color:#dfe3ea}.btn-ghost{background:transparent;color:#8a91a0;border-color:rgba(255,255,255,.08)}.btn-danger-soft{background:#fff0f2;color:#c34054;border-color:#ffd8de}.btn-full{width:100%}.btn-lg{padding:13px 18px;font-size:12px}.btn-small{padding:7px 10px}.switch{display:block!important}.switch input{display:none}.switch span{display:block;width:46px;height:26px;border-radius:20px;background:#d7dbe3;position:relative;transition:.2s}.switch span:after{content:'';position:absolute;width:20px;height:20px;top:3px;right:3px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.16);transition:.2s}.switch input:checked+span{background:var(--primary)}.switch input:checked+span:after{right:23px}.alert{padding:13px 15px;border-radius:12px;margin-bottom:18px;font-size:12px}.alert.success{background:#eaf8f1;color:#117f53;border:1px solid #cfefdf}.alert.danger{background:#fff0f2;color:#af3346;border:1px solid #ffd7dd}.info-card{background:linear-gradient(145deg,#171923,#202331);color:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow)}.info-card b{font-size:13px}.info-card p{font-size:11px;color:#b9bfcd;line-height:1.8}.info-card code{color:#c8c1ff}.muted-text{color:var(--muted);font-size:11px;line-height:1.7}.sticky-card{position:sticky;top:112px}.copy-field{display:flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:13px 0}.copy-field code{padding:11px 12px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:left;font-size:10px;background:#f9fafc}.copy-field button{border:0;border-right:1px solid var(--line);background:#fff;padding:0 13px;font-size:10px;font-weight:700;color:var(--primary)}.mini-steps{margin:16px 0}.mini-steps>div{display:flex;gap:10px;align-items:flex-start;margin:12px 0}.mini-steps span{min-width:24px;height:24px;border-radius:8px;background:#f0edff;color:var(--primary);display:grid;place-items:center;font-size:9px;font-weight:800}.mini-steps p{margin:2px 0 0;font-size:10px;color:#697181;line-height:1.6}.conversation-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}.chat-card-admin{padding:0;overflow:hidden}.chat-admin-head{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.messages{height:calc(100vh - 330px);min-height:430px;overflow:auto;padding:22px;background:linear-gradient(#fafbfe,#f7f8fc)}.msg-row{display:flex;margin:9px 0}.msg-row.in{justify-content:flex-start}.msg-row.out{justify-content:flex-end}.msg-bubble{max-width:72%;padding:11px 13px;border-radius:15px;line-height:1.7;font-size:12px;box-shadow:0 3px 12px rgba(30,35,50,.04)}.msg-row.in .msg-bubble{background:#fff;border:1px solid #e8ebf0;border-bottom-right-radius:5px}.msg-row.out .msg-bubble{background:linear-gradient(135deg,#6d5dfc,#796bf4);color:#fff;border-bottom-left-radius:5px}.msg-meta{font-size:8px;font-weight:700;opacity:.7;margin-bottom:3px}.msg-bubble small{display:block;font-size:8px;opacity:.55;margin-top:3px}.reply-box{display:flex;gap:10px;padding:14px;border-top:1px solid var(--line);background:#fff}.reply-box textarea{min-height:46px;max-height:120px}.details{margin:12px 0 0}.details>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}.details>div:last-child{border-bottom:0}.details dt{color:var(--muted);font-size:10px}.details dd{margin:0;font-size:10px;font-weight:700;max-width:150px;overflow-wrap:anywhere}.login-body{min-height:100vh;background:#11131a}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;direction:ltr}.login-visual{position:relative;overflow:hidden;background:radial-gradient(circle at 30% 30%,#2b2758 0,#171924 42%,#11131a 72%);display:flex;align-items:center;justify-content:center;padding:70px;direction:rtl;color:#fff}.login-copy{max-width:540px;position:relative;z-index:2}.login-copy h1{font-size:54px;line-height:1.25;margin:48px 0 18px;letter-spacing:-1.4px}.login-copy p{font-size:15px;color:#aeb4c2;line-height:2;max-width:470px}.feature-row{display:flex;gap:10px;margin-top:28px;flex-wrap:wrap}.feature-row span{padding:8px 12px;border:1px solid rgba(255,255,255,.1);border-radius:999px;color:#c5cad5;font-size:10px;background:rgba(255,255,255,.035)}.orb{position:absolute;border-radius:50%;filter:blur(2px);opacity:.4}.orb-a{width:380px;height:380px;background:#6656ef;left:-160px;top:-120px}.orb-b{width:260px;height:260px;background:#9a7cff;right:-120px;bottom:-100px;opacity:.18}.login-panel{background:#f7f8fb;display:grid;place-items:center;padding:40px;direction:rtl}.login-card{width:min(430px,100%);background:#fff;border:1px solid #e9ebf0;border-radius:24px;padding:36px;box-shadow:0 20px 70px rgba(30,35,50,.08)}.login-card h2{font-size:25px;margin:0}.login-card>p{color:var(--muted);font-size:12px;margin:6px 0 24px}.mobile-brand{display:none;margin-bottom:20px}.public-chat-body{min-height:100vh;background:#10121a;color:#fff}.public-shell{min-height:100vh;display:grid;grid-template-columns:1fr 540px;gap:70px;align-items:center;max-width:1280px;margin:auto;padding:60px}.chat-showcase h1{font-size:64px;line-height:1.2;margin:55px 0 18px;letter-spacing:-1.8px}.chat-showcase>p{color:#aeb4c1;line-height:2;font-size:15px;max-width:530px}.trust-line{display:flex;gap:18px;color:#8f96a6;font-size:10px;margin-top:34px}.trust-line span:first-child{color:#63d89b}.public-chat-card{height:700px;max-height:86vh;background:#fff;color:#1c2028;border-radius:28px;overflow:hidden;box-shadow:0 30px 100px rgba(0,0,0,.28);display:flex;flex-direction:column}.public-chat-head{padding:18px 20px;border-bottom:1px solid #edf0f4;display:flex;align-items:center;gap:11px}.bot-avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#6d5dfc,#8c7eff);color:#fff;display:grid;place-items:center;font-weight:800}.public-chat-head b{display:block;font-size:12px}.public-chat-head small{display:flex;align-items:center;gap:5px;color:#7d8493;font-size:9px}.public-chat-head small i{width:6px;height:6px;border-radius:50%;background:#19b573}.public-messages{flex:1;overflow:auto;background:#f8f9fc;padding:20px;display:flex;flex-direction:column;gap:10px}.public-msg{max-width:78%;padding:11px 13px;border-radius:15px;font-size:12px;line-height:1.75}.public-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e8ebf0;border-bottom-right-radius:5px}.public-msg.user{align-self:flex-end;background:linear-gradient(135deg,#6d5dfc,#7869f3);color:#fff;border-bottom-left-radius:5px}.public-msg small{display:block;font-size:8px;opacity:.5;margin-top:3px}.public-input{display:flex;gap:9px;padding:14px;border-top:1px solid #e8ebf0}.public-input textarea{border:1px solid #e0e4eb;border-radius:13px;padding:11px 13px;min-height:44px;max-height:100px;resize:none}.public-input button{width:45px;min-width:45px;border:0;border-radius:13px;background:var(--primary);color:#fff;font-size:17px;transform:rotate(180deg)}.powered{text-align:center;font-size:8px;color:#a4aab5;padding:0 0 10px}.typing{align-self:flex-start;background:#fff;border:1px solid #e7eaf0;border-radius:14px;padding:12px;display:flex;gap:4px}.typing i{width:5px;height:5px;border-radius:50%;background:#9da3ae;animation:bounce 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,70%,100%{transform:translateY(0)}35%{transform:translateY(-4px)}}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.pager{display:flex;justify-content:center;align-items:center;gap:10px;padding-top:18px}.pager a,.pager span{padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:10px}.pager .disabled{opacity:.45}.pager b{font-size:10px;color:var(--muted)}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.grid-main-side,.conversation-layout{grid-template-columns:1fr}.sticky-card{position:static}.public-shell{grid-template-columns:1fr 470px;gap:35px;padding:35px}.chat-showcase h1{font-size:46px}}
@media(max-width:900px){.sidebar{transform:translateX(110%);transition:.22s}.sidebar.open{transform:translateX(0)}.main-area{margin-right:0;width:100%}.menu-btn{display:block}.topbar{padding:15px 18px}.content{padding:22px 18px 40px}.login-wrap{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh}.mobile-brand{display:block}.public-shell{display:block;padding:18px}.chat-showcase{display:none}.public-chat-card{height:calc(100vh - 36px);max-height:none;border-radius:22px}}
@media(max-width:650px){.stats-grid,.grid-2{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.topbar .btn-secondary{display:none}.topbar h1{font-size:19px}.topbar p{font-size:10px}.content{padding:16px}.card{padding:17px;border-radius:16px}.quick-grid{grid-template-columns:1fr}.login-panel{padding:18px}.login-card{padding:24px;border-radius:20px}.messages{height:56vh;min-height:350px}.msg-bubble{max-width:88%}.public-shell{padding:0}.public-chat-card{height:100vh;border-radius:0}.public-chat-head{padding-top:calc(16px + env(safe-area-inset-top))}.public-input{padding-bottom:calc(14px + env(safe-area-inset-bottom))}}
/* Meta one-click onboarding */
.connect-hero{border-radius:26px;padding:30px 34px;min-height:190px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.6);box-shadow:0 12px 45px rgba(31,38,60,.06)}
.whatsapp-hero{background:radial-gradient(circle at 10% 10%,rgba(54,211,153,.17),transparent 38%),linear-gradient(135deg,#f2fff8,#f7fbff 62%,#fff)}
.facebook-hero{background:radial-gradient(circle at 10% 10%,rgba(53,119,246,.16),transparent 38%),linear-gradient(135deg,#f1f6ff,#f8fbff 62%,#fff)}
.connect-hero-copy{max-width:760px;position:relative;z-index:2}.connect-hero h2{font-size:29px;margin:8px 0 8px;letter-spacing:-.6px}.connect-hero p{color:#687082;line-height:1.9;max-width:720px}.eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:#12875a}.live-dot{width:7px;height:7px;background:#20b873;border-radius:50%;box-shadow:0 0 0 5px rgba(32,184,115,.1)}.live-dot.blue{background:#3478e5;box-shadow:0 0 0 5px rgba(52,120,229,.1)}.feature-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.feature-pills span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid rgba(215,222,233,.75);font-size:9px;font-weight:700;color:#596173}.channel-orb{width:112px;height:112px;border-radius:34px;display:grid;place-items:center;font-size:52px;font-weight:900;transform:rotate(-7deg);box-shadow:0 24px 45px rgba(40,50,70,.13);position:relative;z-index:2}.wa-orb{background:linear-gradient(145deg,#43e398,#15a96c);color:#fff}.fb-orb{background:linear-gradient(145deg,#5a91ff,#2164d8);color:#fff;font-family:Arial}.onboarding-card{padding:26px}.section-kicker{display:inline-block;padding:5px 8px;border-radius:7px;background:#e9fff3;color:#0b985d;font-size:8px;font-weight:900;letter-spacing:.6px;margin-bottom:8px}.section-kicker.fb{background:#eef4ff;color:#2267d7}.onboarding-visual{min-height:235px;background:linear-gradient(145deg,#fbfcff,#f5f8fc);border:1px solid #edf0f5;border-radius:20px;margin:18px 0;display:flex;align-items:center;justify-content:space-around;padding:30px}.check-list{display:flex;flex-direction:column;gap:15px;color:#4a5363;font-size:13px}.check-list div::first-letter{color:#14a568}.device-illustration{width:190px;height:160px;border:2px solid #dcebe4;border-radius:25px;background:#fff;position:relative;padding:24px;box-shadow:0 12px 30px rgba(32,45,65,.05)}.device-illustration.fb{border-color:#dfe8fa}.device-logo{width:48px;height:48px;border-radius:15px;background:#e7faf0;color:#15a96c;display:grid;place-items:center;font-size:25px;font-weight:800}.device-illustration.fb .device-logo{background:#eaf1ff;color:#2468d9;font-family:Arial}.device-line{height:8px;border-radius:8px;background:#e9edf0;margin-top:16px}.device-line.short{width:65%}.device-check{position:absolute;width:50px;height:50px;border-radius:50%;background:#43d77f;color:#fff;display:grid;place-items:center;font-size:22px;left:22px;bottom:16px;box-shadow:0 8px 20px rgba(38,196,110,.25)}.btn-xl{padding:15px 20px;font-size:13px;border-radius:13px}.btn-wa{background:linear-gradient(135deg,#1dbf73,#13a661);color:#fff;box-shadow:0 10px 25px rgba(23,174,103,.22)}.btn-facebook{background:linear-gradient(135deg,#3478e5,#1d60cf);color:#fff;box-shadow:0 10px 25px rgba(36,104,217,.22)}button:disabled{opacity:.48;cursor:not-allowed;transform:none!important}.setup-hint{text-align:center;color:#8b93a1;font-size:10px!important}.inline-status{margin-top:12px;border-radius:11px;padding:11px 13px;font-size:10px;line-height:1.6}.inline-status.loading,.inline-status.info{background:#f1f3ff;color:#5e55c6;border:1px solid #dedbff}.inline-status.success{background:#eaf8f1;color:#117f53;border:1px solid #cfefdf}.inline-status.error{background:#fff1f3;color:#ac3548;border:1px solid #ffd8de}.connected-account{border:1px solid #e8ecf1;background:#fafcfe;border-radius:18px;padding:17px;display:flex;align-items:center;gap:14px}.connected-icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;color:#fff;font-size:20px;font-weight:900}.connected-icon.wa{background:#1fbf73}.connected-icon.fb{background:#3175df;font-family:Arial}.connected-main{flex:1}.connected-main strong{display:block;font-size:14px}.connected-main span{font-size:10px;color:#7b8391}.connected-meta{text-align:left;direction:ltr}.connected-meta small{display:block;color:#9ba1ac;font-size:8px}.connected-meta code{font-size:9px;color:#545c69}.action-row{display:flex;gap:9px;margin-top:14px;flex-wrap:wrap}.config-details{padding:0;overflow:hidden}.config-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:20px 22px}.config-details>summary::-webkit-details-marker{display:none}.config-details>summary b{display:block;font-size:13px}.config-details>summary div span{display:block;color:#858c9b;font-size:9px;margin-top:4px}.config-details[open]>summary{border-bottom:1px solid var(--line)}.details-form{padding:22px}.modal-backdrop{position:fixed;inset:0;background:rgba(13,16,25,.48);backdrop-filter:blur(6px);z-index:200;display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.modal-card{width:min(560px,100%);max-height:80vh;overflow:auto;background:#fff;border-radius:24px;padding:22px;box-shadow:0 30px 100px rgba(0,0,0,.2)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:12px}.modal-head h3{margin:0}.modal-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.modal-close{border:0;background:#f1f3f6;width:34px;height:34px;border-radius:10px;font-size:19px}.page-picker-list{display:flex;flex-direction:column;gap:8px}.page-picker-item{border:1px solid #e6e9ef;background:#fff;border-radius:14px;padding:13px;text-align:right;display:flex;align-items:center;gap:12px;transition:.15s}.page-picker-item:hover{border-color:#bcd0fa;background:#f8fbff}.page-avatar{width:40px;height:40px;border-radius:12px;background:#eaf1ff;color:#2468d9;display:grid;place-items:center;font:800 22px Arial}.page-picker-item>span:nth-child(2){flex:1}.page-picker-item b{display:block;font-size:12px}.page-picker-item small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.page-picker-item em{font-style:normal;color:#2468d9;font-size:10px;font-weight:700}
@media(max-width:800px){.connect-hero{padding:23px;min-height:0}.connect-hero h2{font-size:22px}.channel-orb{width:76px;height:76px;border-radius:24px;font-size:34px}.onboarding-visual{padding:20px;min-height:0}.device-illustration{display:none}.connected-account{align-items:flex-start;flex-wrap:wrap}.connected-meta{width:100%;text-align:right}.feature-pills{gap:5px}}
/* v2 multi-account / profiles / widgets / handoff */
.page-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.page-actions>div{color:var(--muted)}.page-actions b{font-size:22px;color:var(--text);margin-left:4px}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.profile-card{display:flex;flex-direction:column;min-height:245px}.prompt-preview{color:#666e7d;font-size:11px;line-height:1.9;white-space:pre-line;flex:1}.usage-pills{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.usage-pills span{padding:6px 9px;border-radius:999px;background:#f3f4f8;color:#626a78;font-size:9px;font-weight:700}.instruction-editor{min-height:520px;font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:13px;line-height:2;direction:rtl}.embed-code{direction:ltr;text-align:left;white-space:pre-wrap;word-break:break-all;background:#11131a;color:#d8dbef;border-radius:13px;padding:14px;font:11px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;margin-top:14px}.account-row{display:grid;grid-template-columns:50px minmax(150px,1fr) minmax(280px,1.4fr) auto;align-items:center;gap:14px;padding:16px 0;border-top:1px solid var(--line)}.account-main strong{display:block;font-size:13px}.account-main span{display:block;color:var(--muted);font-size:10px;margin-top:3px;direction:ltr;text-align:right}.account-controls{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.account-controls select{min-width:170px;padding:9px 10px}.account-actions{display:flex;gap:6px}.empty-box{padding:26px;text-align:center;background:#fafbfc;border:1px dashed #dfe3ea;border-radius:14px;color:var(--muted)}.check-filter{flex-direction:row;align-items:center;gap:6px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:#fff}.check-filter input{width:auto}.urgent-pill{display:inline-flex;margin-right:7px;padding:4px 7px;border-radius:999px;background:#ffedf0;color:#c52c45;font-size:8px;font-weight:800;animation:pulseUrgent 1.2s infinite}.handoff-row td{background:#fff8f8!important}.btn-alert{background:linear-gradient(135deg,#e33952,#c9253e);color:#fff;border-color:transparent;box-shadow:0 8px 20px rgba(211,43,68,.23)}.handoff-alert{position:sticky;top:92px;z-index:29;margin:0 34px;background:linear-gradient(90deg,#b91732,#e03d54);color:#fff;padding:12px 16px;border-radius:0 0 16px 16px;display:flex;align-items:center;gap:12px;box-shadow:0 12px 35px rgba(188,25,51,.22)}.handoff-alert[hidden]{display:none}.handoff-alert>div:nth-child(2){flex:1}.handoff-alert b{display:block}.handoff-alert span{font-size:10px;opacity:.86}.handoff-siren{width:38px;height:38px;border-radius:50%;background:#fff;color:#d32f49;display:grid;place-items:center;font-weight:900;font-size:20px;box-shadow:0 0 0 0 rgba(255,255,255,.5);animation:sirenPulse 1s infinite}.agent-request-card{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#fff0f2,#fff8f9);border:1px solid #ffcbd3;border-radius:18px;padding:16px 18px;margin-bottom:18px}.agent-request-card>div:nth-child(2){flex:1}.agent-request-card b{color:#b82038;font-size:14px}.agent-request-card p{margin:3px 0 0;color:#8b5862;font-size:10px}.sound-toggle.active{border-color:#b8b0ff;color:#5e50dc}.admin-chat-image{display:block;max-width:320px;max-height:320px;border-radius:12px;margin-bottom:8px;object-fit:cover}.chat-image{display:block;max-width:240px;max-height:250px;border-radius:12px;margin-bottom:7px;object-fit:cover}.image-upload{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:#f2f3f7;color:#555f70;cursor:pointer;font-size:17px;flex:none}.image-preview{display:flex;position:relative;padding:8px 14px 0}.image-preview[hidden]{display:none}.image-preview img{width:72px;height:72px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}.image-preview button{position:absolute;top:3px;right:67px;width:22px;height:22px;border:0;border-radius:50%;background:#222;color:#fff}.embedded-chat{background:transparent}.embedded-shell{display:block!important;min-height:100vh!important;padding:0!important}.embed-card{width:100%!important;max-width:none!important;height:100vh!important;min-height:520px!important;border-radius:0!important;box-shadow:none!important;border:0!important}.embed-card .public-chat-head{background:var(--widget-accent,var(--primary));color:#fff}.embed-card .bot-avatar{background:rgba(255,255,255,.2);color:#fff}.embed-card .public-input button{background:var(--widget-accent,var(--primary))}.public-input{align-items:center}.public-input textarea{flex:1}.details{margin-top:12px}.details div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.details div:last-child{border-bottom:0}.details dt{color:var(--muted);font-size:10px}.details dd{margin:0;font-weight:700;font-size:10px;text-align:left}.pager{display:flex;justify-content:center;align-items:center;gap:14px;padding-top:18px}.pager a,.pager span{padding:7px 10px;border-radius:9px;background:#f4f5f8;font-size:10px}.pager .disabled{opacity:.45}.pager b{font-size:10px}
@keyframes sirenPulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.5)}70%{box-shadow:0 0 0 13px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}@keyframes pulseUrgent{50%{opacity:.55}}
@media(max-width:1100px){.profile-grid{grid-template-columns:1fr 1fr}.account-row{grid-template-columns:46px 1fr}.account-controls,.account-actions{grid-column:2}.handoff-alert{margin:0 18px}}
@media(max-width:700px){.profile-grid{grid-template-columns:1fr}.account-controls{grid-template-columns:1fr auto}.account-controls .btn{grid-column:1/-1}.handoff-alert{top:82px;margin:0 10px;flex-wrap:wrap}.handoff-alert .btn{width:100%}.agent-request-card{align-items:flex-start;flex-wrap:wrap}.agent-request-card form{width:100%}.agent-request-card form button{width:100%}.sound-toggle{display:none}.admin-chat-image{max-width:230px}}
/* v3 agent queue / split integrations */
.sub-link{padding-top:8px;padding-bottom:8px;padding-right:28px;font-size:11px;color:#8d93a2}.sub-link span{font-size:11px}.availability-form{margin:0}.availability-pill{border:1px solid #dfe3ea;background:#fff;border-radius:999px;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:10px;font-weight:800;color:#545b68;white-space:nowrap}.availability-pill i{width:8px;height:8px;border-radius:50%;display:block}.availability-pill.available{color:#117f53;border-color:#cdecdc;background:#f4fcf8}.availability-pill.available i{background:#18a76b;box-shadow:0 0 0 4px rgba(24,167,107,.11)}.availability-pill.unavailable{color:#9c4a55;background:#fff7f8;border-color:#f1d7db}.availability-pill.unavailable i{background:#d64d5f}.agent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.agent-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fbfcfe}.agent-card-head{display:flex;align-items:center;gap:10px;margin-bottom:13px}.agent-card-head>div:nth-child(2){flex:1}.agent-card-head b{display:block;font-size:12px}.agent-card-head small{display:block;font-size:9px;color:var(--muted)}.agent-avatar{background:#eeecff;color:#6557dd}.availability-dot{font-size:9px;font-weight:800;padding:5px 8px;border-radius:999px}.availability-dot.available{background:#eaf8f1;color:#117f53}.availability-dot.unavailable{background:#fff0f2;color:#b83b4d}.agent-load{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:13px}.agent-load>div{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px}.agent-load strong{display:block;font-size:18px}.agent-load span{display:block;font-size:8px;color:var(--muted)}.compact-grid{gap:10px}.compact-grid label{font-size:10px}.compact-grid input,.compact-grid select{padding:9px 10px}.queue-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#fff3df;color:#a96c07;font-size:9px;font-weight:800}.accepted-strip{margin-bottom:18px;border:1px solid #cfeedd;background:#effbf5;color:#147e54;border-radius:14px;padding:12px 15px;font-size:11px}.setup-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.guide-steps{display:flex;flex-direction:column;gap:14px;margin-top:18px}.guide-steps>div{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}.guide-steps>div>span{width:30px;height:30px;border-radius:10px;background:#f0edff;color:var(--primary);display:grid;place-items:center;font-size:10px;font-weight:900}.guide-steps section b{font-size:12px}.guide-steps section p{margin:3px 0 0;font-size:10px;color:var(--muted);line-height:1.8}.setup-checklist{margin:12px 0;padding:0 18px 0 0}.setup-checklist li{font-size:10px;color:#596171;line-height:2}.hero-actions{display:flex;gap:8px;margin-top:14px}.connect-hero .hero-actions .btn{background:rgba(255,255,255,.92);color:#2f3540}.handoff-alert{animation:handoffGlow 1.2s infinite alternate}.handoff-alert .handoff-siren{flex:none}@keyframes handoffGlow{from{box-shadow:0 12px 35px rgba(188,25,51,.18)}to{box-shadow:0 12px 42px rgba(188,25,51,.36)}}
@media(max-width:1200px){.agent-grid{grid-template-columns:1fr}.setup-grid{grid-template-columns:1fr 300px}.availability-pill{padding:8px 10px}}
@media(max-width:900px){.setup-grid{grid-template-columns:1fr}.availability-form{display:none}}
/* v4 SaaS / permissions / visitors / reliable delivery */
.tenant-mini{padding:10px 12px;margin-bottom:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.03)}.tenant-mini small{display:block;color:#737b8e;font-size:9px}.tenant-mini b{display:block;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:820px}.data-table th{text-align:right;color:var(--muted);font-size:9px;font-weight:700;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:13px 12px;border-bottom:1px solid var(--line);font-size:10px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.table-user{display:flex;align-items:center;gap:9px}.table-user b{display:block;font-size:11px}.table-user small,.block-muted{display:block;color:var(--muted);font-size:8px;margin-top:2px}.row-actions{display:flex;gap:6px;align-items:center}.btn-sm,.btn-small{padding:7px 9px;font-size:9px}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.permission-item{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);border-radius:12px;padding:11px;background:#fbfcfe;cursor:pointer}.permission-item input{margin-top:3px}.permission-item b{display:block;font-size:10px}.permission-item small{display:block;color:var(--muted);font-size:8px;margin-top:2px;direction:ltr;text-align:right}.toggle-grid{display:flex;gap:18px;flex-wrap:wrap}.live-dot{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:800}.live-dot:before{content:'';width:7px;height:7px;border-radius:50%}.live-dot.online{background:#eaf8f1;color:#117f53}.live-dot.online:before{background:#18a76b;box-shadow:0 0 0 4px rgba(24,167,107,.11)}.live-dot.offline{background:#f2f3f6;color:#7d8492}.live-dot.offline:before{background:#aab0bc}.visitor-url{font-weight:700;font-size:10px;display:block;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}.delivery-state{font-size:7px;font-weight:800}.delivery-state.sent{color:#168456}.delivery-state.pending{color:#a56a00}.delivery-state.failed{color:#c62940}.delivery-error{margin-top:7px;padding:7px 9px;background:#fff0f2;border:1px solid #ffd4db;border-radius:9px;color:#a32e40;font-size:8px}.delivery-error form{display:inline;margin-right:6px}.msg-status{display:block!important;margin-top:4px!important;font-size:8px!important}.msg-status.sending{color:#8b92a0}.msg-status.queued{color:#a56a00}.msg-status.failed{color:#d2334d;cursor:pointer;font-weight:800}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.filters input,.filters select{padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}.mt-18{margin-top:18px}.badge.danger{background:#fff0f2;color:#b82e43}.topbar{overflow:visible}.main-area{overflow:visible}
@media(max-width:800px){.permissions-grid{grid-template-columns:1fr}.page-actions{align-items:flex-start;flex-direction:column}.data-table{min-width:760px}}
/* v4.1 SaaS context / logout / tenant OpenAI */
.nav-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:12px;margin-bottom:12px;scrollbar-width:thin;scrollbar-color:#3a3e4d transparent}.sidebar-footer{margin-top:0;flex:none;padding-top:14px;background:linear-gradient(180deg,rgba(18,20,28,.2),rgba(18,20,28,.96))}.tenant-mini.active-company{border-color:rgba(126,111,255,.28);background:rgba(109,93,252,.10)}.tenant-mini.platform-mode{border-color:rgba(255,255,255,.08)}.return-saas-form{margin-bottom:10px}.btn-return-saas{background:rgba(109,93,252,.16);color:#d8d3ff;border-color:rgba(133,119,255,.28)}.btn-return-saas:hover{background:rgba(109,93,252,.26);color:#fff}.btn-logout{background:rgba(255,255,255,.055);color:#c9ced8;border-color:rgba(255,255,255,.10)}.btn-logout:hover{background:rgba(210,50,75,.13);border-color:rgba(255,90,110,.20);color:#ffd8df}.topbar-return-form{margin:0}.company-scope-note{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:13px;background:#f3f1ff;border:1px solid #ddd8ff;color:#5447c9}.company-scope-note b{display:block;font-size:11px}.company-scope-note span{display:block;font-size:9px;margin-top:2px;color:#7369b6;line-height:1.6}
.mb-18{margin-bottom:18px}

.nav-form{margin:0}.nav-form .nav-link{width:100%;border:0;background:transparent;text-align:right}.platform-workspace-card{margin-bottom:20px;background:linear-gradient(135deg,#171923,#242037);color:#fff;border-color:#302b50}.platform-workspace-card p{color:#b8b8cc;max-width:850px}.alert.info{background:#eef5ff;color:#315a8a;border:1px solid #d8e8ff}

/* v4.3 live conversation desktop + collapsible professional shell */
.sidebar-brand-row{display:flex;align-items:center;gap:10px}.sidebar-brand-row .brand{flex:1;min-width:0}.sidebar-collapse-btn{width:34px;height:34px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);color:#aeb4c4;border-radius:10px;display:grid;place-items:center;font-size:15px;transition:.18s}.sidebar-collapse-btn:hover{background:rgba(255,255,255,.10);color:#fff}.sidebar,.main-area,.brand-copy,.nav-link,.nav-label,.sidebar-footer{transition:width .22s ease,margin .22s ease,padding .22s ease,opacity .16s ease}.sidebar-collapsed .sidebar{width:86px;padding-left:12px;padding-right:12px}.sidebar-collapsed .main-area{margin-right:86px;width:calc(100% - 86px)}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-link:not(.active){white-space:nowrap}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label,.sidebar-collapsed .tenant-mini,.sidebar-collapsed .user-mini>div:not(.avatar),.sidebar-collapsed .return-saas-form,.sidebar-collapsed .sidebar-footer form .btn{display:none}.sidebar-collapsed .sidebar-brand-row{justify-content:center;flex-wrap:wrap}.sidebar-collapsed .sidebar-brand-row .brand{flex:none}.sidebar-collapsed .brand-mark{width:42px;height:42px}.sidebar-collapsed .sidebar-collapse-btn{width:42px}.sidebar-collapsed .nav-list{margin-top:20px}.sidebar-collapsed .nav-link{justify-content:center;padding:12px 8px;font-size:0;gap:0}.sidebar-collapsed .nav-link span{font-size:16px;width:28px;height:28px}.sidebar-collapsed .nav-form .nav-link{justify-content:center}.sidebar-collapsed .sidebar-footer{display:flex;justify-content:center}.sidebar-collapsed .user-mini{margin:0}.sidebar-collapsed .avatar{width:42px;height:42px}.sidebar-collapsed .content{max-width:none}.topbar{box-shadow:0 4px 20px rgba(30,35,50,.025)}.topbar h1{letter-spacing:-.3px}.card{box-shadow:0 10px 34px rgba(29,35,52,.045)}

.handoff-alert.queue-only{background:linear-gradient(135deg,#fff8e9,#fff4d9);border-color:#f4dca9;color:#7c5709;animation:none}.handoff-alert.queue-only .handoff-siren{background:#f2b84a;color:#fff}.handoff-alert.queue-only .btn{background:#fff;border-color:#e9cf95;color:#76530b}.handoff-alert.assigned-alert{background:linear-gradient(135deg,#fff0f2,#ffe5e9)}

.content:has(.conversation-hub){padding-bottom:22px;max-width:none}.conversation-hub{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;height:calc(100vh - 146px);min-height:620px;direction:rtl}.conversation-browser{padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:0;border-radius:22px}.conversation-browser-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 13px;border-bottom:1px solid var(--line)}.conversation-browser-head h3{font-size:15px}.conversation-browser-head p{font-size:9px;color:var(--muted);line-height:1.6}.live-indicator{display:inline-flex;align-items:center;gap:6px;font-size:8px;font-weight:800;color:#118455;background:#eaf8f1;border-radius:999px;padding:6px 8px;white-space:nowrap}.live-indicator i{width:7px;height:7px;border-radius:50%;background:#18a76b;box-shadow:0 0 0 4px rgba(24,167,107,.11);animation:livePulse 1.8s infinite}.conversation-search-wrap{margin:13px 14px 8px;border:1px solid #e1e5ed;background:#f8f9fc;border-radius:12px;display:flex;align-items:center;gap:8px;padding:0 10px;color:#969dab}.conversation-search-wrap input{border:0!important;background:transparent!important;box-shadow:none!important;padding:10px 0!important;font-size:10px}.compact-filters{padding:0 14px 10px;margin:0;gap:6px}.compact-filters select{min-width:0;flex:1;padding:8px 9px;font-size:9px}.compact-filters .check-filter{font-size:8px;flex-direction:row;align-items:center;gap:5px}.conversation-list{overflow:auto;min-height:0;flex:1;padding:4px 8px 10px;scrollbar-width:thin}.conversation-list-item{width:100%;border:1px solid transparent;background:transparent;border-radius:14px;padding:10px;display:grid;grid-template-columns:38px 1fr;gap:9px;text-align:right;color:var(--text);transition:.16s;margin-bottom:4px}.conversation-list-item:hover{background:#f8f9fd;border-color:#eef0f5}.conversation-list-item.needs-agent{background:#fffaf5;border-color:#faead0}.conversation-avatar{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#efedff,#e2deff);color:#5e50d8;display:grid;place-items:center;font-weight:800;box-shadow:inset 0 0 0 1px rgba(109,93,252,.08)}.conversation-list-body{min-width:0}.conversation-list-top{display:flex;align-items:center;gap:8px}.conversation-list-top b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.conversation-list-top small{font-size:8px;color:#9aa1ae}.conversation-list-meta{display:flex;align-items:center;gap:5px;margin-top:5px;min-height:20px;flex-wrap:wrap}.conversation-external{display:block;color:#9aa1ae;font-size:7px;margin-top:3px;direction:ltr;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-badge{background:#f0edff;color:#6354de}.compact-pager{padding:10px 12px;border-top:1px solid var(--line);background:#fbfcfe}.compact-pager a,.compact-pager span{padding:5px 7px;font-size:8px}

.conversation-workspace{position:relative;min-width:0;min-height:0;border:1px solid #e8ebf2;border-radius:24px;background:radial-gradient(circle at top right,rgba(109,93,252,.07),transparent 28%),linear-gradient(180deg,#f6f7fb,#eef1f6);box-shadow:0 18px 50px rgba(27,32,47,.06);overflow:hidden;display:flex;flex-direction:column;padding-bottom:68px}.workspace-toolbar{height:56px;flex:none;display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid rgba(218,222,231,.9);background:rgba(255,255,255,.72);backdrop-filter:blur(16px)}.workspace-toolbar>div:first-child{flex:1}.workspace-toolbar b{display:block;font-size:11px}.workspace-toolbar span{display:block;color:var(--muted);font-size:8px;margin-top:2px}.workspace-toolbar-meta{border:1px solid #e1e4ec;background:#fff;border-radius:999px;padding:6px 9px;font-size:8px;color:#747b89;white-space:nowrap}.workspace-toolbar-meta span{display:inline!important;color:#4f45bb!important;font-weight:800!important;font-size:10px!important;margin:0!important}.workspace-panels{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:10px}.workspace-panels.two-panels{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-empty{align-self:stretch;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;color:#808797}.workspace-empty[hidden]{display:none}.workspace-empty-icon{width:64px;height:64px;border-radius:20px;background:#fff;border:1px solid #e4e7ee;display:grid;place-items:center;font-size:26px;color:#6d5dfc;box-shadow:0 12px 30px rgba(36,42,60,.07)}.workspace-empty h2{font-size:16px;margin:16px 0 5px;color:#333846}.workspace-empty p{max-width:460px;font-size:9px;line-height:1.9;margin:0}

.chat-window{min-width:0;min-height:0;background:#fff;border:1px solid #e1e4ec;border-radius:18px;box-shadow:0 14px 36px rgba(27,33,48,.10);overflow:hidden;display:flex;flex-direction:column;animation:windowIn .18s ease}.chat-window-header{height:58px;flex:none;display:flex;align-items:center;gap:10px;padding:8px 11px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfcfe)}.chat-window-identity{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.chat-window-avatar{width:34px;height:34px;border-radius:10px;flex:none}.chat-window-identity>div:last-child{min-width:0}.chat-window-name{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-window-subtitle{display:flex;align-items:center;gap:5px;margin-top:3px;color:#8b92a0;font-size:7px}.chat-window-actions{display:flex;align-items:center;gap:5px;direction:ltr}.window-action{width:27px;height:27px;border-radius:8px;border:1px solid #e5e8ee;background:#fff;color:#747b89;display:grid;place-items:center;font-weight:800;transition:.15s}.window-action:hover{background:#f3f4f8;color:#333844}.window-accept{color:#148357;background:#f2fbf6;border-color:#bfe5d1}.window-accept:hover{background:#e6f8ee;color:#0f6d48;border-color:#9fd8ba}.window-reject{color:#b63348;background:#fff2f4;border-color:#efcbd2}.window-reject:hover{background:#ffe7eb;color:#9f2439;border-color:#e7b8c2}.window-end{color:#6c7280;background:#f7f8fa;border-color:#dfe3ea}.window-close:hover{background:#fff1f3;color:#be3347;border-color:#f2d6db}.chat-window-status{flex:none;border-bottom:1px solid var(--line);background:#fbfcfe}.window-status-line{display:flex;align-items:center;gap:5px;padding:7px 10px}.assigned-chip{font-size:8px;font-weight:700;color:#555d6b;margin-right:auto}.window-handoff{margin:0 8px 8px;border-radius:10px;padding:8px 9px;display:grid;grid-template-columns:1fr auto;column-gap:8px;align-items:center}.window-handoff b{font-size:9px}.window-handoff span{grid-column:1;font-size:7px;margin-top:2px;line-height:1.6}.window-handoff.waiting{background:#fff7e8;color:#7e590c;border:1px solid #f3dfb7}.window-handoff.assigned{background:#fff0f2;color:#a93244;border:1px solid #f2d2d8}.window-handoff.accepted{background:#edf9f3;color:#11784f;border:1px solid #d2ecdf}.window-handoff.ai-restored{background:#f0eeff;color:#5749c3;border:1px solid #ddd8ff}.inline-action{grid-column:2;grid-row:1/3;border:0;border-radius:9px;background:#171923;color:#fff;padding:7px 9px;font-size:8px;font-weight:800;white-space:nowrap}.chat-window-messages{flex:1;min-height:0;overflow:auto;padding:13px;background:linear-gradient(180deg,#f8f9fc,#f4f6fa);scrollbar-width:thin}.chat-loading{height:100%;display:flex;align-items:center;justify-content:center;gap:8px;color:#8c93a1;font-size:9px}.chat-loading i{width:14px;height:14px;border:2px solid #ddd9ff;border-top-color:#6d5dfc;border-radius:50%;animation:spin .7s linear infinite}.chat-empty-state{text-align:center;color:#9ba2ae;font-size:9px;padding:28px}.desktop-msg-row{display:flex;margin:7px 0}.desktop-msg-row.in{justify-content:flex-start}.desktop-msg-row.out{justify-content:flex-end}.desktop-msg-bubble{max-width:82%;border-radius:14px;padding:8px 10px;box-shadow:0 3px 10px rgba(28,33,48,.035)}.desktop-msg-row.in .desktop-msg-bubble{background:#fff;border:1px solid #e4e7ee;border-bottom-right-radius:5px}.desktop-msg-row.out .desktop-msg-bubble{background:#6d5dfc;color:#fff;border-bottom-left-radius:5px}.desktop-msg-row.out.optimistic .desktop-msg-bubble{opacity:.72}.desktop-msg-row.out.optimistic.send-failed .desktop-msg-bubble{background:#b84b5b}.desktop-msg-sender{font-size:6px;font-weight:800;opacity:.65;margin-bottom:3px}.desktop-msg-text{font-size:9px;line-height:1.75;word-break:break-word}.desktop-msg-foot{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:6px;margin-top:4px;opacity:.78}.desktop-delivery{font-weight:700}.desktop-delivery.failed{color:#ffe0e5}.desktop-delivery-error{margin-top:5px;font-size:6px;background:rgba(255,255,255,.14);border-radius:6px;padding:4px 5px}.desktop-image-link{display:block;margin:3px 0 6px}.desktop-image-link img{display:block;max-width:240px;max-height:250px;border-radius:10px;object-fit:cover}.chat-window-composer{flex:none;background:#fff;border-top:1px solid var(--line);padding:8px}.composer-state{min-height:0}.inline-error{display:block;background:#fff0f2;color:#ab3345;border:1px solid #f2d3d9;border-radius:8px;padding:5px 7px;font-size:7px;margin-bottom:6px}.composer-row{display:flex;align-items:flex-end;gap:7px}.composer-row textarea{flex:1;min-height:39px;max-height:120px;resize:none;border-radius:12px;padding:9px 10px;line-height:1.55;font-size:9px;background:#f8f9fc}.composer-send{width:39px;height:39px;border:0;border-radius:12px;background:linear-gradient(135deg,#6d5dfc,#8578ff);color:#fff;display:grid;place-items:center;font-size:14px;box-shadow:0 7px 15px rgba(109,93,252,.24)}.composer-send:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}

.conversation-taskbar{position:absolute;right:10px;left:10px;bottom:9px;height:50px;border:1px solid rgba(216,220,229,.95);border-radius:15px;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);box-shadow:0 12px 32px rgba(25,30,44,.12);display:flex;align-items:center;gap:8px;padding:6px 8px;z-index:12}.taskbar-brand{display:flex;align-items:center;gap:6px;padding:0 6px 0 8px;border-left:1px solid #e6e8ee;white-space:nowrap}.taskbar-brand span{width:28px;height:28px;border-radius:8px;background:#171923;color:#fff;display:grid;place-items:center}.taskbar-brand b{font-size:8px}.taskbar-items{display:flex;align-items:center;gap:6px;overflow-x:auto;flex:1;scrollbar-width:none}.taskbar-items::-webkit-scrollbar{display:none}.taskbar-chat{height:36px;max-width:190px;min-width:125px;border:1px solid #e2e5ec;background:#f7f8fb;border-radius:10px;display:flex;align-items:center;gap:6px;padding:4px 7px;text-align:right;color:#59606d;position:relative}.taskbar-chat.active{background:#fff;border-color:#cfc9ff;box-shadow:inset 0 -2px 0 #6d5dfc}.taskbar-chat.minimized{background:#f2f3f7}.taskbar-chat.has-unread:before{content:'';position:absolute;top:3px;right:3px;width:7px;height:7px;border-radius:50%;background:#d64058;box-shadow:0 0 0 3px #fff}.taskbar-channel{width:24px;height:24px;border-radius:7px;background:#edeafc;color:#6255d8;display:grid;place-items:center;flex:none;font-size:9px;font-weight:800}.taskbar-channel.whatsapp{background:#e8f8f0;color:#14925d}.taskbar-channel.facebook{background:#eaf1ff;color:#2e65c9}.taskbar-chat-name{font-size:8px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.taskbar-state{font-size:9px}.taskbar-close{font-size:11px;color:#a0a6b2;padding:0 2px}.taskbar-close:hover{color:#bd3046}.taskbar-hint{font-size:7px;color:#9aa1ae;padding:0 4px;white-space:nowrap}.desktop-toast-container{position:fixed;left:24px;bottom:78px;z-index:1000;display:flex;flex-direction:column;gap:7px}.desktop-toast{transform:translateY(8px);opacity:0;background:#171923;color:#fff;border-radius:11px;padding:10px 13px;box-shadow:0 12px 30px rgba(20,23,33,.18);font-size:9px;transition:.2s}.desktop-toast.show{transform:none;opacity:1}.desktop-toast.danger{background:#a83446}

@keyframes livePulse{50%{opacity:.45}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes windowIn{from{opacity:0;transform:translateY(6px) scale(.995)}to{opacity:1;transform:none}}
@media(max-width:1250px){.conversation-hub{grid-template-columns:285px minmax(0,1fr)}.workspace-panels.two-panels{gap:7px}.desktop-msg-bubble{max-width:90%}.taskbar-hint{display:none}}
@media(max-width:1000px){.conversation-hub{grid-template-columns:250px minmax(0,1fr)}.workspace-panels.two-panels{grid-template-columns:1fr}.workspace-panels.two-panels .chat-window:first-of-type{display:none}.conversation-workspace{padding-bottom:65px}}
@media(max-width:900px){.sidebar-collapsed .sidebar{width:278px;padding:24px 18px}.sidebar-collapsed .main-area{margin-right:0;width:100%}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label,.sidebar-collapsed .tenant-mini,.sidebar-collapsed .user-mini>div:not(.avatar){display:block}.sidebar-collapse-btn{display:none}.conversation-hub{grid-template-columns:1fr;height:auto;min-height:0}.conversation-browser{max-height:420px}.conversation-workspace{height:70vh;min-height:600px}.taskbar-brand b{display:none}}
@media(max-width:650px){.conversation-workspace{border-radius:16px}.workspace-toolbar span,.taskbar-hint,.taskbar-brand{display:none}.conversation-taskbar{right:6px;left:6px}.taskbar-chat{min-width:110px}.content:has(.conversation-hub){padding:12px 10px 18px}}
@media(max-width:900px){.sidebar-collapsed .nav-link{justify-content:flex-start;padding:12px 13px;font-size:14px;gap:11px}.sidebar-collapsed .nav-link span{font-size:15px;width:24px;height:24px}.sidebar-collapsed .nav-form .nav-link{justify-content:flex-start}.sidebar-collapsed .sidebar-footer{display:block}.sidebar-collapsed .sidebar-footer form .btn{display:inline-flex}.sidebar-collapsed .return-saas-form{display:block}}

/* v4.3.1 — viewport-safe conversation workspace */
.conversation-page{height:100dvh;overflow:hidden}
.conversation-page .app-shell{height:100dvh;min-height:0;overflow:hidden}
.conversation-page .main-area{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.conversation-page .topbar{position:relative;top:auto;flex:0 0 auto;z-index:30}
.conversation-page .handoff-alert{position:relative;top:auto;flex:0 0 auto;margin-left:34px;margin-right:34px}
.conversation-page .content{flex:1 1 auto;min-height:0;overflow:hidden;max-width:none;width:100%;margin:0;padding:14px 18px 14px;display:flex}
.conversation-page .content>.alert{position:absolute;z-index:35;left:28px;right:28px;top:104px;box-shadow:0 14px 35px rgba(28,33,48,.14)}
.conversation-page .conversation-hub{flex:1 1 auto;width:100%;height:auto;min-height:0;grid-template-columns:clamp(250px,22vw,330px) minmax(0,1fr);gap:14px}
.conversation-page .conversation-browser,.conversation-page .conversation-workspace{height:100%;max-height:100%;min-height:0}
.conversation-page .conversation-list{overscroll-behavior:contain}
.conversation-page .conversation-workspace{padding-bottom:62px}
.conversation-page .workspace-toolbar{height:50px;padding:8px 13px}
.conversation-page .workspace-panels{min-height:0;overflow:hidden;grid-auto-rows:minmax(0,1fr);padding:8px;gap:8px}
.conversation-page .workspace-panels.two-panels{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
.conversation-page .chat-window{height:100%;max-height:100%;min-height:0}
.conversation-page .chat-window-messages{overscroll-behavior:contain}
.conversation-page .conversation-taskbar{height:46px;bottom:8px}
.conversation-page .taskbar-chat{height:33px}
.conversation-page .sidebar{height:100dvh;min-height:0}
.conversation-page .nav-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}

@media(max-width:1100px) and (min-width:901px){
  .conversation-page .conversation-hub{grid-template-columns:clamp(225px,24vw,280px) minmax(0,1fr);gap:10px}
  .conversation-page .content{padding:10px 12px}
  .conversation-page .handoff-alert{margin-left:12px;margin-right:12px}
}

@media(max-height:820px) and (min-width:901px){
  .conversation-page .topbar{height:72px;padding-top:10px;padding-bottom:10px}
  .conversation-page .topbar h1{font-size:20px}
  .conversation-page .topbar p{margin-top:2px;font-size:10px}
  .conversation-page .handoff-alert{padding:8px 12px;border-radius:0 0 12px 12px}
  .conversation-page .handoff-siren{width:32px;height:32px;font-size:17px}
  .conversation-page .handoff-alert span{font-size:8px}
  .conversation-page .content{padding:8px 12px}
  .conversation-page .workspace-toolbar{height:44px;padding:6px 11px}
  .conversation-page .chat-window-header{height:50px;padding:6px 9px}
  .conversation-page .window-status-line{padding:5px 8px}
  .conversation-page .window-handoff{margin:0 6px 5px;padding:6px 7px}
  .conversation-page .chat-window-messages{padding:9px}
  .conversation-page .chat-window-composer{padding:6px}
  .conversation-page .composer-row textarea{min-height:34px;padding:7px 9px}
  .conversation-page .composer-send{width:35px;height:35px}
  .conversation-page .conversation-workspace{padding-bottom:54px}
  .conversation-page .conversation-taskbar{height:40px;bottom:6px;padding:4px 6px}
  .conversation-page .taskbar-chat{height:30px}
}

@media(max-width:900px){
  .conversation-page{height:auto;min-height:100dvh;overflow:auto}
  .conversation-page .app-shell,.conversation-page .main-area{height:auto;min-height:100dvh;overflow:visible;display:block}
  .conversation-page .topbar{position:sticky;top:0}
  .conversation-page .handoff-alert{position:sticky;top:82px;margin-left:10px;margin-right:10px}
  .conversation-page .content{display:block;overflow:visible;padding:12px 10px 18px}
  .conversation-page .conversation-hub{display:flex;flex-direction:column;height:auto;min-height:0}
  .conversation-page .conversation-browser{height:min(38dvh,390px);max-height:min(38dvh,390px);flex:none}
  .conversation-page .conversation-workspace{height:calc(62dvh - 20px);min-height:480px;max-height:none;flex:none}
  .conversation-page .workspace-panels.two-panels{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr)}
}

@media(max-width:650px){
  .conversation-page .conversation-browser{height:min(34dvh,330px);max-height:min(34dvh,330px)}
  .conversation-page .conversation-workspace{height:64dvh;min-height:460px}
}


/* v4.4.1 — readable Arabic conversation desktop + deterministic RTL chat alignment */
.conversation-page .conversation-browser-head h3{font-size:18px}
.conversation-page .conversation-browser-head p{font-size:12px}
.conversation-page .live-indicator{font-size:11px}
.conversation-page .conversation-search-wrap input{font-size:13px}
.conversation-page .compact-filters select{font-size:12px}
.conversation-page .compact-filters .check-filter{font-size:11px}
.conversation-page .conversation-list-item{padding:12px}
.conversation-page .conversation-list-top b{font-size:13px}
.conversation-page .conversation-list-top small{font-size:10px}
.conversation-page .conversation-list-meta{gap:6px}
.conversation-page .conversation-external{font-size:9px}
.conversation-page .channel-tag{font-size:10px}
.conversation-page .badge{font-size:10px}
.conversation-page .workspace-toolbar b{font-size:13px}
.conversation-page .workspace-toolbar span{font-size:10px}
.conversation-page .workspace-toolbar-meta{font-size:10px}
.conversation-page .chat-window-name{font-size:13px}
.conversation-page .chat-window-subtitle{font-size:9px}
.conversation-page .assigned-chip{font-size:10px}
.conversation-page .window-handoff b{font-size:11px}
.conversation-page .window-handoff span{font-size:9px}
.conversation-page .inline-action{font-size:10px}

/* Keep chat geometry LTR so inbound is always left and outbound (business/AI/agent) is always right.
   The actual message content stays Arabic/auto-direction. This avoids flex-start/end flipping under RTL. */
.conversation-page .chat-window-messages{direction:ltr;padding:14px 15px}
.conversation-page .desktop-msg-row{direction:ltr;margin:9px 0}
.conversation-page .desktop-msg-row.in{justify-content:flex-start}
.conversation-page .desktop-msg-row.out{justify-content:flex-end}
.conversation-page .desktop-msg-bubble{max-width:84%;padding:10px 12px;border-radius:15px;direction:rtl;text-align:right}
.conversation-page .desktop-msg-sender{font-size:10px;line-height:1.4;margin-bottom:5px;text-align:right}
.conversation-page .desktop-msg-text{font-size:13px;line-height:1.85;word-break:break-word;white-space:normal;text-align:start;unicode-bidi:plaintext}
.conversation-page .desktop-msg-foot{font-size:9px;margin-top:6px;direction:rtl;justify-content:flex-start}
.conversation-page .desktop-delivery-error{font-size:9px;line-height:1.6}
.conversation-page .desktop-image-link img{max-width:min(320px,80%);max-height:300px}
.conversation-page .composer-row textarea{font-size:13px;line-height:1.65;text-align:right;direction:rtl}
.conversation-page .inline-error{font-size:10px}
.conversation-page .taskbar-brand b{font-size:10px}
.conversation-page .taskbar-chat-name{font-size:10px}
.conversation-page .taskbar-hint{font-size:9px}

/* Administrative visibility hint and AI/human scope filter */
.conversation-visibility-note{margin:0 14px 10px;padding:9px 11px;border-radius:11px;background:#f3f1ff;border:1px solid #e1ddff;color:#574bc4;font-size:10px;line-height:1.6}
.conversation-visibility-note b{font-weight:800}
.conversation-type-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800}
.conversation-type-pill.ai{background:#f0edff;color:#6253d9}
.conversation-type-pill.human{background:#eaf8f1;color:#118455}

@media(max-height:820px) and (min-width:901px){
  .conversation-page .desktop-msg-text{font-size:12px;line-height:1.7}
  .conversation-page .desktop-msg-sender{font-size:9px}
  .conversation-page .desktop-msg-foot{font-size:8px}
  .conversation-page .composer-row textarea{font-size:12px}
  .conversation-page .conversation-list-top b{font-size:12px}
}

/* v4.5 — dense live inbox, collapsible conversation browser, smaller navigation */
@media (min-width:901px){
  .sidebar{width:240px;padding:18px 13px}
  .main-area{margin-right:240px;width:calc(100% - 240px)}
  .sidebar .brand-mark{width:38px;height:38px;border-radius:11px}
  .sidebar .brand strong{font-size:16px}
  .sidebar .nav-list{margin-top:24px}
  .sidebar .nav-link{padding:10px 11px;font-size:12px;gap:9px}
  .sidebar .nav-link span{width:22px;height:22px;font-size:14px}
  .sidebar .nav-label{margin-top:14px;font-size:9px}
  .sidebar-collapsed .sidebar{width:70px;padding-left:8px;padding-right:8px}
  .sidebar-collapsed .main-area{margin-right:70px;width:calc(100% - 70px)}
  .sidebar-collapsed .brand-mark,.sidebar-collapsed .sidebar-collapse-btn,.sidebar-collapsed .avatar{width:38px;height:38px}
}

.conversation-page .conversation-hub{grid-template-columns:clamp(270px,20vw,310px) minmax(0,1fr);gap:10px;transition:grid-template-columns .2s ease}
.conversation-page .conversation-browser{position:relative;border-radius:18px}
.conversation-page .conversation-browser-head{padding:10px 10px 8px;gap:8px;align-items:center}
.conversation-page .conversation-browser-title{flex:1;min-width:0}
.conversation-page .conversation-browser-head h3{font-size:16px;line-height:1.25}
.conversation-page .conversation-browser-head p{font-size:9px;line-height:1.35;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-browser-toggle{width:30px;height:30px;border:1px solid #e2e5ec;border-radius:9px;background:#fff;color:#6557db;font-size:20px;line-height:1;display:grid;place-items:center;flex:none;box-shadow:0 4px 12px rgba(34,39,55,.04)}
.conversation-browser-toggle:hover{background:#f5f3ff;border-color:#d2ccff}
.conversation-page .live-indicator{padding:5px 7px;font-size:9px}
.conversation-page .conversation-search-wrap{margin:7px 9px 5px;border-radius:10px;padding:0 8px}
.conversation-page .conversation-search-wrap input{padding:7px 0!important;font-size:11px}
.conversation-page .conversation-visibility-note{margin:0 9px 5px;padding:5px 7px;border-radius:9px;font-size:8.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-page .compact-filters{padding:0 9px 6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.conversation-page .compact-filters select{padding:6px 7px;font-size:9px;min-width:0}
.conversation-page .compact-filters .check-filter{font-size:8.5px;padding:0 4px;justify-content:center}
.conversation-page .compact-filters .btn{padding:6px 7px;font-size:9px}
.conversation-page .conversation-list{padding:2px 6px 4px;flex:1;min-height:0}
.conversation-page .conversation-list-item{grid-template-columns:34px minmax(0,1fr);gap:7px;padding:7px 8px;border-radius:11px;margin-bottom:2px}
.conversation-page .conversation-list-item.is-opened{background:#f5f3ff;border-color:#ddd8ff}
.conversation-page .conversation-avatar{width:34px;height:34px;border-radius:10px;font-size:12px}
.conversation-page .conversation-list-top b{font-size:11.5px}
.conversation-page .conversation-list-top small{font-size:9px}
.conversation-page .conversation-list-meta{margin-top:3px;min-height:17px;gap:4px}
.conversation-page .channel-tag,.conversation-page .badge,.conversation-page .conversation-type-pill{font-size:8.5px;padding:3px 6px}
.conversation-page .conversation-external{font-size:7.5px;margin-top:2px}
.conversation-closed-pill{display:inline-flex;padding:3px 6px;border-radius:999px;background:#f0f2f5;color:#6f7684;font-size:8px;font-weight:800}
.conversation-unread{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#d64058;color:#fff;font-size:8px;font-weight:800}
.conversation-feed-status{flex:none;border-top:1px solid var(--line);padding:5px 9px;background:#fbfcfe;color:#82908a;font-size:8px;text-align:center}
.conversation-feed-status.feed-error{color:#b33a4c;background:#fff6f7}

/* Collapse the inbox column into a tiny rail and give the workspace the reclaimed width. */
.conversation-page .conversation-hub.browser-collapsed{grid-template-columns:46px minmax(0,1fr)}
.conversation-page .browser-collapsed .conversation-browser{overflow:visible;background:#fff}
.conversation-page .browser-collapsed .conversation-browser-head{height:100%;padding:8px;align-items:flex-start;justify-content:center;border:0}
.conversation-page .browser-collapsed .conversation-browser-title,
.conversation-page .browser-collapsed .live-indicator,
.conversation-page .browser-collapsed .conversation-search-wrap,
.conversation-page .browser-collapsed .conversation-visibility-note,
.conversation-page .browser-collapsed .compact-filters,
.conversation-page .browser-collapsed .conversation-list,
.conversation-page .browser-collapsed .conversation-feed-status{display:none}
.conversation-page .browser-collapsed .conversation-browser-toggle{position:sticky;top:8px;width:30px;height:38px}

/* Use virtually the whole viewport height for list + chat work area. */
.conversation-page .content{padding:8px 10px 8px}
.conversation-page .conversation-hub{height:100%;min-height:0}
.conversation-page .conversation-browser,.conversation-page .conversation-workspace{height:100%}
.conversation-page .workspace-toolbar{height:42px;padding:5px 10px}
.conversation-page .workspace-panels{padding:6px;gap:6px}
.conversation-page .conversation-workspace{padding-bottom:50px;border-radius:18px}
.conversation-page .conversation-taskbar{height:38px;bottom:5px;right:6px;left:6px;padding:3px 5px;border-radius:11px}
.conversation-page .taskbar-chat{height:29px;min-width:112px}
.conversation-page .taskbar-brand span{width:24px;height:24px}

@media (max-width:1100px) and (min-width:901px){
  .conversation-page .conversation-hub{grid-template-columns:245px minmax(0,1fr)}
  .conversation-page .conversation-hub.browser-collapsed{grid-template-columns:44px minmax(0,1fr)}
}

@media (max-width:900px){
  .conversation-browser-toggle{display:none}
  .conversation-page .conversation-hub.browser-collapsed{display:flex}
  .conversation-page .browser-collapsed .conversation-browser-title,
  .conversation-page .browser-collapsed .live-indicator,
  .conversation-page .browser-collapsed .conversation-search-wrap,
  .conversation-page .browser-collapsed .conversation-visibility-note,
  .conversation-page .browser-collapsed .compact-filters,
  .conversation-page .browser-collapsed .conversation-list,
  .conversation-page .browser-collapsed .conversation-feed-status{display:initial}
}
/* v4.5.1 — human learning observability */
.soft-box{background:#f8f9fc;border:1px solid #e6e9f0;border-radius:14px;padding:13px 14px;min-height:74px}.soft-box strong{font-size:11px;color:#707889}.notice.info{background:#f2f0ff;border:1px solid #dcd7ff;color:#5648d7;border-radius:12px;padding:12px 14px;font-size:11px;line-height:1.8}


/* v4.5.2 — compact text navigation + default-collapsed inbox search/filter tools */
@media (min-width:901px){
  /* The compact sidebar keeps readable Arabic labels instead of turning into icon-only navigation. */
  .sidebar{width:220px;padding:16px 11px}
  .main-area{margin-right:220px;width:calc(100% - 220px)}
  .sidebar .nav-link{padding:9px 9px;font-size:11.5px;gap:7px}
  .sidebar .nav-link span{width:20px;height:20px;font-size:13px}
  .sidebar .nav-label{margin:11px 10px 4px;font-size:8px}

  .sidebar-collapsed .sidebar{width:164px;padding:14px 9px}
  .sidebar-collapsed .main-area{margin-right:164px;width:calc(100% - 164px)}
  .sidebar-collapsed .sidebar-brand-row{justify-content:space-between;flex-wrap:nowrap}
  .sidebar-collapsed .sidebar-brand-row .brand{display:flex;min-width:0}
  .sidebar-collapsed .brand-copy{display:none}
  .sidebar-collapsed .brand-mark{width:34px;height:34px;border-radius:10px;font-size:12px}
  .sidebar-collapsed .sidebar-collapse-btn{width:34px;height:34px}
  .sidebar-collapsed .nav-list{margin-top:14px}
  .sidebar-collapsed .nav-label{display:block;margin:10px 8px 3px;font-size:7.5px}
  .sidebar-collapsed .nav-link,.sidebar-collapsed .nav-form .nav-link{justify-content:flex-start;padding:8px 8px;font-size:10.5px;line-height:1.35;gap:0;white-space:normal}
  .sidebar-collapsed .nav-link span{display:none}
  .sidebar-collapsed .sidebar-footer{display:block;padding-top:9px}
  .sidebar-collapsed .tenant-mini{display:none}
  .sidebar-collapsed .user-mini{display:flex;margin-bottom:7px;gap:7px}
  .sidebar-collapsed .user-mini>div:not(.avatar){display:block;min-width:0}
  .sidebar-collapsed .user-mini b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sidebar-collapsed .user-mini small{display:none}
  .sidebar-collapsed .avatar{width:30px;height:30px;border-radius:8px;font-size:10px}
  .sidebar-collapsed .return-saas-form{display:block;margin-bottom:6px}
  .sidebar-collapsed .sidebar-footer form .btn{display:inline-flex;padding:7px 7px;font-size:8.5px}
}

.conversation-filter-toggle{border:1px solid #dedafc;background:#f6f4ff;color:#5f50d7;border-radius:9px;height:30px;padding:0 8px;display:inline-flex;align-items:center;gap:5px;font-size:8.5px;font-weight:800;white-space:nowrap;transition:.16s;flex:none}
.conversation-filter-toggle:hover{background:#eeebff;border-color:#cfc8ff}
.filter-toggle-icon{font-size:13px;line-height:1}
.conversation-filter-tools{flex:none;min-height:0}
.conversation-browser.filters-collapsed .conversation-filter-tools{display:none}
.conversation-browser.filters-collapsed .conversation-browser-head{border-bottom:1px solid var(--line)}
.conversation-browser.filters-collapsed .conversation-list{padding-top:5px}
.conversation-page .browser-collapsed .conversation-filter-toggle{display:none}

@media (max-width:1180px) and (min-width:901px){
  .filter-toggle-label{display:none}
  .conversation-filter-toggle{width:30px;padding:0;justify-content:center}
}
@media (max-width:900px){
  .conversation-filter-toggle{height:32px}
  .conversation-browser.filters-collapsed .conversation-filter-tools{display:none}
}


/* v4.5.3 — true icon-only collapsed sidebar, polished collapsible filters, widget theming */
@media (min-width:901px){
  .sidebar{width:220px;padding:16px 11px}
  .main-area{margin-right:220px;width:calc(100% - 220px)}
  .sidebar .nav-link{padding:9px 9px;font-size:11.5px;gap:7px}
  .sidebar .nav-link span{width:20px;height:20px;font-size:13px;flex:none}
  .sidebar .nav-label{margin:11px 10px 4px;font-size:8px}

  .sidebar-collapsed .sidebar{width:72px;padding:14px 9px}
  .sidebar-collapsed .main-area{margin-right:72px;width:calc(100% - 72px)}
  .sidebar-collapsed .sidebar-brand-row{justify-content:center;flex-direction:column;gap:8px}
  .sidebar-collapsed .sidebar-brand-row .brand{flex:none}
  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .tenant-mini,
  .sidebar-collapsed .user-mini>div:not(.avatar),
  .sidebar-collapsed .return-saas-form,
  .sidebar-collapsed .sidebar-footer form .btn{display:none!important}
  .sidebar-collapsed .brand-mark{width:38px;height:38px;border-radius:11px;font-size:12px}
  .sidebar-collapsed .sidebar-collapse-btn{width:38px;height:38px}
  .sidebar-collapsed .nav-list{margin-top:13px;gap:6px}
  .sidebar-collapsed .nav-link,
  .sidebar-collapsed .nav-form .nav-link{justify-content:center!important;padding:9px 7px!important;font-size:0!important;gap:0!important;white-space:nowrap!important}
  .sidebar-collapsed .nav-link span{display:grid!important;width:30px;height:30px;font-size:16px!important}
  .sidebar-collapsed .nav-link.active{box-shadow:inset -3px 0 0 #8376ff}
  .sidebar-collapsed .sidebar-footer{display:flex!important;justify-content:center;padding-top:10px}
  .sidebar-collapsed .user-mini{display:flex!important;margin:0}
  .sidebar-collapsed .avatar{width:38px;height:38px;border-radius:10px;font-size:11px}
}

.conversation-browser-head{position:relative}
.conversation-filter-toggle{width:34px;height:34px;padding:0;border:1px solid #dedafc;background:#f7f5ff;color:#6253d9;border-radius:10px;display:grid;place-items:center;transition:.18s;flex:none;box-shadow:0 3px 10px rgba(67,56,150,.06)}
.conversation-filter-toggle:hover{background:#efecff;border-color:#cfc8ff;transform:translateY(-1px)}
.conversation-filter-toggle svg{width:16px;height:16px;display:block}
.conversation-filter-toggle .filter-toggle-label{display:none!important}
.conversation-filter-toggle[aria-expanded="true"]{background:#6758ea;color:#fff;border-color:#6758ea;box-shadow:0 7px 18px rgba(103,88,234,.2)}
.conversation-filter-tools{display:block;overflow:hidden;max-height:260px;opacity:1;transition:max-height .2s ease,opacity .14s ease,padding .2s ease}
.conversation-browser.filters-collapsed .conversation-filter-tools{display:block!important;max-height:0!important;opacity:0!important;pointer-events:none;margin:0!important;padding:0!important}
.conversation-browser.filters-collapsed .conversation-browser-head{border-bottom:1px solid var(--line)}
.conversation-browser.filters-collapsed .conversation-list{padding-top:5px}
.conversation-page .browser-collapsed .conversation-filter-toggle{display:none!important}

/* Widget theme variables */
.public-chat-card{
  --widget-accent:var(--primary);
  --widget-header:#ffffff;
  --widget-bg:#f8f9fc;
  --widget-user:#6d5dfc;
  --widget-bot:#ffffff;
  --widget-text:#1c2028;
  color:var(--widget-text);
}
.embed-card .public-chat-head{background:var(--widget-header);color:var(--widget-text);border-bottom-color:rgba(128,134,150,.14)}
.embed-card .bot-avatar{background:var(--widget-accent);color:#fff}
.embed-card .public-messages{background:var(--widget-bg)}
.embed-card .public-msg.user{background:var(--widget-user);color:#fff}
.embed-card .public-msg.bot{background:var(--widget-bot);color:var(--widget-text)}
.embed-card .public-input button{background:var(--widget-accent)}
.embed-card .public-input textarea:focus{border-color:var(--widget-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--widget-accent) 12%, transparent)}
.powered{font-weight:600;letter-spacing:.1px}
.widget-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.widget-color-field{display:grid!important;grid-template-columns:1fr 44px;align-items:center;gap:8px}
.widget-color-field>span{font-size:11px;font-weight:700;color:#444b5a}
.widget-color-field input[type="color"]{width:44px!important;height:38px!important;padding:3px!important;border-radius:10px!important;cursor:pointer}
@media(max-width:800px){.widget-theme-grid{grid-template-columns:1fr 1fr}}

/* v4.6.0 — conversation ratings + owner ↔ AI management channel */
.public-rating-panel{margin:0 14px 10px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--widget-accent) 22%,#e6e8ef);background:color-mix(in srgb,var(--widget-accent) 7%,#fff);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--widget-text)}
.public-rating-panel[hidden]{display:none!important}.public-rating-panel b{display:block;font-size:13px;margin-bottom:3px}.public-rating-panel small{display:block;font-size:10px;color:#7d8493}.rating-actions{display:flex;gap:7px;flex:none}.rating-actions button{border:1px solid #dedfe8;background:#fff;color:#3c4351;padding:8px 10px;border-radius:10px;font-size:11px;font-weight:800;cursor:pointer}.rating-actions button:hover{border-color:var(--widget-accent);color:var(--widget-accent)}.rating-actions button:disabled{opacity:.55;cursor:wait}.rating-thanks{font-size:12px;font-weight:800;color:#118455;padding:3px 0}
@media(max-width:620px){.public-rating-panel{align-items:stretch;flex-direction:column}.rating-actions{width:100%}.rating-actions button{flex:1}}

.rating-stats .stat-card strong{font-size:26px}.rating-filter{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.rating-filter select{min-width:150px}

.ai-manager-shell{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:16px;height:calc(100vh - 155px);min-height:560px}.ai-manager-side{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto}.compact-card{padding:15px}.manager-live-stats{gap:0}.mini-stat{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.mini-stat:last-child{border-bottom:0}.mini-stat span{color:#747b89}.mini-stat b{font-size:15px}.manager-quick-prompts{display:grid;gap:7px;margin-top:10px}.manager-quick-prompts button{border:1px solid #e0e3eb;background:#f9fafc;text-align:right;padding:10px 11px;border-radius:11px;font-size:10.5px;line-height:1.6;cursor:pointer;color:#444b59}.manager-quick-prompts button:hover{background:#f2f0ff;border-color:#d9d3ff;color:#5b4bd4}.ai-manager-chat{padding:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.manager-chat-head{height:68px;padding:12px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.manager-chat-head>div:nth-child(2){display:flex;flex-direction:column;min-width:0}.manager-chat-head b{font-size:14px}.manager-chat-head small{font-size:9px;color:#818796;margin-top:2px}.manager-status{margin-right:auto;color:#17875b;font-size:10px;font-weight:800;display:flex;gap:5px;align-items:center}.manager-status i{width:7px;height:7px;background:#34c789;border-radius:50%;box-shadow:0 0 0 4px #e5f8ef}.manager-messages{flex:1;min-height:0;overflow:auto;padding:20px;background:linear-gradient(180deg,#fafbfe,#f4f6fb);display:flex;flex-direction:column;gap:10px}.manager-welcome{margin:auto;max-width:620px;text-align:center;color:#596170}.manager-welcome .brand-mark{margin:0 auto 14px}.manager-welcome h2{color:#20242d;font-size:24px;margin-bottom:10px}.manager-welcome p{font-size:12px;line-height:2}.manager-msg{max-width:min(760px,82%);padding:12px 14px;border-radius:15px;font-size:12px;line-height:1.9;box-shadow:0 4px 12px rgba(34,39,55,.04)}.manager-msg.owner{align-self:flex-start;background:#fff;border:1px solid #e0e3eb}.manager-msg.assistant{align-self:flex-end;background:#6858ee;color:#fff}.manager-msg small{display:block;margin-top:7px;font-size:8.5px;opacity:.7}.manager-msg.thinking{opacity:.72}.manager-actions-applied{margin-top:8px;padding:7px 9px;border-radius:9px;background:rgba(255,255,255,.16);font-size:9px;font-weight:800}.manager-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:12px;border-top:1px solid var(--line);background:#fff}.manager-composer textarea{resize:none;min-height:52px;max-height:140px}.manager-composer .btn{min-width:90px}.manager-hint{padding:0 14px 10px;color:#9096a3;font-size:8.5px;background:#fff}
@media(max-width:1000px){.ai-manager-shell{grid-template-columns:1fr;height:auto}.ai-manager-side{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.ai-manager-chat{height:70vh;min-height:520px}}@media(max-width:700px){.ai-manager-side{display:flex}.manager-msg{max-width:92%}.manager-composer{grid-template-columns:1fr}.manager-composer .btn{width:100%}}

/* v4.6.1 — message replies, reactions and emoji composer */
.conversation-page .desktop-msg-row{position:relative;align-items:flex-start;gap:6px}
.conversation-page .desktop-msg-actions{position:relative;display:flex;gap:4px;opacity:0;transition:.15s;margin-top:4px;direction:ltr;z-index:4}
.conversation-page .desktop-msg-row:hover .desktop-msg-actions,.conversation-page .desktop-msg-actions:focus-within{opacity:1}
.conversation-page .desktop-msg-actions>button{width:25px;height:25px;border:1px solid #e1e5ec;background:#fff;color:#687080;border-radius:8px;display:grid;place-items:center;padding:0;font-size:12px;box-shadow:0 4px 12px rgba(32,37,52,.08)}
.conversation-page .desktop-msg-actions>button:hover{color:#5f51ef;border-color:#cfc9ff;background:#f8f7ff}
.conversation-page .desktop-reaction-picker{position:absolute;top:30px;left:0;display:flex;gap:4px;flex-wrap:wrap;width:188px;padding:7px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 14px 34px rgba(31,37,52,.16);z-index:20}
.conversation-page .desktop-reaction-picker[hidden]{display:none!important}
.conversation-page .desktop-reaction-picker button{width:30px;height:30px;border:0;background:#f7f8fb;border-radius:8px;font-size:16px;padding:0}
.conversation-page .desktop-reaction-picker button:hover{background:#efedff;transform:scale(1.06)}
.conversation-page .desktop-reply-quote{width:100%;display:block;text-align:right;border:0;border-right:3px solid rgba(255,255,255,.5);background:rgba(255,255,255,.14);color:inherit;border-radius:8px;padding:6px 8px;margin-bottom:7px;cursor:pointer}
.conversation-page .desktop-msg-row.in .desktop-reply-quote{background:#f5f3ff;border-right-color:#7b6cff;color:#555d70}
.conversation-page .desktop-reply-quote b{display:block;font-size:9px;margin-bottom:2px}
.conversation-page .desktop-reply-quote span{display:block;font-size:10px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-page .desktop-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px;direction:ltr}
.conversation-page .reaction-chip{display:inline-flex;align-items:center;gap:3px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.13);color:inherit;border-radius:999px;padding:2px 6px;font-size:11px}
.conversation-page .desktop-msg-row.in .reaction-chip{background:#f4f5f8;border-color:#e4e7ed;color:#4d5565}
.conversation-page .reaction-chip.mine{outline:1px solid #9d93ff;background:#ebe8ff!important}
.conversation-page .reaction-chip b{font-size:8px}
.conversation-page .message-highlight .desktop-msg-bubble{animation:replyFlash 1.35s ease}
@keyframes replyFlash{0%,100%{box-shadow:0 3px 10px rgba(28,33,48,.035)}35%{box-shadow:0 0 0 4px rgba(109,93,252,.25),0 8px 24px rgba(109,93,252,.18)}}
.conversation-page .composer-reply-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f5f3ff;border:1px solid #ddd8ff;border-radius:10px;padding:7px 9px;margin-bottom:6px;color:#5146b8}
.conversation-page .composer-reply-preview[hidden]{display:none!important}
.conversation-page .composer-reply-preview>div{min-width:0;display:flex;align-items:center;gap:7px}
.conversation-page .composer-reply-preview b{font-size:9px;white-space:nowrap}
.conversation-page .composer-reply-preview span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#747099}
.conversation-page .composer-reply-cancel{width:22px;height:22px;border:0;border-radius:7px;background:#fff;color:#6d5dfc;flex:none}
.conversation-page .composer-emoji-wrap{position:relative;flex:none}
.conversation-page .composer-emoji{width:39px;height:39px;border:1px solid #e1e4eb;border-radius:12px;background:#fff;font-size:17px;padding:0}
.conversation-page .composer-emoji-picker{position:absolute;bottom:47px;right:0;width:218px;padding:8px;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;background:#fff;border:1px solid #e1e5ec;border-radius:13px;box-shadow:0 16px 40px rgba(31,37,52,.18);z-index:25}
.conversation-page .composer-emoji-picker[hidden]{display:none!important}
.conversation-page .composer-emoji-picker button{border:0;background:#f7f8fb;border-radius:8px;height:31px;font-size:17px;padding:0}
.conversation-page .composer-emoji-picker button:hover{background:#efedff}

.public-msg{position:relative;overflow:visible}
.public-msg-content{position:relative}
.public-msg-actions{position:absolute;top:5px;inset-inline-end:calc(100% + 6px);display:flex;gap:4px;opacity:0;transition:.15s;z-index:8;direction:ltr}
.public-msg.user .public-msg-actions{inset-inline-end:auto;inset-inline-start:calc(100% + 6px)}
.public-msg:hover .public-msg-actions,.public-msg-actions:focus-within{opacity:1}
.public-msg-actions>button{width:25px;height:25px;border:1px solid #e1e5ec;background:#fff;color:#687080;border-radius:8px;padding:0;font-size:12px;box-shadow:0 4px 10px rgba(32,37,52,.08)}
.public-reaction-picker{position:absolute;top:29px;left:0;display:flex;gap:4px;flex-wrap:wrap;width:184px;padding:7px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 14px 34px rgba(31,37,52,.18);z-index:30}
.public-reaction-picker[hidden]{display:none!important}
.public-reaction-picker button{width:30px;height:30px;border:0;background:#f7f8fb;border-radius:8px;font-size:16px;padding:0}
.public-reply-quote{width:100%;display:block;border:0;border-right:3px solid #7b6cff;background:#f2f0ff;color:#555d70;border-radius:8px;padding:6px 8px;margin-bottom:7px;text-align:right;cursor:pointer}
.public-msg.user .public-reply-quote{background:rgba(255,255,255,.15);color:#fff;border-right-color:rgba(255,255,255,.72)}
.public-reply-quote b{display:block;font-size:9px;margin-bottom:2px}.public-reply-quote span{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px;direction:ltr}
.public-reaction-chip{display:inline-flex;align-items:center;gap:3px;border:1px solid #e2e5eb;background:#f5f6f8;color:#4e5665;border-radius:999px;padding:2px 6px;font-size:11px}
.public-msg.user .public-reaction-chip{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.24);color:#fff}
.public-reaction-chip.mine{outline:1px solid #9b91ff}
.public-reaction-chip b{font-size:8px}
.public-reply-preview{margin:0 14px 8px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f2f0ff;border:1px solid #ddd8ff;border-radius:11px;padding:8px 10px;color:#5146b8}
.public-reply-preview[hidden]{display:none!important}.public-reply-preview>div{min-width:0}.public-reply-preview b{display:block;font-size:9px}.public-reply-preview span{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}.public-reply-preview>button{width:25px;height:25px;border:0;border-radius:8px;background:#fff;color:#6d5dfc}
.public-emoji-wrap{position:relative;flex:none}.public-emoji-toggle{width:44px!important;min-width:44px!important;transform:none!important;border:1px solid #e0e4eb!important;background:#fff!important;color:#3e4654!important;font-size:18px!important;box-shadow:none!important}
.public-emoji-picker{position:absolute;bottom:52px;right:0;width:218px;padding:8px;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;background:#fff;border:1px solid #e1e5ec;border-radius:13px;box-shadow:0 16px 40px rgba(31,37,52,.18);z-index:40}
.public-emoji-picker[hidden]{display:none!important}.public-emoji-picker button{width:100%!important;min-width:0!important;height:31px;border:0!important;background:#f7f8fb!important;color:inherit!important;border-radius:8px!important;font-size:17px!important;transform:none!important;padding:0!important}
.public-msg.message-highlight{animation:publicReplyFlash 1.35s ease}@keyframes publicReplyFlash{35%{box-shadow:0 0 0 4px rgba(109,93,252,.22)}}
@media(max-width:650px){.public-msg-actions{opacity:1;position:static;margin-top:5px;justify-content:flex-start}.public-msg.user .public-msg-actions{position:static}.public-reaction-picker{left:auto;right:0;top:auto;bottom:30px}.public-emoji-picker{right:auto;left:0}.conversation-page .desktop-msg-actions{opacity:1}.conversation-page .desktop-reaction-picker{left:auto;right:0}}

/* v4.8.0 — human routing decisions */
.handoff-alert-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.handoff-alert-actions .btn{white-space:nowrap}
.handoff-decision-actions{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:6px}
.handoff-decision-actions .inline-action{grid-column:auto;grid-row:auto}
.handoff-decision-actions .reject-chat{background:#fff;color:#a93244;border:1px solid #e8bfc7}
.window-handoff.assigned .handoff-decision-actions{align-self:center}
@media(max-width:700px){.handoff-alert-actions{width:100%}.handoff-alert-actions .btn{width:auto;flex:1}.handoff-decision-actions{grid-column:1/-1;grid-row:auto;margin-top:6px}.handoff-decision-actions .inline-action{flex:1}}

/* v4.8.3 — conversation transfer, collaboration and inactivity SLA */
.conversation-team-tools{margin:0 8px 8px;padding:8px 9px;border:1px solid #e3e6ed;border-radius:10px;background:#fff;display:grid;gap:7px}
.team-tools-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.team-tools-title b{font-size:9px}.team-tools-title small{font-size:7px;color:#7d8594;text-align:left}
.team-tool-row{display:flex;gap:6px;align-items:center}.team-tool-row select{flex:1;min-width:0;height:31px;border:1px solid #dfe3ea;border-radius:8px;background:#fafbfc;padding:0 7px;font-size:8px}
.team-tool-btn{border:0;border-radius:8px;background:#171923;color:#fff;padding:7px 10px;font-size:8px;font-weight:800;white-space:nowrap}
.team-share-details{border-top:1px solid #eef0f4;padding-top:6px}.team-share-details summary{cursor:pointer;font-size:8px;font-weight:700;color:#555d6b}.team-share-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:7px 0}.team-share-person{display:flex;align-items:center;gap:5px;font-size:8px;background:#f8f9fb;border:1px solid #eaedf2;border-radius:7px;padding:5px 6px}.team-share-person input{margin:0}.muted-note{font-size:8px;color:#8b92a0}
@media(max-width:700px){.team-tools-title{align-items:flex-start;flex-direction:column}.team-tool-row{align-items:stretch;flex-direction:column}.team-share-list{grid-template-columns:1fr}.team-tool-btn{width:100%}}

/* v4.8.6 — compact conversation team controls */
.window-team{color:#5d4ee8;background:#f4f2ff;border-color:#ded9ff;font-size:14px}.window-team:hover{background:#ebe8ff;color:#4939cf;border-color:#cfc8ff}.conversation-modal-open{overflow:hidden}.conversation-team-modal[hidden]{display:none!important}.conversation-team-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;direction:rtl}.conversation-team-modal-backdrop{position:absolute;inset:0;background:rgba(18,22,32,.42);backdrop-filter:blur(3px)}.conversation-team-modal-card{position:relative;width:min(560px,calc(100vw - 28px));max-height:min(680px,calc(100vh - 38px));overflow:hidden;background:#fff;border:1px solid #e3e6ee;border-radius:20px;box-shadow:0 28px 80px rgba(20,24,34,.24);display:flex;flex-direction:column}.conversation-team-modal-header{display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid #eceef3;background:linear-gradient(180deg,#fff,#fafbfe)}.conversation-team-modal-header>div{min-width:0;flex:1}.conversation-team-modal-header b{display:block;font-size:14px;color:#202431}.team-modal-subtitle{display:block;margin-top:4px;font-size:10px;color:#858c9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-modal-close{width:34px;height:34px;border:1px solid #e1e4eb;border-radius:10px;background:#fff;color:#6f7684;font-size:20px;line-height:1;cursor:pointer}.team-modal-close:hover{background:#fff1f3;color:#b93349;border-color:#f1d3d9}.conversation-team-modal-body{padding:15px;overflow:auto;display:grid;gap:14px}.team-modal-section{border:1px solid #e6e8ef;border-radius:14px;padding:13px;background:#fbfcfe}.team-modal-section-title{display:grid;gap:3px;margin-bottom:11px}.team-modal-section-title b{font-size:12px;color:#252a36}.team-modal-section-title span{font-size:9px;color:#8a91a0;line-height:1.55}.team-modal-transfer-row{display:flex;gap:8px;align-items:center}.team-modal-transfer-select{flex:1;min-width:0;height:42px;border:1px solid #dfe3ec;border-radius:11px;background:#fff;padding:0 11px;font-size:11px;color:#343947;outline:none}.team-modal-transfer-select:focus{border-color:#8d80ff;box-shadow:0 0 0 3px rgba(109,93,252,.10)}.team-modal-primary,.team-modal-secondary{border:0;border-radius:11px;min-height:42px;padding:0 16px;font-size:11px;font-weight:800;cursor:pointer}.team-modal-primary{background:#171923;color:#fff}.team-modal-secondary{background:#6d5dfc;color:#fff;margin-top:10px}.team-modal-primary:disabled,.team-modal-secondary:disabled{opacity:.55;cursor:wait}.team-modal-share-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.team-modal-person{display:flex;align-items:center;gap:9px;border:1px solid #e4e7ee;border-radius:11px;padding:9px;background:#fff;cursor:pointer}.team-modal-person:hover{border-color:#cdc7ff;background:#faf9ff}.team-modal-person input{width:17px;height:17px;accent-color:#6d5dfc}.team-modal-person span{display:grid;gap:2px;min-width:0}.team-modal-person b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-modal-person small{font-size:8px;color:#8c93a1}.team-modal-person.is-unavailable{opacity:.72}.team-modal-empty{grid-column:1/-1;padding:14px;text-align:center;color:#8d94a1;font-size:10px;background:#fff;border-radius:10px;border:1px dashed #dfe3eb}@media(max-width:640px){.conversation-team-modal{padding:10px}.conversation-team-modal-card{width:100%;max-height:calc(100vh - 20px);border-radius:16px}.team-modal-transfer-row{align-items:stretch;flex-direction:column}.team-modal-share-list{grid-template-columns:1fr}}


/* v4.9.0 — mobile-first admin + viewport-safe conversation center */
html,body{max-width:100%;overflow-x:hidden}.main-area,.content,.card{min-width:0}

@media(max-width:900px){
  /* Keep the conversation center inside the real mobile viewport. Only the list/messages scroll internally. */
  .conversation-page{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  .conversation-page .app-shell{height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex!important}
  .conversation-page .main-area{height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;width:100%!important;margin:0!important}
  .conversation-page .topbar{position:relative!important;top:auto!important;flex:0 0 62px!important;height:62px!important;min-height:62px!important;padding:7px 9px!important;gap:7px!important;background:rgba(245,247,251,.96)}
  .conversation-page .topbar>div{flex:1!important;min-width:0!important}
  .conversation-page .topbar h1{font-size:18px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .conversation-page .topbar p{display:none!important}
  .conversation-page .language-switch,.conversation-page .sound-toggle,.conversation-page .topbar-return-form{display:none!important}
  .conversation-page .menu-btn{display:grid!important;place-items:center;width:40px;height:40px;min-width:40px;padding:0;font-size:18px}
  .conversation-page .availability-form{flex:none}
  .conversation-page .availability-pill{width:40px;height:40px;padding:0!important;justify-content:center;gap:0;font-size:0;border-radius:12px}
  .conversation-page .availability-pill i{width:10px;height:10px}

  .conversation-page .handoff-alert{position:relative!important;top:auto!important;flex:0 0 auto!important;margin:0 7px!important;padding:7px 8px!important;border-radius:0 0 12px 12px!important;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;gap:5px 7px!important;z-index:35}
  .conversation-page .handoff-alert[hidden]{display:none!important}
  .conversation-page .handoff-siren{width:30px;height:30px;font-size:15px}
  .conversation-page .handoff-alert b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .conversation-page .handoff-alert span{display:block;font-size:8px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .conversation-page .handoff-alert-actions{grid-column:1/-1;width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
  .conversation-page .handoff-alert-actions .btn{width:100%!important;min-width:0;padding:6px 4px!important;font-size:9px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

  .conversation-page .content{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;display:flex!important;width:100%!important;padding:6px!important;margin:0!important}
  .conversation-page .content>.alert{left:8px!important;right:8px!important;top:68px!important;font-size:10px;padding:8px 10px}
  .conversation-page .conversation-hub{position:relative;flex:1 1 auto!important;min-height:0!important;height:100%!important;display:flex!important;flex-direction:column!important;gap:6px!important;overflow:hidden!important;width:100%!important}

  /* Mobile inbox: expanded by tapping its header, folded automatically after opening a conversation. */
  .conversation-page .conversation-browser{order:1;flex:0 0 min(40%,320px)!important;height:min(40%,320px)!important;max-height:320px!important;min-height:118px!important;width:100%!important;border-radius:14px!important;transition:flex-basis .2s ease,height .2s ease,min-height .2s ease;overflow:hidden!important}
  .conversation-page .conversation-browser-head{height:50px!important;min-height:50px!important;padding:7px 8px!important;gap:7px!important;align-items:center!important}
  .conversation-page .conversation-browser-title h3{font-size:14px!important}
  .conversation-page .conversation-browser-title p{font-size:9px!important;margin-top:1px!important}
  .conversation-page .conversation-browser-toggle{display:grid!important;width:34px!important;height:34px!important;min-width:34px!important;border-radius:10px!important;font-size:18px!important;position:static!important;order:-1}
  .conversation-page .conversation-filter-toggle{display:grid!important;width:34px;height:34px}
  .conversation-page .live-indicator{font-size:9px!important;padding:5px 7px!important}
  .conversation-page .conversation-list{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:4px 5px 6px!important}
  .conversation-page .conversation-list-item{grid-template-columns:34px minmax(0,1fr)!important;padding:7px!important;margin-bottom:3px!important}
  .conversation-page .conversation-avatar{width:34px!important;height:34px!important}
  .conversation-page .conversation-list-top b{font-size:12px!important}
  .conversation-page .conversation-list-meta{gap:4px!important;margin-top:3px!important}
  .conversation-page .conversation-feed-status{padding:4px 7px!important;font-size:7px!important}
  .conversation-page .conversation-filter-tools{max-height:190px}
  .conversation-page .conversation-search-wrap{margin:5px 6px 4px!important}
  .conversation-page .conversation-search-wrap input,.conversation-page .compact-filters select{font-size:16px!important} /* prevents iOS focus zoom */
  .conversation-page .compact-filters{padding:0 6px 5px!important;gap:4px!important}
  .conversation-page .conversation-visibility-note{display:none}

  .conversation-page .conversation-hub.browser-collapsed{display:flex!important}
  .conversation-page .browser-collapsed .conversation-browser{flex-basis:50px!important;height:50px!important;min-height:50px!important;max-height:50px!important}
  .conversation-page .browser-collapsed .conversation-browser-head{height:50px!important;min-height:50px!important;padding:7px 8px!important;justify-content:flex-start!important;border-bottom:0!important}
  .conversation-page .browser-collapsed .conversation-browser-title{display:block!important;flex:1!important}
  .conversation-page .browser-collapsed .conversation-browser-title p{display:none!important}
  .conversation-page .browser-collapsed .conversation-browser-toggle{display:grid!important;position:static!important;width:34px!important;height:34px!important}
  .conversation-page .browser-collapsed .live-indicator{display:inline-flex!important}
  .conversation-page .browser-collapsed .conversation-filter-toggle,
  .conversation-page .browser-collapsed .conversation-filter-tools,
  .conversation-page .browser-collapsed .conversation-list,
  .conversation-page .browser-collapsed .conversation-feed-status{display:none!important}

  .conversation-page .conversation-workspace{order:2;flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;border-radius:14px!important;padding-bottom:46px!important;overflow:hidden!important}
  .conversation-page .workspace-toolbar{height:38px!important;min-height:38px!important;padding:4px 8px!important}
  .conversation-page .workspace-toolbar b{font-size:11px!important}
  .conversation-page .workspace-toolbar span{display:none!important}
  .conversation-page .workspace-toolbar-meta{font-size:8px!important;padding:4px 7px!important}
  .conversation-page .workspace-panels,.conversation-page .workspace-panels.two-panels{flex:1!important;min-height:0!important;overflow:hidden!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr)!important;padding:4px!important;gap:4px!important}
  .conversation-page .workspace-panels.two-panels .chat-window:first-of-type{display:flex!important}
  .conversation-page .chat-window{height:100%!important;min-height:0!important;max-height:100%!important;border-radius:12px!important}
  .conversation-page .chat-window-header{height:48px!important;min-height:48px!important;padding:5px 6px!important;gap:5px!important}
  .conversation-page .chat-window-identity{gap:6px!important;min-width:0!important}
  .conversation-page .chat-window-avatar{width:30px!important;height:30px!important;border-radius:9px!important}
  .conversation-page .chat-window-name{font-size:12px!important}
  .conversation-page .chat-window-subtitle{font-size:8px!important;gap:3px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .conversation-page .chat-window-actions{gap:3px!important;flex:none}
  .conversation-page .window-action{width:28px!important;height:28px!important;border-radius:8px!important;font-size:12px!important}
  .conversation-page .window-team{font-size:13px!important}
  .conversation-page .window-minimize{display:none!important}
  .conversation-page .chat-window-status{flex:none;max-height:96px;overflow:auto}
  .conversation-page .window-status-line{padding:5px 7px!important}
  .conversation-page .window-handoff{margin:0 5px 5px!important;padding:6px 7px!important;gap:5px!important}
  .conversation-page .window-handoff b{font-size:10px!important}
  .conversation-page .window-handoff span{font-size:8px!important;line-height:1.4!important}
  .conversation-page .handoff-decision-actions{gap:4px!important;margin-top:4px!important}
  .conversation-page .handoff-decision-actions .inline-action{font-size:9px!important;padding:6px 8px!important}
  .conversation-page .chat-window-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:8px!important;-webkit-overflow-scrolling:touch}
  .conversation-page .desktop-msg-row{margin:6px 0!important}
  .conversation-page .desktop-msg-bubble{max-width:92%!important;padding:8px 9px!important;border-radius:13px!important}
  .conversation-page .desktop-msg-text{font-size:13px!important;line-height:1.65!important}
  .conversation-page .desktop-msg-sender{font-size:9px!important;margin-bottom:3px!important}
  .conversation-page .desktop-msg-foot{font-size:8px!important;margin-top:4px!important}
  .conversation-page .desktop-image-link img{max-width:min(250px,86vw)!important;max-height:220px!important}
  .conversation-page .chat-window-composer{flex:none!important;padding:6px!important;padding-bottom:calc(6px + env(safe-area-inset-bottom))!important}
  .conversation-page .composer-row{gap:5px!important;align-items:flex-end!important}
  .conversation-page .composer-row textarea{min-height:40px!important;max-height:92px!important;padding:8px 9px!important;font-size:16px!important;line-height:1.4!important;border-radius:11px!important}
  .conversation-page .composer-send{width:40px!important;height:40px!important;min-width:40px!important;border-radius:11px!important}
  .conversation-page .composer-emoji{width:40px!important;height:40px!important;min-width:40px!important}
  .conversation-page .composer-emoji-picker{max-width:calc(100vw - 24px)!important;right:auto!important;left:0!important}
  .conversation-page .composer-reply-preview{margin-bottom:5px!important;padding:6px 7px!important}
  .conversation-page .conversation-taskbar{height:40px!important;bottom:3px!important;right:4px!important;left:4px!important;padding:3px 4px!important;border-radius:10px!important}
  .conversation-page .taskbar-brand,.conversation-page .taskbar-hint{display:none!important}
  .conversation-page .taskbar-items{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none}
  .conversation-page .taskbar-items::-webkit-scrollbar{display:none}
  .conversation-page .taskbar-chat{height:32px!important;min-width:105px!important;max-width:150px!important}

  .conversation-team-modal{padding:6px!important;align-items:end!important}
  .conversation-team-modal-card{width:100%!important;max-height:calc(100dvh - 12px)!important;border-radius:18px 18px 10px 10px!important;padding-bottom:env(safe-area-inset-bottom)}
  .conversation-team-modal-header{padding:10px 11px!important}
  .conversation-team-modal-body{padding:10px!important;gap:9px!important}
  .team-modal-section{padding:10px!important}
  .team-modal-transfer-select{font-size:16px!important}
}

@media(max-width:560px){
  .conversation-page .content{padding:4px!important}
  .conversation-page .conversation-hub{gap:4px!important}
  .conversation-page .conversation-workspace{padding-bottom:0!important}
  .conversation-page .conversation-taskbar{display:none!important}
  .conversation-page .workspace-toolbar{height:34px!important;min-height:34px!important}
  .conversation-page .workspace-toolbar-meta{padding:3px 6px!important}
  .conversation-page .chat-window-header{height:46px!important;min-height:46px!important}
  .conversation-page .window-action{width:27px!important;height:27px!important}
  .conversation-page .chat-window-avatar{display:none!important}
  .conversation-page .desktop-msg-bubble{max-width:95%!important}
}

/* Small-screen improvements for the rest of the admin area. */
@media(max-width:650px){
  .admin-body:not(.conversation-page) .topbar{height:auto;min-height:66px;padding:10px 12px;gap:8px;flex-wrap:wrap}
  .admin-body:not(.conversation-page) .topbar>div{flex:1;min-width:160px}
  .admin-body:not(.conversation-page) .content{width:100%;padding:12px 10px 24px}
  .admin-body:not(.conversation-page) .card{max-width:100%;overflow:hidden;padding:14px}
  .admin-body:not(.conversation-page) .page-actions{align-items:stretch;flex-direction:column}
  .admin-body:not(.conversation-page) .table-wrap{width:100%;max-width:100%;-webkit-overflow-scrolling:touch}
  .admin-body:not(.conversation-page) .filters{display:grid;grid-template-columns:1fr;width:100%}
  .admin-body:not(.conversation-page) .filters select,.admin-body:not(.conversation-page) .filters input{width:100%;min-width:0;font-size:16px}
}

/* v4.9.2 — configurable website chat launcher */
.widget-launcher-settings{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:stretch}
.widget-launcher-preview-card{border:1px solid var(--line);border-radius:16px;background:#fbfcff;padding:14px;display:flex;flex-direction:column;gap:5px;min-height:260px}
.widget-launcher-preview-card>b{font-size:12px}.widget-launcher-preview-card>small{font-size:9px;color:var(--muted);line-height:1.7}
.widget-launcher-preview-stage{position:relative;flex:1;min-height:190px;border:1px dashed #dfe2ea;border-radius:14px;background:linear-gradient(180deg,#fff,#f5f7fb);overflow:hidden;margin-top:8px}
.launcher-preview{position:absolute;border:0;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 12px 32px rgba(70,55,190,.25);cursor:default;overflow:hidden;padding:0}
.launcher-preview svg{width:46%;height:46%;flex:none}.launcher-preview img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.launcher-preview-small{width:50px;height:50px}.launcher-preview-medium{width:60px;height:60px}.launcher-preview-large{width:70px;height:70px}
.launcher-preview-circle{border-radius:50%}.launcher-preview-square,.launcher-preview-animated_logo{border-radius:28%}
.launcher-preview-button{width:auto!important;min-width:150px;padding:0 18px!important;border-radius:999px}.launcher-preview-button.launcher-preview-small{min-width:126px}.launcher-preview-button.launcher-preview-large{min-width:174px;padding:0 22px!important}.launcher-preview-button svg{width:22px;height:22px}.launcher-preview-button span{font-size:12px;font-weight:800;white-space:nowrap}
@keyframes launcherPreviewPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes launcherPreviewFloat{0%,100%{margin-top:0}50%{margin-top:-9px}}
@keyframes launcherPreviewBounce{0%,100%{margin-top:0}45%{margin-top:-10px}60%{margin-top:-3px}}
.launcher-anim-pulse{animation:launcherPreviewPulse 1.8s ease-in-out infinite}.launcher-anim-float{animation:launcherPreviewFloat 2.2s ease-in-out infinite}.launcher-anim-bounce{animation:launcherPreviewBounce 2.4s ease-in-out infinite}
.widget-launcher-preview-stage[data-position="bottom_left"] .launcher-preview{left:14px;bottom:14px}.widget-launcher-preview-stage[data-position="bottom_right"] .launcher-preview{right:14px;bottom:14px}.widget-launcher-preview-stage[data-position="left_middle"] .launcher-preview{left:14px;top:50%;translate:0 -50%}.widget-launcher-preview-stage[data-position="right_middle"] .launcher-preview{right:14px;top:50%;translate:0 -50%}.widget-launcher-preview-stage[data-position="bottom_center"] .launcher-preview{left:50%;bottom:14px;translate:-50% 0}
.embed-note{display:block;margin-top:7px;line-height:1.7}
@media(max-width:900px){.widget-launcher-settings{grid-template-columns:1fr}.widget-launcher-preview-card{min-height:235px}}

/* v4.9.3 animated mascot launcher preview */
.launcher-preview-mascot{background:transparent!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important;width:96px!important;height:118px!important;min-width:0!important;padding:0!important}
.launcher-preview-mascot.launcher-preview-small{width:78px!important;height:96px!important}.launcher-preview-mascot.launcher-preview-large{width:116px!important;height:142px!important}
.aiw-mascot-preview-wrap{position:relative;width:100%;height:100%;display:block}.aiw-mascot-preview-wrap>svg,.aiw-mascot-preview-wrap>img,.aiw-mascot-preview-wrap>video{width:100%;height:100%;object-fit:contain;overflow:visible;filter:drop-shadow(0 10px 13px rgba(30,36,90,.18))}
.aiw-mascot-preview-wrap video{border-radius:18px}.aiw-mascot-wave-arm{transform-box:view-box;transform-origin:88px 73px;animation:aiwMascotWaveArm 1.15s ease-in-out infinite}.aiw-mascot-body{animation:aiwMascotBreathe 2.4s ease-in-out infinite;transform-origin:center}
.aiw-mascot-bubble{position:absolute;right:72%;top:10%;max-width:130px;min-width:65px;background:#fff;color:#17215b;border:1px solid #e7e9f4;border-radius:14px 14px 4px 14px;padding:7px 9px;font-size:9px;font-weight:800;line-height:1.4;box-shadow:0 8px 22px rgba(28,32,80,.15);white-space:normal}
@keyframes aiwMascotWaveArm{0%,100%{transform:rotate(5deg)}25%{transform:rotate(-26deg)}50%{transform:rotate(13deg)}75%{transform:rotate(-20deg)}}
@keyframes aiwMascotBreathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.channel-dot.instagram{background:#fff0f7;color:#c13584}.channel-tag.instagram,.taskbar-channel.instagram{background:#fff0f7!important;color:#c13584!important}.code-block{direction:ltr;text-align:left;white-space:pre-wrap;overflow:auto;background:#11131a;color:#e8ebf2;border-radius:14px;padding:14px;font-size:11px;line-height:1.8}.social-channel-instagram{color:#c13584}

/* v5.0.2 — reclaim wasted horizontal space inside conversation messages */
.conversation-page .desktop-msg-row{
  width:100%;
  gap:0;
}
.conversation-page .desktop-msg-bubble{
  max-width:94%;
}
/* Reply/reaction controls must not consume layout width while hidden. */
.conversation-page .desktop-msg-actions{
  position:absolute;
  top:4px;
  margin:0;
  z-index:8;
  display:flex;
  gap:4px;
  opacity:0;
  pointer-events:none;
}
.conversation-page .desktop-msg-row:hover .desktop-msg-actions,
.conversation-page .desktop-msg-actions:focus-within{
  opacity:1;
  pointer-events:auto;
}
/* Put controls on the free side of each message without shifting the bubble. */
.conversation-page .desktop-msg-row.in .desktop-msg-actions{
  right:4px;
  left:auto;
}
.conversation-page .desktop-msg-row.out .desktop-msg-actions{
  left:4px;
  right:auto;
}
.conversation-page .desktop-msg-row.in .desktop-reaction-picker{
  right:0;
  left:auto;
}
.conversation-page .desktop-msg-row.out .desktop-reaction-picker{
  left:0;
  right:auto;
}
/* Two-column mode is narrow, so let bubbles use almost the whole panel. */
.conversation-page .workspace-panels.two-panels .desktop-msg-bubble{
  max-width:97%;
}
.conversation-page .chat-window-messages{
  padding-left:9px;
  padding-right:9px;
}

@media(max-width:900px){
  .conversation-page .desktop-msg-bubble{max-width:97%!important}
  .conversation-page .chat-window-messages{padding-left:6px!important;padding-right:6px!important}
  /* Touch devices do not have hover; keep actions available only when focused/opened. */
  .conversation-page .desktop-msg-actions{top:3px}
}

/* v5.0.3 — MSN-style global inbound message popups */
.msn-toast-stack{position:fixed;left:18px;bottom:94px;z-index:2200;width:min(356px,calc(100vw - 28px));display:flex;flex-direction:column;gap:9px;pointer-events:none}
.msn-message-toast{width:100%;border:1px solid rgba(105,91,252,.20);border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(24,29,44,.22);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;color:#242936;text-align:right;direction:rtl;cursor:pointer;pointer-events:auto;transform:translateX(-118%) translateY(8px);opacity:0;transition:transform .30s cubic-bezier(.22,.8,.32,1),opacity .24s ease,border-color .2s ease;overflow:hidden;position:relative;font-family:inherit}
.msn-message-toast:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#6d5dfc}
.msn-message-toast.show{transform:translateX(0) translateY(0);opacity:1}
.msn-message-toast.leaving{transform:translateX(-112%) translateY(12px);opacity:0}
.msn-message-toast:hover{border-color:rgba(105,91,252,.48);box-shadow:0 20px 52px rgba(24,29,44,.27)}
.msn-toast-icon{width:40px;height:40px;border-radius:13px;background:#eeebff;color:#6151e8;display:grid;place-items:center;font-weight:900;font-size:16px;direction:ltr;box-shadow:inset 0 0 0 1px rgba(109,93,252,.08)}
.msn-toast-copy{display:block;min-width:0}
.msn-toast-copy b{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px;line-height:1.3;margin-bottom:4px}
.msn-toast-copy b>small{font-size:7px;padding:3px 6px;border-radius:999px;background:#f1efff;color:#6557dd;white-space:nowrap;flex:none}
.msn-toast-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#5e6573;font-size:9px;line-height:1.65;word-break:break-word}
.msn-toast-time{align-self:start;color:#a0a6b2;font-size:7px;padding-top:2px;padding-left:15px;white-space:nowrap}
.msn-toast-close{position:absolute;top:5px;left:6px;width:20px;height:20px;border-radius:7px;display:grid;place-items:center;color:#a5aab4;font-size:12px;line-height:1;opacity:.65}
.msn-toast-close:hover{background:#f0f1f5;color:#5c6270;opacity:1}
.msn-message-toast.channel-whatsapp:before{background:#1ab071}.msn-message-toast.channel-whatsapp .msn-toast-icon{background:#eaf9f2;color:#128a57}.msn-message-toast.channel-whatsapp .msn-toast-copy b>small{background:#eaf9f2;color:#128a57}
.msn-message-toast.channel-facebook:before{background:#3477df}.msn-message-toast.channel-facebook .msn-toast-icon{background:#edf4ff;color:#2c67c7}.msn-message-toast.channel-facebook .msn-toast-copy b>small{background:#edf4ff;color:#2c67c7}
.msn-message-toast.channel-instagram:before{background:#b34ad8}.msn-message-toast.channel-instagram .msn-toast-icon{background:#faefff;color:#a23dc8}.msn-message-toast.channel-instagram .msn-toast-copy b>small{background:#faefff;color:#a23dc8}
.msn-message-toast.channel-website:before{background:#6d5dfc}
@media(max-width:700px){.msn-toast-stack{left:8px;right:8px;bottom:76px;width:auto}.msn-message-toast{grid-template-columns:36px minmax(0,1fr) auto;border-radius:13px;padding:9px 10px;gap:8px}.msn-toast-icon{width:34px;height:34px;border-radius:10px;font-size:14px}.msn-toast-copy b{font-size:10px}.msn-toast-copy>span{font-size:8px}.msn-toast-time{display:none}}

/* v5.0.3 — MSN-style global inbound message popups */
.msn-toast-stack{position:fixed;left:18px;bottom:94px;z-index:2200;width:min(356px,calc(100vw - 28px));display:flex;flex-direction:column;gap:9px;pointer-events:none}
.msn-message-toast{width:100%;border:1px solid rgba(105,91,252,.20);border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(24,29,44,.22);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;color:#242936;text-align:right;direction:rtl;cursor:pointer;pointer-events:auto;transform:translateX(-118%) translateY(8px);opacity:0;transition:transform .30s cubic-bezier(.22,.8,.32,1),opacity .24s ease,border-color .2s ease;overflow:hidden;position:relative;font-family:inherit}
.msn-message-toast:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#6d5dfc}
.msn-message-toast.show{transform:translateX(0) translateY(0);opacity:1}
.msn-message-toast.leaving{transform:translateX(-112%) translateY(12px);opacity:0}
.msn-message-toast:hover{border-color:rgba(105,91,252,.48);box-shadow:0 20px 52px rgba(24,29,44,.27)}
.msn-toast-icon{width:40px;height:40px;border-radius:13px;background:#eeebff;color:#6151e8;display:grid;place-items:center;font-weight:900;font-size:16px;direction:ltr;box-shadow:inset 0 0 0 1px rgba(109,93,252,.08)}
.msn-toast-copy{display:block;min-width:0}
.msn-toast-copy b{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px;line-height:1.3;margin-bottom:4px}
.msn-toast-copy b>small{font-size:7px;padding:3px 6px;border-radius:999px;background:#f1efff;color:#6557dd;white-space:nowrap;flex:none}
.msn-toast-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#5e6573;font-size:9px;line-height:1.65;word-break:break-word}
.msn-toast-time{align-self:start;color:#a0a6b2;font-size:7px;padding-top:2px;padding-left:15px;white-space:nowrap}
.msn-toast-close{position:absolute;top:5px;left:6px;width:20px;height:20px;border-radius:7px;display:grid;place-items:center;color:#a5aab4;font-size:12px;line-height:1;opacity:.65}
.msn-toast-close:hover{background:#f0f1f5;color:#5c6270;opacity:1}
.msn-message-toast.channel-whatsapp:before{background:#1ab071}.msn-message-toast.channel-whatsapp .msn-toast-icon{background:#eaf9f2;color:#128a57}.msn-message-toast.channel-whatsapp .msn-toast-copy b>small{background:#eaf9f2;color:#128a57}
.msn-message-toast.channel-facebook:before{background:#3477df}.msn-message-toast.channel-facebook .msn-toast-icon{background:#edf4ff;color:#2c67c7}.msn-message-toast.channel-facebook .msn-toast-copy b>small{background:#edf4ff;color:#2c67c7}
.msn-message-toast.channel-instagram:before{background:#b34ad8}.msn-message-toast.channel-instagram .msn-toast-icon{background:#faefff;color:#a23dc8}.msn-message-toast.channel-instagram .msn-toast-copy b>small{background:#faefff;color:#a23dc8}
.msn-message-toast.channel-website:before{background:#6d5dfc}
@media(max-width:700px){.msn-toast-stack{left:8px;right:8px;bottom:76px;width:auto}.msn-message-toast{grid-template-columns:36px minmax(0,1fr) auto;border-radius:13px;padding:9px 10px;gap:8px}.msn-toast-icon{width:34px;height:34px;border-radius:10px;font-size:14px}.msn-toast-copy b{font-size:10px}.msn-toast-copy>span{font-size:8px}.msn-toast-time{display:none}}
.desktop-notify-toggle.active{border-color:#cdecdc!important;background:#f4fcf8!important;color:#117f53!important}.desktop-notify-toggle:disabled{opacity:.6;cursor:not-allowed}@media(max-width:820px){.desktop-notify-toggle{display:none!important}}


/* v5.1.1 — keep customer identity visible when two conversations share the workspace */
.conversation-page .chat-window-header{min-width:0;overflow:hidden}
.conversation-page .chat-window-identity{min-width:0;overflow:hidden;flex:1 1 auto}
.conversation-page .chat-window-identity-copy{min-width:0;max-width:100%;flex:1 1 auto;overflow:hidden}
.conversation-page .chat-window-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35;min-height:1.35em}
.conversation-page .chat-window-subtitle{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.45;margin-top:2px}
.conversation-page .chat-window-subtitle .channel-tag{display:inline-flex;vertical-align:middle;margin-inline-end:3px}
.conversation-page .chat-window-actions{flex:0 0 auto;min-width:max-content}
.conversation-page .workspace-panels.two-panels .chat-window-header{gap:6px;padding-inline:8px}
.conversation-page .workspace-panels.two-panels .chat-window-identity{gap:6px}
.conversation-page .workspace-panels.two-panels .chat-window-name{font-size:12px}
.conversation-page .workspace-panels.two-panels .chat-window-subtitle{font-size:8px}
@media(max-width:1250px) and (min-width:1001px){
  .conversation-page .workspace-panels.two-panels .chat-window-avatar{width:30px;height:30px}
  .conversation-page .workspace-panels.two-panels .window-action{width:25px;height:25px}
  .conversation-page .workspace-panels.two-panels .chat-window-actions{gap:3px}
}

/* v5.2.1 — personal profile + three-state agent presence */
.availability-dot.busy{background:#fff5df;color:#9b6500}
.user-mini-link{position:relative;color:inherit;border-radius:12px;padding:7px 8px;margin-left:-8px;margin-right:-8px;transition:.18s}
.user-mini-link:hover{background:rgba(255,255,255,.055)}
.user-mini-edit{margin-inline-start:auto;color:#8d85ff;font-size:8px;font-weight:800;white-space:nowrap}
.user-presence-control{height:40px;min-width:112px;border:1px solid #dfe3ea;border-radius:999px;background:#fff;display:inline-flex;align-items:center;gap:7px;padding:0 10px;transition:.18s;position:relative}
.user-presence-control .user-presence-dot{width:9px;height:9px;border-radius:50%;flex:none;transition:.18s}
.user-presence-control select{appearance:none;-webkit-appearance:none;border:0;background:transparent;outline:0;padding:0 15px 0 0;font-size:10px;font-weight:900;cursor:pointer;color:inherit;min-width:72px}
html[dir="ltr"] .user-presence-control select{padding:0 0 0 15px}
.user-presence-control:after{content:'⌄';position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-54%);font-size:9px;pointer-events:none;opacity:.55}
.user-presence-control.available{color:#117f53;border-color:#cdecdc;background:#f4fcf8}
.user-presence-control.available .user-presence-dot{background:#18a76b;box-shadow:0 0 0 4px rgba(24,167,107,.11)}
.user-presence-control.busy{color:#976100;border-color:#f0d9a5;background:#fff9e9}
.user-presence-control.busy .user-presence-dot{background:#e39b12;box-shadow:0 0 0 4px rgba(227,155,18,.12)}
.user-presence-control.unavailable{color:#8b4650;border-color:#efd7db;background:#fff7f8}
.user-presence-control.unavailable .user-presence-dot{background:#cf5262}
.user-presence-control.loading{opacity:.55;pointer-events:none}

.account-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.profile-hero-card{display:flex;align-items:center;gap:16px;padding:20px 22px}
.profile-hero-avatar{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dfc,#9689ff);color:#fff;font-size:24px;font-weight:900;box-shadow:0 12px 32px rgba(109,93,252,.18);flex:none}
.profile-hero-copy{min-width:0;flex:1}.profile-hero-copy h2{font-size:20px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-hero-copy>p{margin:4px 0 10px;color:var(--muted);font-size:11px;direction:ltr;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-meta-row{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.presence-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:900}.presence-chip i{width:7px;height:7px;border-radius:50%}.presence-chip.available{background:#eaf8f1;color:#117f53}.presence-chip.available i{background:#18a76b}.presence-chip.busy{background:#fff5df;color:#976100}.presence-chip.busy i{background:#e39b12}.presence-chip.unavailable{background:#fff0f2;color:#a54453}.presence-chip.unavailable i{background:#cf5262}
.profile-status-options{display:grid;gap:9px}.profile-status-btn{width:100%;border:1px solid var(--line);background:#fbfcfe;border-radius:14px;display:grid;grid-template-columns:10px 58px 1fr;gap:9px;align-items:center;text-align:right;padding:12px 13px;color:var(--text);transition:.16s}.profile-status-btn>i{width:9px;height:9px;border-radius:50%}.profile-status-btn b{font-size:11px}.profile-status-btn span{font-size:8px;color:var(--muted);line-height:1.55}.profile-status-btn.available>i{background:#18a76b}.profile-status-btn.busy>i{background:#e39b12}.profile-status-btn.unavailable>i{background:#cf5262}.profile-status-btn.active.available{border-color:#bfe8d2;background:#f2fbf6}.profile-status-btn.active.busy{border-color:#efd59b;background:#fffaea}.profile-status-btn.active.unavailable{border-color:#efcdd3;background:#fff6f7}.profile-status-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(28,34,50,.05)}

@media(max-width:1200px){.account-profile-grid{grid-template-columns:minmax(0,1fr) 320px}.user-presence-control{min-width:100px}}
@media(max-width:900px){.account-profile-grid{grid-template-columns:1fr}.account-profile-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}.user-presence-control{height:38px;min-width:98px}.user-mini-edit{display:none}}
@media(max-width:640px){.account-profile-grid aside{display:flex;flex-direction:column}.profile-hero-card{padding:16px}.profile-hero-avatar{width:52px;height:52px;border-radius:16px;font-size:20px}.profile-hero-copy h2{font-size:17px}.user-presence-control{min-width:92px;padding-inline:8px}.user-presence-control select{font-size:9px;min-width:62px}.conversation-page .user-presence-control{width:40px;min-width:40px;height:40px;padding:0;justify-content:center;border-radius:12px}.conversation-page .user-presence-control select{position:absolute;inset:0;opacity:0;width:100%;min-width:0;padding:0}.conversation-page .user-presence-control:after{display:none}.conversation-page .user-presence-control .user-presence-dot{width:10px;height:10px}}
.sidebar-collapsed .user-mini-edit{display:none}


/* v5.3.3 — balanced bot instruction cards (do not share account profile grid rules) */
.bot-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:18px;align-items:stretch}
.bot-profile-card{display:flex;flex-direction:column;min-width:0;min-height:330px;padding:22px}
.bot-profile-card .card-head{min-height:58px;align-items:flex-start}
.bot-profile-card .card-head>div{min-width:0}
.bot-profile-card .card-head h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bot-profile-card .card-head p{margin-top:4px}
.bot-profile-card .prompt-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;white-space:normal;min-height:126px;max-height:126px;margin:14px 0 4px;padding:12px 14px;border:1px solid #edf0f5;border-radius:13px;background:#fafbfe;color:#667085;font-size:11px;line-height:1.9}
.bot-profile-card .usage-pills{margin-top:auto;margin-bottom:14px;min-height:31px;align-items:center}
.bot-profile-card .usage-pills span{font-size:9px;padding:6px 9px}
.bot-profile-card .btn-full{margin-top:0}
@media(max-width:700px){.bot-profile-grid{grid-template-columns:1fr}.bot-profile-card{min-height:300px;padding:17px}.bot-profile-card .prompt-preview{min-height:112px;max-height:112px;-webkit-line-clamp:5}}

/* v5.4.0 — AI Company Intelligence Manager + trusted owner WhatsApp */
.trusted-owner-card{display:grid;gap:10px}.trusted-owner-card label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#555d6c}.trusted-owner-card input,.trusted-owner-card select{font-weight:600}.trusted-owner-card .toggle-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fafbfe}.trusted-owner-card .toggle-row span{display:grid;gap:2px}.trusted-owner-card .toggle-row small{font-weight:500;color:#858c99}.trusted-owner-card .toggle-row input{width:18px;height:18px}.trusted-owner-warning{display:block;color:#8a6c2b;line-height:1.7;background:#fff9e9;border:1px solid #f2dfad;border-radius:10px;padding:8px 9px}.manager-source-badge{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:4px 7px;margin-bottom:7px;border-radius:999px;background:#eefaf4;color:#168158;font-size:8.5px;font-weight:900}.manager-msg.owner .manager-source-badge{border:1px solid #d8f0e4}.ai-manager-side .card-head{align-items:flex-start}

/* v5.4.2 — profile-scoped trusted owners inside Bot Profile training */
.trusted-owner-card{gap:12px}
.owner-scope-note{padding:9px 10px;border:1px solid #dfe3f4;border-radius:11px;background:#f7f8ff;color:#5c6372;font-size:9px;line-height:1.7}
.trusted-owner-table{display:grid;gap:8px}
.trusted-owner-row{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(125px,.9fr) auto auto;gap:7px;align-items:end;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fafbfe}
.trusted-owner-person{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px;align-items:end}
.owner-row-avatar{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#ece9ff;color:#5f50de;font-weight:900;margin-bottom:3px}
.trusted-owner-row label{min-width:0}
.trusted-owner-row input[type="text"]{min-width:0;width:100%}
.owner-enabled{display:flex!important;align-items:center!important;justify-content:center;gap:6px;height:39px;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:#fff;white-space:nowrap}
.owner-enabled input{width:16px!important;height:16px!important}
.owner-remove{width:36px;height:39px;border:1px solid #ffd5d9;background:#fff6f7;color:#cf3d4d;border-radius:10px;font-size:19px;cursor:pointer}
.owner-remove:hover{background:#ffecef}
.trusted-owner-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.trusted-owner-empty{padding:14px;border:1px dashed #d9ddea;border-radius:12px;text-align:center;color:#8b92a0;font-size:9.5px;background:#fbfcfe}
@media(max-width:700px){.trusted-owner-row{grid-template-columns:1fr}.trusted-owner-person{grid-template-columns:28px 1fr}.owner-enabled{justify-content:flex-start}.owner-remove{width:100%}.trusted-owner-actions .btn{flex:1}}
/* v5.4.3 — Website Widget floating/status-button launcher */
.widget-launcher-mode-fields{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.widget-launcher-mode-fields[hidden]{display:none!important}
.widget-status-image-current{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:#fafbfe;color:var(--muted);font-size:10px;font-weight:700}
.widget-status-image-current img{width:52px;height:52px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:#fff}
.launcher-preview-status-button{width:auto!important;min-width:176px!important;padding:0 16px!important;border-radius:15px!important;overflow:hidden!important;gap:9px!important;box-shadow:0 12px 32px rgba(29,78,216,.18)!important}
.launcher-preview-status-button.launcher-preview-small{min-width:142px!important;padding:0 13px!important}
.launcher-preview-status-button.launcher-preview-large{min-width:210px!important;padding:0 20px!important;border-radius:18px!important}
.launcher-preview-status-button svg{width:26px!important;height:26px!important;flex:none}
.launcher-status-preview-image{width:36px!important;height:36px!important;object-fit:cover!important;border-radius:9px!important;background:#fff!important;flex:none!important}
.launcher-preview-status-button.launcher-preview-small .launcher-status-preview-image{width:30px!important;height:30px!important}
.launcher-preview-status-button.launcher-preview-large .launcher-status-preview-image{width:42px!important;height:42px!important;border-radius:10px!important}
.launcher-status-preview-label{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.launcher-status-preview-label i{width:9px;height:9px;border-radius:50%;background:#e2e8f0;box-shadow:0 0 0 3px rgba(255,255,255,.18)}
.launcher-status-preview-label i.online{background:#bbf7d0}.launcher-status-preview-label i.offline{background:#e2e8f0}
.launcher-status-preview-label b{font-size:13px;font-weight:900}.launcher-preview-status-button.launcher-preview-small .launcher-status-preview-label b{font-size:12px}.launcher-preview-status-button.launcher-preview-large .launcher-status-preview-label b{font-size:15px}
.widget-status-upload-field{display:flex;flex-direction:column;gap:7px}.widget-status-upload-field>label:first-child{font-weight:600;font-size:12px;color:#373c49}.widget-status-upload-field>label:first-child small{display:block;margin-top:4px;font-size:9px;color:var(--muted);font-weight:400}

/* v5.4.8 — custom widget chat logo replacing the AI initials */
.bot-avatar.has-logo{background:transparent!important;overflow:hidden;padding:0}
.bot-avatar.has-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
.widget-chat-logo-current{display:flex;align-items:center;gap:12px;margin-top:8px}
.widget-chat-logo-current img{width:58px;height:58px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff;padding:4px}

/* v5.4.9 — ready-made chat logo library + custom upload */
.widget-chat-logo-library{display:grid;gap:12px}
.widget-chat-logo-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.widget-chat-logo-library-head b{display:block;font-size:12px;color:var(--text)}
.widget-chat-logo-library-head small{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.7;font-weight:500}
.widget-chat-logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}
.widget-chat-logo-card{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px;align-items:center;min-height:70px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe;cursor:pointer;transition:.16s;overflow:hidden}
.widget-chat-logo-card:hover{border-color:#cbc6ff;background:#faf9ff;transform:translateY(-1px);box-shadow:0 8px 20px rgba(57,48,130,.05)}
.widget-chat-logo-card.selected{border-color:#8f83ff;background:#f5f3ff;box-shadow:0 0 0 2px rgba(109,93,252,.08)}
.widget-chat-logo-card>input{position:absolute;opacity:0;pointer-events:none}
.widget-chat-logo-thumb{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid #e7e9f0;box-shadow:0 4px 12px rgba(26,31,45,.05)}
.widget-chat-logo-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.widget-chat-logo-thumb.is-ai{background:linear-gradient(135deg,#6d5dfc,#8d7fff);border-color:transparent;color:#fff}
.widget-chat-logo-thumb.is-ai b{font-size:16px;font-weight:900;letter-spacing:-.5px}
.widget-chat-logo-thumb.is-custom{background:linear-gradient(135deg,#fff,#f4f6fa);color:#6d5dfc}
.widget-chat-logo-thumb.is-custom b{font-size:25px;font-weight:400;line-height:1}
.widget-chat-logo-copy{min-width:0;display:grid;gap:2px}.widget-chat-logo-copy>b{font-size:10px;color:#383e4a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.widget-chat-logo-copy>small{font-size:8px;color:var(--muted);line-height:1.4;font-weight:500}
.widget-chat-logo-check{position:absolute;inset-inline-end:7px;top:7px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#6d5dfc;color:#fff;font-style:normal;font-size:10px;font-weight:900;opacity:0;transform:scale(.75);transition:.15s}
.widget-chat-logo-card.selected .widget-chat-logo-check{opacity:1;transform:scale(1)}
.widget-chat-custom-upload{display:grid;gap:10px;padding:13px;border:1px dashed #cfcbea;border-radius:14px;background:#fbfaff}.widget-chat-custom-upload[hidden]{display:none!important}
.widget-chat-custom-upload>label{display:grid;gap:6px;font-size:10px;font-weight:800}.widget-chat-custom-upload>label small{font-size:8.5px;color:var(--muted);font-weight:500;line-height:1.6}
.widget-chat-logo-current{padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:9px;font-weight:700}
@media(max-width:700px){.widget-chat-logo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-chat-logo-card{grid-template-columns:42px minmax(0,1fr);padding:8px}.widget-chat-logo-thumb{width:42px;height:42px;border-radius:12px}}
@media(max-width:430px){.widget-chat-logo-grid{grid-template-columns:1fr}}

/* v5.5.1 — target-specific widget embed code templates */
.embed-target-select{display:grid;gap:7px;margin-top:14px;font-size:10px;font-weight:800;color:#474e5d}
.embed-target-select select{width:100%;font-weight:700;background:#fff}
.embed-target-payload{display:none!important}
.embed-target-summary{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin-top:12px;padding:10px 11px;border:1px solid #e4e6f0;border-radius:13px;background:#fafbfe}
.embed-target-summary .embed-target-icon{width:38px;height:38px;border-radius:11px;background:#ece9ff;color:#5f50de;display:grid;place-items:center;font-size:17px;font-weight:900}
.embed-target-summary b{display:block;font-size:10px;color:#363c49}
.embed-target-summary small{display:block;margin-top:3px;color:var(--muted);font-size:8.5px;line-height:1.65;font-weight:500}
.embed-code.is-copied{box-shadow:0 0 0 2px rgba(37,176,111,.2);border-color:#9bdcbc}
@media(max-width:700px){.embed-target-summary{grid-template-columns:34px minmax(0,1fr)}.embed-target-summary .embed-target-icon{width:34px;height:34px}}

/* v5.6.0 — account-persistent Arabic/English UI + true RTL/LTR shell */
html[dir="ltr"] body{font-family:Inter,"Segoe UI",Arial,Tahoma,sans-serif}
html[dir="ltr"] .app-shell{direction:ltr}
html[dir="ltr"] .sidebar{left:0;right:auto;box-shadow:16px 0 50px rgba(15,17,25,.10)}
html[dir="ltr"] .main-area{margin-right:0!important;margin-left:220px!important;width:calc(100% - 220px)!important}
html[dir="ltr"] .sidebar-collapsed .main-area{margin-right:0!important;margin-left:72px!important;width:calc(100% - 72px)!important}
html[dir="ltr"] .nav-link.active{box-shadow:inset 3px 0 0 #8376ff}
html[dir="ltr"] .sidebar-collapse-btn{transform:scaleX(-1)}
html[dir="ltr"] .table-wrap th,
html[dir="ltr"] .data-table th,
html[dir="ltr"] .knowledge-table th{text-align:left}
html[dir="ltr"] .permission-item small{text-align:left}
html[dir="ltr"] .copy-field button{border-right:0;border-left:1px solid var(--line)}
html[dir="ltr"] .delivery-error form{margin-right:0;margin-left:6px}
html[dir="ltr"] .handoff-alert,
html[dir="ltr"] .user-presence-control,
html[dir="ltr"] .language-switch{direction:ltr}
html[dir="ltr"] .msn-message-toast{direction:ltr;text-align:left;transform:translateX(118%) translateY(8px)}
html[dir="ltr"] .msn-message-toast.show{transform:translateX(0) translateY(0)}
html[dir="ltr"] .msn-message-toast.leaving{transform:translateX(112%) translateY(12px)}
html[dir="ltr"] .msn-toast-copy b{flex-direction:row}
html[dir="ltr"] .conversation-page .desktop-msg-bubble{direction:ltr}
html[dir="ltr"] .conversation-page .desktop-msg-sender{text-align:left}
html[dir="ltr"] .conversation-page .desktop-msg-foot{direction:ltr}
html[dir="ltr"] .conversation-page .composer-row textarea{direction:ltr;text-align:left}
html[dir="ltr"] .owner-row-avatar,
html[dir="ltr"] .profile-hero-avatar{direction:ltr}
.language-switch-btn{white-space:nowrap;min-width:92px}

@media(max-width:900px){
  html[dir="ltr"] .sidebar{left:0;right:auto;transform:translateX(-110%)}
  html[dir="ltr"] .sidebar.open{transform:translateX(0)}
  html[dir="ltr"] .main-area,
  html[dir="ltr"] .sidebar-collapsed .main-area{margin-left:0!important;margin-right:0!important;width:100%!important}
  html[dir="ltr"] .sidebar-collapsed .sidebar{left:0;right:auto}
}
.login-language-switch{position:fixed;z-index:20;top:18px;inset-inline-end:18px}.login-language-switch .btn{min-width:96px;box-shadow:0 8px 24px rgba(24,29,44,.10)}

/* v6.0.50.10 — shared-wallet recharge modal */
.wallet-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.wallet-recharge-open{white-space:nowrap}.recharge-modal-open{overflow:hidden}.wallet-recharge-modal{z-index:100000;direction:rtl}.wallet-recharge-card{width:min(520px,100%);max-height:min(640px,calc(100vh - 36px));padding:24px}.wallet-recharge-card .modal-head{align-items:flex-start}.wallet-recharge-card .modal-head>div{min-width:0;flex:1}.wallet-recharge-card .modal-head h3{font-size:18px}.wallet-recharge-card .modal-head p{font-size:11px;line-height:1.8}.recharge-code-field{margin-top:4px}.recharge-code-field input{direction:ltr;text-align:center;letter-spacing:.16em;font:700 21px/1.3 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;padding:15px 12px}.recharge-code-field input::placeholder{letter-spacing:.12em;color:#b1b6c1}.recharge-code-hint{display:block;color:var(--muted);font-size:10px;margin-top:-5px}.recharge-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.recharge-success-toast{position:fixed;z-index:100001;left:24px;bottom:24px;width:min(460px,calc(100vw - 32px));display:grid;grid-template-columns:46px minmax(0,1fr) 30px;align-items:center;gap:12px;padding:15px 16px;background:#fff;border:1px solid #ccebdd;border-radius:17px;box-shadow:0 20px 55px rgba(22,84,59,.18);animation:rechargeToastIn .25s ease}.recharge-success-toast.is-hiding{opacity:0;transform:translateY(10px);transition:.2s}.recharge-success-icon{width:46px;height:46px;border-radius:14px;background:#e8f8f0;color:#128153;display:grid;place-items:center;font-size:24px;font-weight:900}.recharge-success-toast b{display:block;color:#126d4a;font-size:13px}.recharge-success-toast p{margin:4px 0 0;color:#587066;font-size:10px;line-height:1.7}.recharge-success-toast>button{align-self:start;width:30px;height:30px;border:0;border-radius:9px;background:#f1f5f3;color:#6b7b74;font-size:18px}.recharge-success-toast>button:hover{background:#e7f3ed;color:#126d4a}@keyframes rechargeToastIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media(max-width:700px){.wallet-actions{width:100%;justify-content:space-between}.wallet-recharge-open{flex:1}.wallet-recharge-card{padding:19px;border-radius:19px}.recharge-code-field input{font-size:17px;letter-spacing:.10em}.recharge-modal-actions{display:grid;grid-template-columns:1fr 1fr}.recharge-success-toast{left:16px;bottom:16px}.recharge-success-toast p{font-size:9px}}

/* v5.6.0 — elements that carried an explicit RTL declaration in older screens */
html[dir="ltr"] .login-visual,
html[dir="ltr"] .login-panel,
html[dir="ltr"] .conversation-hub,
html[dir="ltr"] .conversation-team-modal{direction:ltr}
html[dir="ltr"] .instruction-editor{direction:ltr;text-align:left}
html[dir="ltr"] .conversation-team-modal-card,
html[dir="ltr"] .team-modal-transfer-select{text-align:left}

/* v5.6.1 — English live-page stability hotfix: i18n observer no longer feeds back into live DOM updates. */

/* v5.7.0 — conversation channel identity + customer history context */
.conversation-page .conversation-avatar,
.conversation-page .chat-window-avatar{overflow:hidden;display:grid;place-items:center;background:#f0eeff;color:#6254da;font-weight:900}
.conversation-page .conversation-avatar img,
.conversation-page .chat-window-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.conversation-page .conversation-source-tag{display:inline-flex;align-items:center;max-width:150px;padding:2px 6px;border:1px solid #e2e5eb;border-radius:999px;background:#fff;color:#646c7a;font-size:7px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.conversation-page .conversation-list-meta .conversation-source-tag{max-width:105px;background:#f9fafc}
.conversation-page .window-customer{color:#2d6f9f;background:#f0f8ff;border-color:#cde4f5;font-size:14px}.conversation-page .window-customer:hover{background:#e5f3ff;color:#205f8f;border-color:#b5d9ef}

.conversation-customer-modal[hidden]{display:none!important}
.conversation-customer-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px;direction:rtl}
.conversation-customer-modal-backdrop{position:absolute;inset:0;background:rgba(18,22,32,.46);backdrop-filter:blur(3px)}
.conversation-customer-modal-card{position:relative;width:min(760px,calc(100vw - 28px));max-height:min(780px,calc(100vh - 38px));overflow:hidden;background:#fff;border:1px solid #e3e6ee;border-radius:20px;box-shadow:0 28px 80px rgba(20,24,34,.25);display:flex;flex-direction:column}
.conversation-customer-modal-header{display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid #eceef3;background:linear-gradient(180deg,#fff,#fafbfe)}
.conversation-customer-modal-header>div{min-width:0;flex:1}.conversation-customer-modal-header b{display:block;font-size:14px;color:#202431}.customer-modal-subtitle{display:block;margin-top:4px;font-size:10px;color:#858c9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-modal-close{width:34px;height:34px;border:1px solid #e1e4eb;border-radius:10px;background:#fff;color:#6f7684;font-size:20px;line-height:1;cursor:pointer}.customer-modal-close:hover{background:#fff1f3;color:#b93349;border-color:#f1d3d9}
.conversation-customer-modal-body{padding:15px;overflow:auto;display:grid;gap:14px;background:#f8f9fc}
.customer-context-loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:9px;color:#838b99;font-size:11px}.customer-context-loading i{width:17px;height:17px;border:2px solid #ded9ff;border-top-color:#6d5dfc;border-radius:50%;animation:spin .7s linear infinite}
.customer-context-error,.customer-context-empty{padding:18px;text-align:center;border:1px dashed #dfe3eb;border-radius:12px;background:#fff;color:#858c9a;font-size:10px}
.customer-context-identity{display:grid;grid-template-columns:64px minmax(0,1fr);gap:13px;align-items:center;padding:14px;border:1px solid #e5e8ef;border-radius:16px;background:#fff}
.customer-context-avatar{width:64px;height:64px;border-radius:18px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dfc,#8c7fff);color:#fff;font-size:24px;font-weight:900}.customer-context-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.customer-context-copy{min-width:0;display:grid;gap:5px}.customer-context-copy>b{font-size:15px;color:#252a35}.customer-context-copy>span{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.customer-context-copy>small{color:#8a91a0;font-size:9px;word-break:break-all}.customer-profile-link{width:max-content;color:#5b50d8;font-size:10px;font-weight:800;text-decoration:none}.customer-profile-link:hover{text-decoration:underline}.customer-profile-unavailable{display:block!important;color:#9a7b48!important;font-size:9px!important;font-weight:700}
.customer-context-section{padding:13px;border:1px solid #e5e8ef;border-radius:16px;background:#fff;display:grid;gap:10px}.customer-context-section-head{display:flex;align-items:flex-start;gap:10px}.customer-context-section-head>div{min-width:0;flex:1}.customer-context-section-head b{display:block;font-size:12px;color:#282d39}.customer-context-section-head span{display:block;margin-top:3px;font-size:9px;color:#89909e;line-height:1.5}.customer-context-section-head>strong{padding:4px 8px;border-radius:999px;background:#f0eeff;color:#5d50d5;font-size:9px;white-space:nowrap}
.customer-current-page{display:grid;gap:4px;padding:10px 11px;border-radius:12px;background:#f4f9ff;border:1px solid #d8e9f7}.customer-current-page small{font-size:8px;color:#6f8293;font-weight:800}.customer-current-page b{font-size:10px;min-width:0;word-break:break-word}.customer-current-page a{color:#286e9e;text-decoration:none}.customer-current-page a:hover{text-decoration:underline}.customer-current-page>span{font-size:8px;color:#8a929f}
.customer-page-history,.customer-history-list{display:grid;gap:7px}.customer-page-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e7e9ef;border-radius:11px;background:#fbfcfe}.customer-page-row.is-current{border-color:#b8d8ef;background:#f3f9fd}.customer-page-row>div:first-child{min-width:0;display:grid;gap:2px}.customer-page-row a,.customer-page-row>div:first-child>span{font-size:10px;color:#333a47;text-decoration:none;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-page-row a:hover{text-decoration:underline}.customer-page-row small{font-size:7.5px;color:#9197a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:left}.customer-page-meta{display:grid;justify-items:end;gap:2px}.customer-page-meta b{font-size:9px;color:#5c50d5}.customer-page-meta span{font-size:7.5px;color:#8b92a0;white-space:nowrap}
.customer-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e6e9ef;border-radius:12px;background:#fbfcfe}.customer-history-main{min-width:0}.customer-history-title{display:flex;align-items:center;gap:7px}.customer-history-title>b{font-size:10px;color:#303642}.customer-history-main p{margin:5px 0 4px;font-size:9px;color:#5b6371;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-history-main small{font-size:7.7px;color:#8d94a1}.customer-history-open{border:1px solid #d8d2ff;border-radius:10px;background:#f3f1ff;color:#5e50d9;padding:7px 10px;font-size:8.5px;font-weight:900;cursor:pointer;white-space:nowrap}.customer-history-open:hover{background:#e9e5ff}

html[dir="ltr"] .conversation-customer-modal{direction:ltr}
html[dir="ltr"] .customer-page-row small{direction:ltr;text-align:left}
@media(max-width:700px){.conversation-customer-modal{padding:7px;align-items:end}.conversation-customer-modal-card{width:100%;max-height:calc(100dvh - 14px);border-radius:18px 18px 10px 10px}.conversation-customer-modal-header{padding:10px 11px}.conversation-customer-modal-body{padding:10px;gap:9px}.customer-context-identity{grid-template-columns:50px minmax(0,1fr);padding:10px}.customer-context-avatar{width:50px;height:50px;border-radius:14px}.customer-page-row,.customer-history-item{grid-template-columns:1fr}.customer-page-meta{justify-items:start}.customer-history-open{width:100%}}
.customer-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.customer-summary-grid>div{display:grid;gap:3px;padding:9px;border:1px solid #e7e9ef;border-radius:11px;background:#fbfcfe}.customer-summary-grid small{font-size:8px;color:#8a91a0;font-weight:700}.customer-summary-grid b{font-size:10px;color:#313744;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.customer-summary-grid{grid-template-columns:1fr 1fr}}

/* v5.7.1 — dynamic source filters + safe Facebook customer actions */
.conversation-page #conversationSourceFilter[hidden]{display:none!important}
.customer-context-copy .customer-profile-link{display:inline-flex;align-items:center;margin-inline-end:8px;margin-top:2px}
.customer-context-copy .customer-business-inbox-link{color:#1877f2}

/* v5.7.3 public chat header options menu */
.public-chat-head{position:relative;justify-content:space-between;overflow:visible;z-index:30;direction:ltr}.public-chat-brand{display:flex;align-items:center;gap:11px;min-width:0;flex:1;direction:ltr;text-align:left}.public-chat-brand>div:last-child{min-width:0;direction:rtl;text-align:right}.public-chat-menu-toggle{width:46px;height:42px;min-width:46px;border:2px solid rgba(109,93,252,.55);border:2px solid color-mix(in srgb,var(--widget-accent,var(--primary)) 65%,#fff);border-radius:14px;background:rgba(255,255,255,.14);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;cursor:pointer;padding:0;box-shadow:0 4px 14px rgba(20,30,60,.09);transition:.18s ease}.public-chat-menu-toggle:hover{transform:translateY(-1px);background:rgba(255,255,255,.25)}.public-chat-menu-toggle span{display:block;width:24px;height:3px;border-radius:999px;background:currentColor}.public-chat-menu{position:absolute;top:calc(100% - 4px);right:18px;left:auto;width:min(330px,calc(100vw - 36px));padding:8px;background:#fff;color:#191c22;border:1px solid #e6e8ee;border-radius:16px;box-shadow:0 22px 55px rgba(20,28,48,.22);z-index:100;direction:ltr;text-align:left}.public-chat-menu[hidden]{display:none}.public-chat-menu button{width:100%;border:0;background:transparent;color:#1d2027;display:flex;align-items:center;gap:14px;padding:12px 13px;border-radius:11px;cursor:pointer;font:600 14px/1.3 Arial,Tahoma,sans-serif;text-align:left}.public-chat-menu button:hover{background:#f4f5f8}.public-chat-menu button[hidden]{display:none}.public-chat-menu-icon{width:26px;min-width:26px;height:26px;display:grid;place-items:center;font-size:21px;line-height:1;color:#1d2027;font-weight:500}.public-chat-menu-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.embed-card .public-chat-menu-toggle{color:var(--widget-text,#1c2028)}.embed-card .public-chat-menu{color:#191c22}.public-chat-card:not(.embed-card) .public-chat-menu-toggle{color:#323744}@media(max-width:650px){.public-chat-menu{right:10px;left:auto;top:calc(100% - 2px);width:min(330px,calc(100vw - 20px))}.public-chat-menu-toggle{width:44px;height:40px;min-width:44px}.public-chat-menu button{font-size:15px;padding:13px}}


/* v5.9.5 — website widget follow-latest UX */
.public-chat-card{position:relative}
.public-jump-latest{position:absolute;left:50%;bottom:88px;transform:translateX(-50%);width:42px;height:42px;border:1px solid color-mix(in srgb,var(--widget-accent,var(--primary)) 34%,#dfe3eb);border-radius:50%;background:#fff;color:var(--widget-accent,var(--primary));display:grid;place-items:center;padding:0;z-index:24;box-shadow:0 9px 28px rgba(31,39,66,.18);transition:opacity .16s ease,transform .16s ease,box-shadow .16s ease}
.public-jump-latest[hidden]{display:none!important}
.public-jump-latest:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 12px 32px rgba(31,39,66,.24)}
.public-jump-latest svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.public-messages{scroll-behavior:auto;overscroll-behavior:contain}
@media(max-width:650px){.public-jump-latest{bottom:calc(92px + env(safe-area-inset-bottom));width:44px;height:44px}}

/* v6.0.20 - mobile chat viewport hardening */
@media (max-width:900px){
  body.public-chat-body{width:100%;min-height:100vh;min-height:100svh;background:#f8f9fc!important;overflow:hidden}
  body.public-chat-body.embedded-chat{background:#f8f9fc!important}
  .public-shell,.embedded-shell{display:block!important;width:100%!important;max-width:none!important;min-height:100vh!important;min-height:100svh!important;margin:0!important;padding:0!important}
  .public-chat-card,.embed-card{display:flex!important;visibility:visible!important;opacity:1!important;width:100%!important;max-width:none!important;height:100vh!important;height:100svh!important;min-height:100vh!important;min-height:100svh!important;max-height:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
  .public-messages{min-height:0!important}
}


/* v6.0.32 — generic agent attachment links */
.desktop-file-link,.chat-file-link{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin:6px 0;padding:8px 10px;border-radius:10px;background:rgba(99,82,246,.08);color:inherit;text-decoration:none;font-weight:600;overflow-wrap:anywhere}
.desktop-file-link:hover,.chat-file-link:hover{background:rgba(99,82,246,.14)}

/* v6.0.50.15 — full-size media, attachments, voice recorder and failed-send retry */
.conversation-page .desktop-image-link{display:block;max-width:100%;margin:4px 0 7px;padding:0;border:0;background:transparent;cursor:zoom-in}
.conversation-page .desktop-image-link img{display:block;width:auto;height:auto;max-width:min(420px,100%)!important;max-height:420px!important;border-radius:11px;object-fit:contain!important;background:#eef0f5}
.conversation-page .composer-row textarea{min-width:0}
.conversation-page .composer-attachment,.conversation-page .composer-voice{width:39px;height:39px;min-width:39px;border:1px solid #e1e4eb;border-radius:12px;background:#fff;color:#5c6472;display:grid;place-items:center;font-size:15px;padding:0}
.conversation-page .composer-voice.recording{background:#e6465c;color:#fff;border-color:#e6465c;animation:voicePulse 1.2s ease-in-out infinite}
.conversation-page .composer-attachment:disabled,.conversation-page .composer-voice:disabled{opacity:.4;cursor:not-allowed}
.conversation-page .composer-recording{display:flex;align-items:center;gap:7px;margin-top:7px;padding:7px 9px;border-radius:10px;background:#fff1f3;color:#aa2e42;font-size:8px}
.conversation-page .composer-recording[hidden]{display:none!important}
.conversation-page .composer-recording i{width:7px;height:7px;border-radius:50%;background:#e6465c;animation:voicePulse 1.2s ease-in-out infinite}
.conversation-page .composer-recording span{flex:1}.conversation-page .composer-recording-cancel{border:0;background:transparent;color:#aa2e42;font:inherit;font-weight:800}
.conversation-page .composer-recording-meter{flex:0 0 42px;height:6px;overflow:hidden;border-radius:99px;background:#e5dfe1}
.conversation-page .composer-recording-meter div{width:0;height:100%;border-radius:inherit;background:#6757f5;transition:width .12s linear}
.conversation-page .composer-recording[data-mic-signal="active"] .composer-recording-meter div{background:#168b62}
.conversation-page .composer-recording-mic-status{flex:0 0 auto;color:#7b7180;font-size:8px;white-space:nowrap}
.conversation-page .composer-recording[data-mic-signal="missing"] .composer-recording-mic-status{color:#b4233d;font-weight:800}
.conversation-page .composer-attachment-preview{margin:0 0 7px;padding:8px;border:1px solid #e4e6f0;border-radius:12px;background:linear-gradient(135deg,#fbfbff,#f5f4ff)}
.conversation-page .composer-attachment-preview[hidden]{display:none!important}
.conversation-page .composer-attachment-preview-card{display:flex;align-items:center;gap:9px;min-width:0}
.conversation-page .composer-attachment-visual{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:min(210px,42%);min-width:48px;min-height:52px;max-height:122px;overflow:hidden;border-radius:8px;background:#ecebfa}
.conversation-page .composer-attachment-visual img{display:block;width:auto;height:auto;max-width:100%;max-height:122px;object-fit:contain}
.conversation-page .composer-attachment-visual audio{display:block;width:100%;max-width:230px;height:36px}
.conversation-page .composer-attachment-file-icon{font-size:24px;padding:5px 12px}
.conversation-page .composer-attachment-details{display:flex;flex:1 1 auto;flex-direction:column;gap:3px;min-width:0;color:#555d70}
.conversation-page .composer-attachment-details b{overflow:hidden;color:#292e3b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.conversation-page .composer-attachment-details span{overflow:hidden;color:#858b9a;font-size:8px;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:right}
.conversation-page .composer-attachment-preview-actions{display:flex;flex:0 0 auto;align-items:center;gap:5px}
.conversation-page .composer-preview-send,.conversation-page .composer-preview-cancel{min-height:31px;border:0;border-radius:8px;padding:5px 9px;font:inherit;font-size:9px;font-weight:800;white-space:nowrap}
.conversation-page .composer-preview-send{background:#6757f5;color:#fff;box-shadow:0 5px 14px rgba(103,87,245,.18)}
.conversation-page .composer-preview-cancel{background:#ececf2;color:#626879}
.conversation-page .composer-preview-send:disabled,.conversation-page .composer-preview-cancel:disabled{opacity:.5;cursor:not-allowed}
.conversation-page .composer-uploading{display:block;background:#f1efff;color:#5b4dcc;border-radius:8px;padding:5px 7px;font-size:8px;margin-bottom:6px}
.conversation-page .desktop-audio-message{display:flex;flex-direction:column;gap:4px;min-width:min(300px,72vw);margin:6px 0}
.conversation-page .desktop-audio-message audio{display:block;width:100%;height:40px}.conversation-page .desktop-audio-message a{font-size:8px;color:inherit;text-decoration:underline;opacity:.8}
.conversation-page .desktop-delivery-error{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.conversation-page .desktop-delivery-error span{flex:1;min-width:180px}.desktop-retry-send{border:1px solid rgba(255,255,255,.45);border-radius:7px;background:rgba(255,255,255,.16);color:inherit;padding:5px 8px;font-size:9px;font-weight:800;white-space:nowrap}.desktop-retry-send:hover{background:rgba(255,255,255,.28)}.desktop-retry-send:disabled{opacity:.55;cursor:wait}
.conversation-image-viewer{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:24px}.conversation-image-viewer[hidden]{display:none!important}
.image-viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(12,16,26,.88)}
.conversation-image-viewer section{position:relative;z-index:1;display:flex;flex-direction:column;max-width:min(1100px,96vw);max-height:94vh;background:#111620;border-radius:16px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.5)}
.conversation-image-viewer header{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:8px 10px;background:#171d29}.conversation-image-viewer header a{color:#fff;text-decoration:none;font-size:12px}
.image-viewer-close{width:32px;height:32px;border:0;border-radius:9px;background:rgba(255,255,255,.1);color:#fff;font-size:20px}.conversation-image-viewer img{display:block;max-width:96vw;max-height:calc(94vh - 48px);width:auto;height:auto;object-fit:contain}
@keyframes voicePulse{50%{opacity:.45;transform:scale(.92)}}
@media(max-width:700px){.conversation-page .composer-attachment,.conversation-page .composer-voice{width:40px;height:40px;min-width:40px}.conversation-page .composer-recording{flex-wrap:wrap}.conversation-page .composer-recording span{flex:1 1 calc(100% - 22px);min-width:0}.conversation-page .composer-recording-meter{margin-inline-start:auto}.conversation-page .composer-attachment-preview-card{flex-wrap:wrap}.conversation-page .composer-attachment-preview-actions{width:100%;justify-content:flex-end}.conversation-page .composer-attachment-visual audio{width:100%;max-width:290px}.conversation-page .desktop-image-link img{max-width:min(330px,86vw)!important;max-height:65vh!important}.conversation-image-viewer{padding:8px}}


/* v6.0.45 — shared admin footer (hidden on the full-height conversations workspace) */
.admin-global-footer{max-width:1600px;margin:0 auto;padding:0 34px 24px;color:#8a91a0;font-size:11px;text-align:center;line-height:1.8}
.admin-global-footer:before{content:'';display:block;height:1px;background:linear-gradient(90deg,transparent,#e4e7ef 18%,#e4e7ef 82%,transparent);margin-bottom:16px}
.admin-global-footer a{color:#6657e8;font-weight:800;direction:ltr;display:inline-block;transition:.18s}
.admin-global-footer a:hover{color:#4f43c5;text-decoration:underline}
@media(max-width:900px){.admin-global-footer{padding:0 16px 20px;font-size:10px}}
/* Keep the copyright footer at the visual bottom on short admin pages. */
body:not(.conversation-page) .main-area{min-height:100vh;display:flex;flex-direction:column}
body:not(.conversation-page) .main-area>.content{width:100%}
body:not(.conversation-page) .admin-global-footer{margin-top:auto;width:100%}


/* v6.0.46 — public legal links */
.admin-global-footer-links{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:3px}
.admin-global-footer-links a{font-weight:700}
.login-legal-links{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:14px;color:#9aa0ad;font-size:12px}
.login-legal-links a{color:#6b5ce7;text-decoration:none;font-weight:700}
.login-legal-links a:hover{text-decoration:underline}

/* v6.0.47 global platform branding */
.brand-mark.brand-image{background:transparent!important;box-shadow:none!important;overflow:hidden;padding:0!important}
.brand-mark.brand-image img{display:block;width:100%;height:100%;object-fit:contain}
.platform-branding-grid{align-items:start}
.platform-branding-card{overflow:hidden}
.platform-branding-preview{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid #e8eaf1;border-radius:18px;background:linear-gradient(135deg,#fbfbff,#f6f7fb)}
.platform-logo-preview{width:132px;height:132px;min-width:132px;border-radius:24px;background:#111522;display:grid;place-items:center;padding:12px;box-shadow:0 14px 34px rgba(25,30,48,.12);overflow:hidden}
.platform-logo-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.platform-branding-preview-copy{display:flex;flex-direction:column;min-width:0}
.platform-branding-preview-copy small{color:#8a91a0;font-size:10px;font-weight:700}
.platform-branding-preview-copy strong{font-size:24px;margin:4px 0 7px;color:#202532;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.platform-branding-preview-copy span{color:#7b8291;font-size:11px;line-height:1.8}
.platform-logo-upload input[type=file]{padding:10px;background:#fafbfe}
.platform-reset-logo{padding:12px 14px!important;border:1px solid #e2e5ec;border-radius:12px;background:#fafbfe}
@media(max-width:700px){.platform-branding-preview{align-items:flex-start;flex-direction:column}.platform-logo-preview{width:108px;height:108px;min-width:108px}.platform-branding-preview-copy strong{font-size:20px}}
/* v6.0.50.4 — compact customer controls; preserve the message area. */
.conversation-page .customer-policy-controls{display:inline-flex;align-items:center;gap:4px;margin-inline-start:auto;flex:none}
.conversation-page .status-mini-action{width:25px;height:23px;min-width:25px;padding:0;border:1px solid #dddfe8;border-radius:999px;background:#fff;color:#5d6370;display:inline-grid;place-items:center;font-size:9px;font-weight:900;line-height:1;cursor:pointer;transition:.15s}
.conversation-page .status-mini-action:hover{background:#f0eeff;border-color:#cbc5ff;color:#5a4dd2}
.conversation-page .status-mini-action.customer-ai-toggle{width:30px;color:#5c50d5;background:#f3f1ff;border-color:#ded9ff}
.conversation-page .status-mini-action.customer-block-toggle{color:#a2384a;background:#fff5f6;border-color:#f0d7dc}
.conversation-page .status-mini-action.supervised-reply-start{color:#167c56;background:#effaf5;border-color:#caeadb;font-size:12px}
.conversation-page .status-mini-action.supervised-reply-start.active{color:#fff;background:#167c56;border-color:#167c56;box-shadow:0 0 0 2px rgba(22,124,86,.13)}
.conversation-page .status-mini-action:disabled{opacity:.5;cursor:not-allowed}
.conversation-page .supervised-composer-note{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;color:#167c56;font-size:12px;font-weight:700;line-height:1.6;text-align:center}
.conversation-page .cancel-supervised-reply{border:0;background:transparent;color:#a2384a;font:inherit;text-decoration:underline;cursor:pointer;padding:0}
.conversation-page .desktop-msg-datetime{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:650px){.conversation-page .window-status-line{gap:4px;padding:5px 7px}.conversation-page .status-mini-action{width:24px;height:22px;min-width:24px}.conversation-page .status-mini-action.customer-ai-toggle{width:28px}}

/* v6.0.50.5 — single-chat default, optional split view, clearer customer identity. */
.conversation-page .workspace-toolbar-actions{display:flex;align-items:center;gap:8px;flex:none}
.conversation-page .workspace-layout-toggle{height:34px;display:inline-flex;align-items:center;gap:7px;padding:4px 9px;border:1px solid #dfe3eb;border-radius:11px;background:#fff;color:#626977;cursor:pointer;transition:.16s;white-space:nowrap}
.conversation-page .workspace-layout-toggle:hover{border-color:#cfc9ff;background:#faf9ff;color:#5145c1}
.conversation-page .workspace-layout-toggle.active{border-color:#c8c1ff;background:#f1efff;color:#5547cc;box-shadow:inset 0 0 0 1px rgba(109,93,252,.06)}
.conversation-page .workspace-layout-icon{width:22px;height:22px;border-radius:7px;background:#f0f1f5;color:#747b89;display:grid!important;place-items:center;font-size:13px!important;line-height:1;margin:0!important}
.conversation-page .workspace-layout-toggle.active .workspace-layout-icon{background:#6d5dfc;color:#fff}
.conversation-page .workspace-layout-copy{display:grid!important;gap:0;text-align:right;margin:0!important;color:inherit!important}
.conversation-page .workspace-layout-copy b{font-size:9px;line-height:1.2;color:inherit}
.conversation-page .workspace-layout-copy small{font-size:7px;line-height:1.2;color:#969cab;font-weight:800}
.conversation-page .workspace-layout-toggle.active .workspace-layout-copy small{color:#6a5ddd}
.conversation-page .chat-window-header{height:64px;padding-block:8px}
.conversation-page .chat-window-avatar{width:38px;height:38px;border-radius:12px}
.conversation-page .chat-window-name{font-size:17px!important;font-weight:900!important;line-height:1.3!important;color:#202431;letter-spacing:-.25px}
.conversation-page .chat-window-subtitle{display:flex!important;align-items:center;gap:5px;margin-top:4px!important;font-size:9px!important;line-height:1.4!important}
.conversation-page .contact-identifier{display:inline-flex;align-items:center;padding:3px 7px;border-radius:7px;background:#f2f3f7;color:#596170;font-size:9px;font-weight:800;letter-spacing:.15px;direction:ltr;unicode-bidi:isolate}
.conversation-page .bot-profile-label{color:#8b92a0}
.conversation-page .conversation-list-top b{font-size:14px!important;font-weight:900;color:#262b37}
.conversation-page .conversation-external{font-size:10px!important;font-weight:700;color:#858c99}
.conversation-page .workspace-panels.two-panels .chat-window-name{font-size:14px!important}
@media(max-width:900px){.conversation-page .workspace-layout-toggle{display:none}.conversation-page .workspace-toolbar-actions{margin-inline-start:auto}}
@media(max-width:650px){.conversation-page .chat-window-name{font-size:15px!important}.conversation-page .chat-window-avatar{width:34px;height:34px}}
.badge.warning{background:#fff7e8;color:#9a6500}

/* v6.0.50.13 — Super Admin recharge-card register and creation modal */
.recharge-card-modal-open{overflow:hidden}
.recharge-card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff,#faf9ff)}
.recharge-card-toolbar p{color:var(--muted);font-size:11px;line-height:1.8}
.recharge-card-stats .stat-card{min-height:104px}
.recharge-card-register{padding:0;overflow:hidden}
.recharge-card-register-head{padding:22px 22px 0;margin-bottom:16px}
.recharge-card-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:0 22px 18px;border-bottom:1px solid var(--line)}
.recharge-card-filters input,.recharge-card-filters select{height:40px;border:1px solid #dfe3eb;border-radius:11px;background:#fff;padding:0 12px;outline:none}
.recharge-card-filters input{min-width:320px;flex:1}
.recharge-card-filters select{min-width:145px}
.recharge-card-filters input:focus,.recharge-card-filters select:focus{border-color:#9f95ff;box-shadow:0 0 0 4px rgba(109,93,252,.08)}
.recharge-card-table-wrap{border-radius:0}
.recharge-card-table{min-width:1390px}
.recharge-card-table th:first-child,.recharge-card-table td:first-child{padding-inline-start:22px}
.recharge-card-table th:last-child,.recharge-card-table td:last-child{padding-inline-end:22px}
.recharge-number-row{display:flex;align-items:center;gap:7px;direction:ltr;justify-content:flex-end}
.recharge-number{display:inline-block;color:#302779;background:#f1efff;border:1px solid #dfdbff;border-radius:9px;padding:7px 9px;font-size:11px;font-weight:800;letter-spacing:.045em;white-space:nowrap}
.recharge-number.is-legacy{color:#6f7581;background:#f5f6f8;border-color:#e6e8ed}
.recharge-copy-button{border:0;border-radius:8px;background:#ebe8ff;color:#5a4bd3;padding:7px 8px;font-size:8px;font-weight:900}
.recharge-copy-button:hover{background:#ded9ff}
.recharge-amount{font-size:14px;color:#242936}
.recharge-card-note{max-width:190px;white-space:normal;line-height:1.6}
.recharge-card-actions{flex-wrap:wrap;min-width:126px}
.recharge-card-actions form{margin:0}
.recharge-card-admin-modal{z-index:100000;direction:rtl}
.recharge-card-create-card{width:min(650px,100%);max-height:min(760px,calc(100vh - 36px));padding:24px}
.recharge-card-result-card{width:min(760px,100%);max-height:min(820px,calc(100vh - 36px));padding:24px}
.recharge-card-admin-modal .modal-head>div{min-width:0;flex:1}
.recharge-card-admin-modal .modal-head h3{font-size:18px}
.recharge-card-admin-modal .modal-head p{line-height:1.8}
.recharge-card-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:9px}
.field-error{color:#b82e43!important;font-weight:700!important}
.generated-recharge-list{display:grid;gap:10px;max-height:520px;overflow:auto;padding:2px}
.generated-recharge-item{display:grid;grid-template-columns:minmax(245px,1.1fr) minmax(250px,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid #e7e8f0;border-radius:15px;background:linear-gradient(145deg,#fff,#fafaff)}
.generated-recharge-item>div>small{display:block;color:var(--muted);font-size:8px;margin-bottom:5px}
.generated-recharge-item code{display:block;direction:ltr;text-align:left;color:#4f42c0;font-size:15px;font-weight:900;letter-spacing:.08em;white-space:nowrap}
.generated-recharge-item dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0}
.generated-recharge-item dl>div{min-width:0}
.generated-recharge-item dt{color:var(--muted);font-size:8px}
.generated-recharge-item dd{margin:2px 0 0;color:#333946;font-size:9px;font-weight:800;overflow-wrap:anywhere}
@media(max-width:700px){
  .recharge-card-toolbar{align-items:stretch;flex-direction:column}.recharge-card-toolbar .btn{width:100%}
  .recharge-card-filters input,.recharge-card-filters select{min-width:0;flex:1 1 100%}.recharge-card-filters .btn{flex:1}
  .recharge-card-create-card,.recharge-card-result-card{padding:18px;border-radius:19px}
  .recharge-card-create-card .form-grid{grid-template-columns:1fr}.recharge-card-create-card .form-grid .full{grid-column:auto}
  .recharge-card-modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .generated-recharge-item{grid-template-columns:1fr}.generated-recharge-item code{font-size:13px}.generated-recharge-item>button{width:100%}
}

/* v6.0.50.35 — conversation labels and pin controls */
.conversation-page .conversation-list-item.is-pinned{background:#fbfaff;border-color:#ddd8ff}
.conversation-pin-indicator{display:inline-flex;align-items:center;justify-content:center;margin-inline-end:4px;font-size:10px;vertical-align:1px}
.conversation-page .conversation-label-preview{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:4px;min-height:15px}
.conversation-page .conversation-label-chip{display:inline-flex;align-items:center;max-width:120px;padding:2px 6px;border:1px solid #e3defe;border-radius:999px;background:#f5f3ff;color:#5849c5;font-size:7px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-page .conversation-label-preview>small{color:#82899a;font-size:7px;font-weight:800}
.conversation-page .window-labels{color:#5c50ce;background:#f5f3ff;border-color:#e1dcff;font-size:12px}
.conversation-page .window-labels:hover{background:#ebe8ff;color:#493bc2;border-color:#cfc9ff}
.conversation-page .window-pin{color:#6f7787;background:#f7f8fa;border-color:#e3e6ec;font-size:13px}
.conversation-page .window-pin:hover,.conversation-page .window-pin.is-pinned{color:#5b4bc7;background:#f2efff;border-color:#d7d1ff}
.conversation-labels-modal[hidden]{display:none!important}
.conversation-labels-modal{position:fixed;inset:0;z-index:100010;display:grid;place-items:center;padding:18px;direction:rtl}
.conversation-labels-backdrop{position:absolute;inset:0;background:rgba(18,22,32,.46);backdrop-filter:blur(3px)}
.conversation-labels-card{position:relative;width:min(520px,calc(100vw - 28px));max-height:min(620px,calc(100vh - 36px));overflow:auto;background:#fff;border:1px solid #e3e6ee;border-radius:20px;box-shadow:0 28px 80px rgba(20,24,34,.25)}
.conversation-labels-header{display:flex;align-items:center;gap:12px;padding:15px 17px;border-bottom:1px solid #eceef3;background:linear-gradient(180deg,#fff,#fafbfe)}
.conversation-labels-header>div{min-width:0;flex:1}.conversation-labels-header b{display:block;font-size:15px;color:#202431}.conversation-labels-subtitle{display:block;margin-top:4px;font-size:10px;color:#858c9b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-labels-close{width:34px;height:34px;border:1px solid #e1e4eb;border-radius:10px;background:#fff;color:#6f7684;font-size:20px;line-height:1}
.conversation-labels-close:hover{background:#fff1f3;color:#b93349;border-color:#f1d3d9}
.conversation-labels-body{display:grid;gap:15px;padding:17px}
.conversation-labels-section{display:grid;gap:9px}.conversation-labels-section>b{font-size:11px;color:#464d5b}
.conversation-labels-selected,.conversation-labels-presets{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:34px}
.conversation-label-editor-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 7px 5px 10px;border:1px solid #dcd6ff;border-radius:999px;background:#f4f2ff;color:#5245bd;font-size:10px;font-weight:800}
.conversation-label-editor-chip button{width:18px;height:18px;border:0;border-radius:50%;background:#e5e0ff;color:#5e50c9;font-size:14px;line-height:1}
.conversation-label-editor-chip button:hover{background:#ddd6ff}
.conversation-labels-empty{color:#9298a5;font-size:10px}
.conversation-labels-entry{display:flex;gap:8px}.conversation-labels-input{flex:1;min-width:0;height:42px;border:1px solid #dfe3ec;border-radius:11px;background:#fff;padding:0 12px;font-size:11px;outline:none}.conversation-labels-input:focus{border-color:#8d80ff;box-shadow:0 0 0 3px rgba(109,93,252,.10)}
.conversation-labels-add,.conversation-label-preset{min-height:34px;border:1px solid #e1e4eb;border-radius:10px;background:#fff;color:#555d6b;padding:6px 11px;font-size:9px;font-weight:800}.conversation-labels-add{min-width:78px;background:#171923;border-color:#171923;color:#fff}.conversation-labels-add:hover{background:#2a2d39}
.conversation-label-preset:hover,.conversation-label-preset.active{border-color:#d5ceff;background:#f2efff;color:#5749c3}
.conversation-labels-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #eceef3}.conversation-labels-footer>small{color:#858c9b;font-size:9px}.conversation-labels-footer>div{display:flex;gap:7px}.conversation-labels-cancel,.conversation-labels-save{min-height:38px;border:0;border-radius:10px;padding:0 13px;font-size:10px;font-weight:800}.conversation-labels-cancel{background:#f0f1f5;color:#626978}.conversation-labels-save{background:#6d5dfc;color:#fff;box-shadow:0 6px 14px rgba(109,93,252,.19)}.conversation-labels-save:disabled{opacity:.55;cursor:wait}
html[dir="ltr"] .conversation-labels-modal{direction:ltr}
@media(max-width:900px){.conversation-labels-modal{padding:10px;align-items:end}.conversation-labels-card{width:100%;max-height:calc(100dvh - 18px);border-radius:17px 17px 10px 10px}.conversation-labels-body{padding:13px}.conversation-labels-footer{align-items:flex-start;flex-direction:column}.conversation-labels-footer>div{width:100%}.conversation-labels-cancel,.conversation-labels-save{flex:1}}
@media(max-width:1200px){.conversation-page .workspace-panels.two-panels .chat-window-actions{gap:3px}.conversation-page .workspace-panels.two-panels .window-action{width:23px;height:24px;border-radius:7px;font-size:10px}}
