:root{--primary:#7C3AED;--primary2:#A78BFA;--pink:#EC4899;--ink:#161827;--muted:#8b90a3;--line:#ececf6;--card:#fff;--bg:#f7f6ff;--soft:#f2ecff;--success:#22c55e;--danger:#ef4444;--warning:#f59e0b;--app-font:Vazirmatn,Tahoma,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:var(--app-font);background:radial-gradient(circle at 50% 0,#fff 0,#fbfaff 28%,#f2f0ff 70%,#fafafa 100%);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}.rtl{direction:rtl}.ltr{direction:ltr}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.app-shell{width:min(100%,560px);min-height:100vh;margin:0 auto;background:linear-gradient(180deg,#fff 0,#fff 58%,#fbfaff 100%);box-shadow:0 0 0 1px rgba(124,58,237,.06),0 28px 90px rgba(92,58,180,.13);padding-bottom:105px;position:relative;overflow:hidden}.app-shell:before{content:"";position:absolute;inset:-190px -80px auto -80px;height:330px;background:radial-gradient(circle at 78% 34%,rgba(236,72,153,.12),transparent 30%),radial-gradient(circle at 24% 42%,rgba(124,58,237,.15),transparent 35%);pointer-events:none}@media(min-width:1000px){.app-shell{margin-top:22px;margin-bottom:22px;border-radius:42px;min-height:calc(100vh - 44px)}}.container{padding:18px 20px 34px;position:relative}.ds-topbar{height:88px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:30;background:rgba(255,255,255,.74);backdrop-filter:blur(24px);border-bottom:1px solid rgba(238,238,247,.66)}.ds-brand{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;font-weight:950;color:var(--primary);letter-spacing:-1px;font-size:34px;white-space:nowrap}.ds-brand img{max-height:48px;max-width:190px;object-fit:contain}.ds-logo-mark{width:42px;height:42px;border-radius:16px;display:inline-grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--pink));box-shadow:0 14px 34px rgba(124,58,237,.26);font-size:28px}.icon-bubble,.logo-upload-mini{width:46px;height:46px;border:1px solid rgba(124,58,237,.13);border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.72);box-shadow:0 12px 24px rgba(124,58,237,.08);color:var(--primary)}.top-actions{display:flex;gap:8px;align-items:center}.lang-switch{display:flex;align-items:center;gap:2px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px;box-shadow:0 8px 22px rgba(20,24,40,.04)}.lang-switch button{border:0;background:transparent;border-radius:999px;padding:8px 10px;font-weight:800;color:#8b90a3;cursor:pointer}.lang-switch .active{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}.ds-bottom-nav{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);width:min(520px,calc(100% - 28px));height:76px;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:0 14px;border-radius:34px;background:rgba(255,255,255,.86);backdrop-filter:blur(28px);border:1px solid rgba(255,255,255,.86);box-shadow:0 14px 44px rgba(33,22,76,.16)}.ds-bottom-nav a{height:56px;display:grid;place-items:center;color:#232437;border-radius:24px;transition:.2s}.ds-bottom-nav a:hover{background:#f5f0ff;color:var(--primary)}.ds-bottom-nav .active{color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 12px 28px rgba(124,58,237,.32)}.ds-bottom-nav .create-plus{width:64px;height:64px;justify-self:center;margin-top:-26px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));border-radius:50%;box-shadow:0 16px 40px rgba(124,58,237,.38)}.ds-bottom-nav .create-plus svg{width:34px;height:34px}.ds-message{margin:12px 20px;padding:12px 14px;border-radius:20px;background:#f2ecff;color:#5b21b6;font-weight:800}.premium-stories{display:flex;gap:18px;overflow:auto;padding:14px 0 24px;scrollbar-width:none}.premium-stories::-webkit-scrollbar{display:none}.ds-story{min-width:94px;text-align:center}.story-ring{width:86px;height:86px;margin:0 auto 8px;border-radius:31px;padding:2px;background:linear-gradient(145deg,#fff,rgba(124,58,237,.3));box-shadow:0 18px 42px rgba(124,58,237,.12)}.story-inner{width:100%;height:100%;display:grid;place-items:center;border-radius:29px;background:linear-gradient(135deg,#f5f2ff,#fff);font-size:34px;overflow:hidden}.ds-story small{font-size:13px;font-weight:900;letter-spacing:-.2px}.hall-visual{position:relative}.hall-visual:before{content:"";position:absolute;inset:8px;border-radius:24px;background:radial-gradient(circle at 60% 35%,rgba(255,255,255,.9),transparent 40%);opacity:.8}.hall-car,.hall-real-estate,.hall-fashion,.hall-digital{background:linear-gradient(135deg,#ede7ff,#fff)}.page-title{font-size:28px;margin:10px 0 4px;letter-spacing:-.9px}.muted{color:var(--muted)}.card{border:1px solid rgba(226,223,239,.8);border-radius:30px;background:rgba(255,255,255,.86);box-shadow:0 20px 56px rgba(38,28,85,.08);padding:18px;margin-bottom:18px}.btn{border:0;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:15px 18px;font:inherit;font-weight:950;width:100%;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 15px 30px rgba(124,58,237,.25);cursor:pointer}.btn-outline{background:#fff;color:var(--primary);border:1px solid #ded5ff;box-shadow:none}.pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 14px;cursor:pointer}.input,input,select,textarea,.ds-input{width:100%;border:1px solid var(--line);border-radius:20px;padding:14px 15px;background:rgba(255,255,255,.9);font:inherit;outline:none}.input:focus,input:focus,select:focus,textarea:focus,.ds-input:focus{border-color:var(--primary2);box-shadow:0 0 0 5px rgba(124,58,237,.09)}label{font-size:13px;font-weight:900}.form-grid{display:grid;gap:13px}.ds-ad-card{position:relative;padding:14px;border:1px solid rgba(226,223,239,.8);border-radius:34px;background:rgba(255,255,255,.9);box-shadow:0 24px 70px rgba(47,34,98,.1);margin-bottom:24px}.ad-mini-head{height:42px;display:flex;align-items:center;gap:10px;margin-bottom:10px}.play-chip{background:rgba(20,24,40,.66);color:#fff;border-radius:999px;padding:7px 11px;font-weight:900;font-size:13px}.brand-dot{margin-inline-start:auto;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1f103e,#6d28d9);color:#fff;border:3px solid #fff;box-shadow:0 10px 24px rgba(124,58,237,.25);font-weight:950}.more-dot{font-size:28px;line-height:1;color:#49435c}.ds-media{display:block;position:relative;border-radius:30px;overflow:hidden}.ad-media{width:100%;aspect-ratio:4/5;max-height:620px;object-fit:cover;border-radius:30px;display:block;background:#15131e}.sparkle-chip,.mute-btn{position:absolute;z-index:2}.sparkle-chip{inset:auto auto 16px 16px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 12px 26px rgba(124,58,237,.3);font-size:22px}.mute-btn{bottom:16px;right:16px;border:0;width:44px;height:44px;border-radius:50%;background:rgba(17,24,39,.62);color:#fff}.carousel-dots{display:flex;justify-content:center;gap:8px;margin:14px 0}.carousel-dots i{width:8px;height:8px;border-radius:50%;background:#d7d7e4}.carousel-dots .active{background:var(--primary)}.social-strip{height:58px;border:1px solid var(--line);border-radius:25px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:rgba(255,255,255,.78);overflow:hidden}.social-strip a,.social-strip span{display:flex;align-items:center;justify-content:center;gap:6px;color:#262839;font-size:13px;border-inline-start:1px solid #eeeeF6;height:100%}.social-strip a:first-child,.social-strip span:first-child{border-inline-start:0}.social-strip svg{width:23px;height:23px}.social-strip b{font-weight:950}.ad-caption-mini{display:flex;gap:8px;align-items:center;margin:11px 6px 0;font-size:13px}.ad-caption-mini b{color:var(--primary);white-space:nowrap}.ad-caption-mini span{color:#626778;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-contact{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding:11px 13px;border-radius:20px;border:1px solid var(--line);background:#fff}.mini-contact b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f0eaff;color:var(--primary)}.empty-state{text-align:center;padding:38px 18px}.empty-orb{width:90px;height:90px;margin:0 auto 12px;border-radius:32px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:54px;box-shadow:0 18px 42px rgba(124,58,237,.25)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{border:1px solid var(--line);border-radius:20px;padding:12px;text-align:center;background:#fff}.stat b{font-size:17px}.hall-card{display:grid;grid-template-columns:116px 1fr;gap:14px;align-items:center;overflow:hidden}.hall-card img,.thumb{width:100%;aspect-ratio:1;border-radius:28px;object-fit:cover;background:linear-gradient(135deg,#eee7ff,#fff);display:grid;place-items:center;font-size:40px}.hall-card h2{margin:0 0 8px;font-size:21px}.badge{border-radius:999px;background:#eee7ff;color:var(--primary);padding:7px 12px;font-weight:900}.badge.green{background:#eafaf1;color:#159447}.badge.orange{background:#fff7e6;color:#d97706}.badge.red{background:#fff1f2;color:#e11d48}.auth-hero{text-align:center;padding:18px 0}.upload-circle{width:118px;height:118px;border-radius:42px;margin:0 auto 12px;background:linear-gradient(135deg,#f2ecff,#fff);box-shadow:0 18px 44px rgba(124,58,237,.13);display:grid;place-items:center;font-size:42px;color:var(--primary);border:1px solid #eee7ff}.explore-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.explore-grid a{display:block;aspect-ratio:1;border-radius:16px;overflow:hidden;background:#eee}.explore-grid img,.explore-grid video{width:100%;height:100%;object-fit:cover}.review-option ul{list-style:none;padding:0;margin:10px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.review-option li{border:1px solid var(--line);border-radius:18px;padding:12px;text-align:center}.contact-box{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:20px;padding:10px 12px;margin:12px 0}.caption{line-height:1.9}.counts{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;text-align:center}.count-item{font-size:13px}.count-item b{display:block;font-size:16px}.ad-head{display:flex;gap:10px;align-items:center}.avatar{width:46px;height:46px;border-radius:50%;background:#e8e4f8}.admin-page{background:#f8f7ff;min-height:100vh;font-family:var(--app-font);direction:rtl}.admin-shell{display:grid;grid-template-columns:86px 1fr;min-height:100vh}.admin-side{background:rgba(255,255,255,.84);border-left:1px solid #ece9f9;padding:20px 12px;display:flex;flex-direction:column;gap:14px;align-items:center;position:sticky;top:0;height:100vh}.admin-side .mini-brand{width:52px;height:52px;border-radius:20px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));font-size:30px}.admin-side a{width:52px;height:52px;border-radius:19px;display:grid;place-items:center;color:#47465a}.admin-side a.active,.admin-side a:hover{background:#efe9ff;color:var(--primary)}.admin-main{padding:28px;max-width:1280px;width:100%;margin:0 auto}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.admin-wordmark{font-size:34px;color:var(--primary);font-weight:950;display:flex;align-items:center;gap:8px}.admin-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.admin-stat{border:1px solid #ece9f9;border-radius:26px;background:#fff;padding:18px;box-shadow:0 18px 48px rgba(37,29,84,.06)}.admin-stat .icon{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:#f0eaff;color:var(--primary);margin-bottom:10px}.admin-stat h2{margin:6px 0 0;font-size:28px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.chart-placeholder{height:220px;border:1px solid #ece9f9;border-radius:28px;background:linear-gradient(180deg,#fff,#f7f3ff);position:relative;overflow:hidden}.chart-placeholder:after{content:"";position:absolute;left:8%;right:8%;bottom:46px;height:120px;background:linear-gradient(135deg,transparent 0 12%,var(--primary) 13% 16%,transparent 17% 28%,var(--primary2) 29% 32%,transparent 33% 46%,var(--primary) 47% 50%,transparent 51% 62%,var(--primary2) 63% 66%,transparent 67%);opacity:.5}.table{width:100%;border-collapse:collapse}.table th,.table td{border-bottom:1px solid #f0eef8;padding:14px;text-align:right}.branding-grid{display:grid;grid-template-columns:1.1fr 1.6fr;gap:18px}.upload-zone{border:2px dashed #c9b7ff;border-radius:30px;background:linear-gradient(180deg,#fff,#fbf9ff);min-height:360px;display:grid;place-items:center;text-align:center;padding:28px}.upload-art{width:110px;height:110px;border-radius:34px;margin:0 auto 18px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 18px 44px rgba(124,58,237,.25);font-size:46px}.logo-preview{border:1px solid #ece9f9;border-radius:30px;background:#fff;min-height:248px;display:grid;place-items:center;position:relative;overflow:hidden}.logo-preview:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#f1effa 1px,transparent 1px),linear-gradient(90deg,#f1effa 1px,transparent 1px);background-size:70px 70px;opacity:.55}.logo-preview img{max-height:120px;max-width:70%;position:relative;z-index:1}.preview-wordmark{position:relative;z-index:1;font-size:66px;font-weight:950;color:var(--primary);letter-spacing:-2px}.setting-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.setting-tile{border:1px solid #ece9f9;border-radius:24px;background:#fff;padding:16px}.swatches{display:flex;gap:8px;margin-top:12px}.swatches i{width:26px;height:26px;border-radius:50%;display:block}.logo-variants{margin-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.variant{border:1px solid #ece9f9;border-radius:25px;background:#fff;padding:16px;text-align:center;min-height:150px;display:grid;place-items:center}.variant img{max-width:85%;max-height:90px}.variant .placeholder{width:70px;height:70px;border-radius:24px;background:#f0eaff;color:var(--primary);display:grid;place-items:center;font-size:30px}.save-row{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.save-row .btn{max-width:230px}@media(max-width:760px){.admin-shell{display:block}.admin-side{height:auto;position:static;flex-direction:row;overflow:auto}.admin-cards{grid-template-columns:repeat(2,1fr)}.admin-grid,.branding-grid,.setting-tiles,.logo-variants{grid-template-columns:1fr}.container{padding-inline:16px}.hall-card{grid-template-columns:94px 1fr}.social-strip b{font-size:12px}.ds-brand{font-size:28px}.ds-logo-mark{width:36px;height:36px}.logo-upload-mini{display:none}}

.auth-mini{border:1px solid #eee;border-radius:999px;padding:8px 12px;text-decoration:none;color:#222;background:#fff;font-size:12px}
.story-inner img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.social-strip a{cursor:pointer}.social-strip a.is-liked svg{fill:#ff3040;stroke:#ff3040}.social-strip a.is-liked b{color:#ff3040}.social-strip a.is-saved svg{fill:var(--primary);stroke:var(--primary)}.social-strip a.is-shared{transform:scale(1.08);color:var(--primary)}
.status-chip{position:absolute;right:12px;bottom:12px;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);border-radius:999px;padding:6px 10px;font-size:11px;color:#333}.status-published{color:#16a34a}.status-under_review,.status-submitted{color:#f59e0b}.status-rejected{color:#ef4444}
.publish-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.btn-soft{background:#fff!important;color:var(--primary)!important;border:1px solid rgba(124,58,237,.25)!important}
.wallet-stat{text-decoration:none;color:inherit}.wallet-grid{grid-template-columns:repeat(4,1fr)}.grid-status{position:absolute;bottom:6px;right:6px;background:rgba(255,255,255,.86);border-radius:12px;padding:3px 7px;font-size:10px}.explore-grid a{position:relative;overflow:hidden}
@media(max-width:620px){.wallet-grid{grid-template-columns:repeat(2,1fr)}.publish-actions{grid-template-columns:1fr}}
/* round 3 targeted fixes */
html{scroll-behavior:auto!important}
body{font-family:var(--app-font),Vazirmatn,Inter,"Segoe UI Variable","Segoe UI",Tahoma,Arial,sans-serif!important;font-weight:600;letter-spacing:-.15px}
body.ltr{font-family:Inter,"Segoe UI Variable","Segoe UI",Arial,sans-serif!important;letter-spacing:0}
.ds-topbar{justify-content:space-between}.brand-side{display:flex;align-items:center;min-width:104px}.top-actions{min-width:104px;justify-content:flex-end}.auth-mini{width:46px;height:46px;border-radius:50%;padding:0;display:grid;place-items:center;color:var(--primary);border:1px solid rgba(124,58,237,.13);background:#fff;box-shadow:0 12px 24px rgba(124,58,237,.08)}.auth-mini svg{width:21px;height:21px}.icon-bubble{display:none!important}
.social-strip{grid-template-columns:repeat(5,1fr)}.social-strip a,.social-strip button,.social-strip span{appearance:none;-webkit-appearance:none;border:0;border-inline-start:1px solid #eeeef6;background:transparent;font:inherit;display:flex;align-items:center;justify-content:center;gap:6px;color:#262839;font-size:13px;height:100%;min-width:0;cursor:pointer}.social-strip a:first-child,.social-strip button:first-child,.social-strip span:first-child{border-inline-start:0}.social-strip button:disabled{opacity:.72}.social-strip .social-action.is-liked svg{fill:#ff3040;stroke:#ff3040}.social-strip .social-action.is-liked b{color:#ff3040}.social-strip .social-action.is-saved svg{fill:var(--primary);stroke:var(--primary)}.social-strip .social-action.is-shared{color:var(--primary);transform:scale(1.06)}
.more-dot{appearance:none;border:0;background:transparent;cursor:pointer;font:inherit;font-size:28px;line-height:1;color:#49435c}.more-menu{position:absolute;z-index:20;top:58px;inset-inline-end:18px;min-width:128px;border:1px solid var(--line);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-radius:18px;box-shadow:0 20px 50px rgba(40,30,90,.13);overflow:hidden}.more-menu a,.more-menu button{display:flex;width:100%;border:0;background:transparent;padding:12px 14px;font:inherit;font-size:13px;color:#27233a;text-align:start;cursor:pointer}.more-menu a:hover,.more-menu button:hover{background:#f3efff;color:var(--primary)}
.ds-toast{position:fixed;left:50%;bottom:104px;transform:translateX(-50%) translateY(18px);z-index:80;background:rgba(32,26,53,.92);color:#fff;padding:10px 16px;border-radius:999px;font-size:13px;font-weight:900;opacity:0;pointer-events:none;transition:.22s;box-shadow:0 14px 36px rgba(0,0,0,.18)}.ds-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.password-wrap{position:relative;display:block}.password-wrap input{padding-inline-end:48px!important}.password-eye{position:absolute;inset-block:7px;inset-inline-end:8px;width:38px;border:0;border-radius:14px;background:#f3efff;color:var(--primary);cursor:pointer}.password-eye.on{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}.status-chip{font-weight:900}.ad-caption-mini span{font-weight:500}.page-title,h1,h2,h3{font-weight:950;letter-spacing:-.7px}.ltr .page-title,.ltr h1,.ltr h2,.ltr h3{letter-spacing:-.2px}.minimal-title{display:flex;align-items:center;gap:10px;margin:12px 0 16px}.icon-title{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 14px 30px rgba(124,58,237,.23)}
.wallet-action-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.wallet-action-row .btn{min-height:54px}.compact-card h2{font-size:18px;margin:0 0 12px}.compact-list{display:grid;gap:10px}.compact-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:#fff}.compact-item small{color:var(--muted)}
/* round 4 targeted fixes only */
.sparkle-chip{display:none!important}
.media-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;border-radius:30px;scrollbar-width:none}.media-track::-webkit-scrollbar{display:none}.media-slide{position:relative;flex:0 0 100%;scroll-snap-align:center}.media-slide .ad-media{border-radius:30px}.carousel-dots:empty{display:none}.carousel-dots i{transition:.2s}.more-menu form{margin:0}.more-menu .danger{color:#ef4444}.nav-profile img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid currentColor}.comment-sheet[hidden],.explore-viewer[hidden]{display:none!important}.comment-sheet{position:fixed;inset:0;z-index:100}.comment-backdrop{position:absolute;inset:0;background:rgba(17,14,29,.38);backdrop-filter:blur(7px)}.comment-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);max-height:72vh;background:#fff;border-radius:30px 30px 0 0;box-shadow:0 -20px 70px rgba(20,15,45,.25);padding:10px 16px 16px;display:flex;flex-direction:column}.sheet-handle{width:48px;height:5px;border-radius:999px;background:#ddd7ea;margin:4px auto 12px}.comment-list{overflow:auto;display:grid;gap:10px;padding:4px 0 12px}.comment-item{display:flex;gap:10px;align-items:flex-start}.comment-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900;flex:0 0 32px}.comment-bubble{background:#f7f4ff;border:1px solid #eee7ff;border-radius:18px;padding:10px 12px;min-width:0}.comment-bubble b{display:block;font-size:12px;color:var(--primary);margin-bottom:2px}.comment-bubble span{font-size:13px}.comment-form{display:grid;grid-template-columns:1fr 48px;gap:8px;padding-top:10px;border-top:1px solid var(--line)}.comment-form input{height:48px;border-radius:999px}.comment-form button{border:0;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:18px;cursor:pointer}.explore-grid .explore-tile{appearance:none;border:0;padding:0;margin:0;display:block;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#eee;cursor:pointer}.explore-grid .explore-tile img,.explore-grid .explore-tile video{width:100%;height:100%;object-fit:cover;display:block}.explore-viewer{position:fixed;inset:0;z-index:90;background:rgba(7,5,15,.94);display:block}.viewer-close{position:fixed;top:14px;right:18px;z-index:92;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:34px;line-height:1;cursor:pointer}.viewer-feed{height:100vh;overflow-y:auto;scroll-snap-type:y mandatory;padding:0 max(12px,calc((100vw - 560px)/2));scrollbar-width:none}.viewer-feed::-webkit-scrollbar{display:none}.viewer-item{min-height:100vh;display:grid;place-items:center;scroll-snap-align:start;padding:68px 0 92px}.viewer-item .ds-ad-card{width:min(100%,560px);margin:0}.viewer-item .ad-media{max-height:70vh}.grid-status{display:none!important}
/* round 5 targeted fixes */
.admin-filter{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:end}.pay-row{display:grid;grid-template-columns:1fr 260px;gap:12px;margin-bottom:14px}.mini-bars{height:180px;display:flex;align-items:end;gap:14px;padding:24px;border-radius:24px;background:linear-gradient(180deg,#fff,#f7f2ff);border:1px solid #eee7ff}.mini-bars i{flex:1;border-radius:999px 999px 10px 10px;background:linear-gradient(180deg,var(--primary2),var(--primary));box-shadow:0 12px 26px rgba(124,58,237,.2)}.status-rings{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:20px}.status-rings b{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:22px;box-shadow:0 14px 32px rgba(124,58,237,.22)}.status-rings span{font-weight:900;color:#5e6174}.chat-card{padding:0;overflow:hidden}.chat-messages{height:58vh;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#fff,#fbf9ff)}.chat-msg{max-width:80%;align-self:flex-start;display:grid;gap:3px}.chat-msg.mine{align-self:flex-end}.chat-msg span{display:block;padding:11px 14px;border-radius:18px 18px 18px 5px;background:#f2edff;border:1px solid #ece4ff;font-weight:700;line-height:1.8}.chat-msg.mine span{border-radius:18px 18px 5px 18px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border:0}.chat-msg small{font-size:10px;color:var(--muted);padding-inline:6px}.chat-form{display:grid;grid-template-columns:1fr 52px;gap:8px;padding:12px;border-top:1px solid var(--line);background:#fff}.chat-form textarea{height:54px;min-height:54px;resize:none;border-radius:22px}.chat-form button{border:0;border-radius:20px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:19px;cursor:pointer}.emoji-wrap{position:relative;display:block}.emoji-palette{display:flex;gap:5px;align-items:center;padding:6px 4px 0}.comment-form .emoji-wrap{min-width:0}.comment-form{grid-template-columns:1fr 48px}.emoji-palette button{width:28px;height:28px;border:0;border-radius:10px;background:#f5f1ff;cursor:pointer;display:grid;place-items:center;font-size:15px;box-shadow:0 6px 14px rgba(124,58,237,.08)}.emoji-palette button:hover{background:#e9ddff;transform:translateY(-1px)}@media(max-width:760px){.admin-filter,.pay-row{grid-template-columns:1fr}.chat-messages{height:56vh}}
/* round6 targeted additions */
.admin-filter{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;margin:14px 0}.admin-filter input,.admin-filter select{border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff;font-family:var(--app-font)}
.prefs-card{display:grid;gap:12px}.prefs-card label{display:flex;align-items:center;gap:12px;justify-content:space-between;border:1px solid var(--line);border-radius:18px;padding:14px;background:#fff}.prefs-card label span{margin-inline-end:auto;font-weight:800}.prefs-card input[type=checkbox]{width:44px;height:24px;accent-color:var(--primary)}
.share-sheet{position:fixed;inset:0;z-index:1000}.share-panel{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);width:min(520px,94vw);background:#fff;border:1px solid var(--line);border-radius:28px 28px 22px 22px;padding:12px;box-shadow:0 24px 70px rgba(40,25,80,.20)}.share-title{text-align:center;font-weight:900;margin:8px}.share-users{display:flex;gap:12px;overflow:auto;padding:10px}.share-users button{min-width:76px;border:0;background:#fff;display:grid;gap:8px;justify-items:center;font-family:var(--app-font);cursor:pointer}.share-users span,.user-chips span{width:58px;height:58px;border-radius:22px;background:linear-gradient(135deg,var(--primary),var(--primary2));display:grid;place-items:center;color:#fff;font-weight:900;overflow:hidden}.share-users img,.user-chips img{width:100%;height:100%;object-fit:cover}.share-users b{font-size:.78rem;color:var(--ink)}
.chat-layout{padding-bottom:96px}.chat-users{margin-bottom:12px}.user-chips{display:flex;gap:10px;overflow:auto;padding:8px 2px}.user-chips a{text-decoration:none;color:var(--ink);display:grid;gap:5px;justify-items:center;min-width:72px}.user-chips b{font-size:.72rem;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-peer{padding:8px 10px;border-bottom:1px solid var(--line)}.chat-msg img,.chat-msg video{max-width:220px;border-radius:18px;display:block;margin:4px 0}.shared-ad{display:flex;gap:6px;text-decoration:none;color:var(--primary);background:#f4f0ff;border:1px solid #eadfff;border-radius:16px;padding:9px;margin-bottom:5px;max-width:240px}.file-chip{width:44px;height:44px;display:grid;place-items:center;border-radius:16px;background:#f4f0ff;color:var(--primary);font-weight:900;overflow:hidden}.file-chip input{position:absolute;opacity:0;pointer-events:none}.mini-contact{text-decoration:none;color:inherit}
@media(max-width:620px){.admin-filter{grid-template-columns:1fr 1fr}.admin-filter .btn{grid-column:1/-1}.share-panel{bottom:86px}.chat-msg img,.chat-msg video{max-width:180px}}
/* round7 targeted bug fixes: chat search/read ticks/composer */
.chat-search-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.chat-search-grid label{display:grid;gap:5px}.chat-search-grid span{font-size:11px;color:var(--muted);font-weight:900}.chat-search-grid input{height:42px;border:1px solid var(--line);border-radius:16px;padding:0 12px;background:#fff;font-family:var(--app-font);outline:0}.chat-search-grid input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(124,58,237,.08)}.user-chips small{font-size:10px;color:var(--muted);max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-card{display:flex;flex-direction:column;min-height:62vh}.chat-messages{flex:1;min-height:0;padding-bottom:14px}.chat-form{grid-template-columns:46px 1fr 52px;align-items:end;position:sticky;bottom:0;z-index:4;border-radius:0 0 28px 28px}.chat-form .emoji-wrap{min-width:0}.chat-form textarea{width:100%;height:48px;min-height:48px;max-height:112px;overflow:auto;padding:11px 13px}.chat-form .file-chip{grid-column:auto}.read-tick{font-style:normal;margin-inline-start:4px;color:#a9a4b9;font-weight:900;letter-spacing:-2px}.read-tick.seen{color:var(--primary)}.chat-msg small{display:flex;gap:4px;align-items:center}.chat-msg.mine small{justify-content:flex-end}.chat-empty{display:none}@media(max-width:620px){.chat-search-grid{grid-template-columns:1fr 1fr}.chat-form{grid-template-columns:44px 1fr 50px;padding:10px}.chat-layout{padding-left:14px;padding-right:14px}.chat-card{min-height:64vh}}
/* round7 withdrawal archive */
.pay-row-archive{grid-template-columns:1fr 1fr 210px 190px}.btn.soft{background:#f4f0ff!important;color:var(--primary)!important;box-shadow:none!important;border:1px solid #e7dcff!important}@media(max-width:900px){.pay-row-archive{grid-template-columns:1fr}}
/* round8 targeted chat fixes */
.chat-peer{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-peer-actions{display:flex;gap:6px}.chat-peer-actions button,.msg-menu-btn{border:0;background:#f4f0ff;color:var(--primary);border-radius:12px;min-width:34px;height:32px;cursor:pointer;font-weight:900}.chat-msg{position:relative}.msg-menu-btn{position:absolute;top:0;inset-inline-end:-38px;opacity:.72}.chat-msg.mine .msg-menu-btn{inset-inline-start:-38px;inset-inline-end:auto}.msg-menu{position:absolute;top:34px;inset-inline-end:-42px;z-index:7;background:#fff;border:1px solid var(--line);box-shadow:0 12px 32px rgba(48,36,88,.12);border-radius:16px;padding:6px;display:grid;gap:4px;min-width:96px}.chat-msg.mine .msg-menu{inset-inline-start:-42px;inset-inline-end:auto}.msg-menu button{border:0;background:transparent;border-radius:10px;padding:8px 10px;font-family:var(--app-font);font-weight:900;cursor:pointer;color:var(--ink);text-align:center}.msg-menu button:hover{background:#f4f0ff;color:var(--primary)}.chat-file-preview{display:flex;gap:8px;align-items:center;overflow:auto;padding:7px 2px 3px;max-width:100%;position:relative}.file-preview-item{width:58px;min-width:58px;height:58px;border-radius:16px;background:#f6f1ff;border:1px solid #e9ddff;display:grid;place-items:center;overflow:hidden;position:relative}.file-preview-item img,.file-preview-item video{width:100%;height:100%;object-fit:cover}.file-preview-item small{position:absolute;left:3px;right:3px;bottom:3px;background:rgba(255,255,255,.84);border-radius:8px;padding:1px 2px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.file-preview-clear{width:28px;height:28px;border-radius:999px;border:0;background:#1f1438;color:#fff;cursor:pointer;font-size:18px;line-height:1}.chat-blocked-note{text-align:center;padding:14px;color:#8b5cf6;background:#f6f1ff;font-weight:900;border-top:1px solid var(--line)}
@media(max-width:620px){.msg-menu-btn{inset-inline-end:-26px}.chat-msg.mine .msg-menu-btn{inset-inline-start:-26px}.msg-menu{inset-inline-end:-30px}.chat-msg.mine .msg-menu{inset-inline-start:-30px}.chat-file-preview{padding-top:6px}.file-preview-item{width:50px;min-width:50px;height:50px}}
/* round9 targeted fixes: locked chat menus, richer emoji panel, share chooser, retention tiles */
.msg-menu[hidden]{display:none!important}.msg-menu-btn{display:grid;place-items:center}.chat-msg.read-locked .msg-menu-btn{display:none!important}.emoji-grid{display:grid!important;grid-template-columns:repeat(8,30px);gap:7px;max-height:96px;overflow:auto;padding:8px 4px 2px}.emoji-grid button{width:30px!important;height:30px!important;border-radius:12px!important;background:linear-gradient(145deg,#fff,#f1eaff)!important;border:1px solid #eadfff!important;box-shadow:0 7px 18px rgba(124,58,237,.11)!important;font-size:17px!important}.share-search{width:calc(100% - 24px);margin:6px 12px 4px;height:42px;border:1px solid var(--line);border-radius:18px;padding:0 14px;background:#fbfaff;font-family:var(--app-font);outline:0}.share-search:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(124,58,237,.08)}.share-users button small{font-size:10px;color:var(--muted);max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.share-users button{border-radius:18px;padding:7px}.share-users button:hover{background:#f6f1ff}.retention-tiles input{margin-top:10px;text-align:center;font-weight:900}.chat-msg .msg-menu button[disabled]{opacity:.45;cursor:not-allowed}.chat-msg.mine[data-read="1"] .msg-menu-btn{display:none!important}
@media(max-width:620px){.emoji-grid{grid-template-columns:repeat(6,30px);max-height:88px}.share-users{display:grid;grid-template-columns:repeat(4,1fr);max-height:260px;overflow:auto}.share-users button{min-width:0}}
/* round10 targeted: merged public home/explore search */
.home-search{display:grid;grid-template-columns:1fr 1fr 1fr 52px;gap:8px;margin:0 0 18px;padding:10px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 10px 34px rgba(124,58,237,.06)}
.home-search input{min-width:0;height:46px;border:1px solid var(--line);border-radius:18px;padding:0 12px;background:#fff;font:inherit;font-weight:800;color:var(--ink)}
.home-search button{border:0;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:24px;cursor:pointer}
@media(max-width:520px){.home-search{grid-template-columns:1fr 1fr}.home-search button{grid-column:span 2}}
.form-grid p label:has(+ input[required])::after,.form-grid p label:has(+ select[required])::after{content:' *';color:#ef4444;font-weight:900}

/* round11 targeted fixes */
.ds-bottom-nav.nav-four{grid-template-columns:repeat(4,1fr)}
.saved-top svg{width:20px;height:20px}
.premium-stories{justify-content:center;text-align:center}
@media(max-width:560px){.premium-stories{justify-content:flex-start}}
.saved-grid{margin-top:14px}.saved-grid .empty-state{grid-column:1/-1}
.form-grid .emoji-grid{margin-top:6px;grid-template-columns:repeat(8,30px);max-height:112px;overflow:auto}
@media(max-width:520px){.form-grid .emoji-grid{grid-template-columns:repeat(6,30px)}}

/* round12 targeted fixes: chat room starts only with current conversation, admin video limits */
.chat-layout .minimal-title{margin-bottom:10px}
.chat-layout .chat-users + .chat-card{margin-top:12px}
.chat-card .muted:only-child{background:transparent!important}
.retention-tiles{grid-template-columns:repeat(5,1fr)}
@media(max-width:900px){.retention-tiles{grid-template-columns:1fr 1fr}.retention-tiles .variant{min-height:112px}}

/* round13: expandable ad captions */
.ad-caption-mini{align-items:flex-start;flex-wrap:wrap;line-height:1.9}
.ad-caption-mini .ad-caption-text{flex:1;min-width:0;white-space:normal;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;max-height:1.9em;color:#626778}
.ad-caption-mini.is-expanded .ad-caption-text{-webkit-line-clamp:unset;max-height:none;overflow:visible}
.caption-more-btn{border:0;background:transparent;color:var(--primary);font-weight:950;cursor:pointer;padding:0 2px;font-size:13px;line-height:1.9;font-family:var(--app-font)}
.caption-more-btn:hover{text-decoration:underline}

/* round14: keep long captions/emoji inside ad card */
.ds-ad-card{overflow:hidden}
.ad-caption-mini{
  width:100%;
  max-width:100%;
  min-width:0;
  display:flex;
  align-items:flex-start;
  flex-wrap:nowrap;
  gap:8px;
  overflow:hidden;
  padding-inline:0;
}
.ad-caption-mini b{
  flex:0 0 auto;
  max-width:35%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ad-caption-mini .ad-caption-text{
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
  max-height:1.9em;
  overflow:hidden;
  text-overflow:clip;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:break-word;
  word-wrap:break-word;
  line-break:anywhere;
  direction:rtl;
  unicode-bidi:plaintext;
}
.ad-caption-mini.is-expanded{
  flex-wrap:wrap;
  overflow:visible;
}
.ad-caption-mini.is-expanded .ad-caption-text{
  flex-basis:100%;
  width:100%;
  max-width:100%;
  -webkit-line-clamp:unset;
  max-height:none;
  overflow:visible;
  display:block;
  white-space:pre-wrap!important;
}
.caption-more-btn{
  flex:0 0 auto;
  white-space:nowrap;
}

/* round15: smarter bigger header logo */
.ds-brand{
  height:var(--header-logo-height,62px);
  min-width:min(var(--header-logo-width,190px),42vw);
  max-width:46vw;
  justify-content:center;
}
.ds-brand img{
  display:block;
  width:min(var(--header-logo-width,190px),42vw)!important;
  height:var(--header-logo-height,62px)!important;
  max-width:42vw!important;
  max-height:var(--header-logo-height,62px)!important;
  object-fit:contain;
  object-position:center center;
  image-rendering:auto;
}
@media(max-width:430px){
  .ds-brand{min-width:min(var(--header-logo-width,178px),38vw);max-width:40vw}
  .ds-brand img{width:min(var(--header-logo-width,178px),38vw)!important;max-width:38vw!important}
}
.admin-logo-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.admin-logo-url{margin-top:8px}

/* round16 targeted fixes: earning responsibility sticky card + review option alignment */
.earning-page{padding-top:10px}.earning-sticky-card{position:sticky;top:92px;z-index:24;margin:0 0 18px;border:1px solid rgba(226,223,239,.86);border-radius:28px;background:rgba(255,255,255,.88);backdrop-filter:blur(24px);box-shadow:0 18px 45px rgba(61,45,115,.10);padding:14px 14px 13px}.earning-title-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:12px}.earning-title-row h1{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.7px}.earning-title-row .icon-title{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 12px 25px rgba(124,58,237,.22);font-weight:950}.earning-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.earning-stat{border:1px solid var(--line);background:rgba(255,255,255,.92);border-radius:18px;text-align:center;padding:8px 5px;min-height:54px}.earning-stat b{display:block;font-size:15px;line-height:1.25}.earning-stat span{display:block;font-size:12px;font-weight:900;color:#343447}.earning-done-form{margin-top:10px}.earning-done-btn{background:linear-gradient(135deg,#16a34a,#22c55e)!important;box-shadow:0 14px 30px rgba(34,197,94,.25)!important;animation:delsaDonePulse 1.25s ease-in-out infinite}.earning-feed .ds-ad-card:first-child{margin-top:4px}@keyframes delsaDonePulse{0%,100%{filter:brightness(1);transform:scale(1)}50%{filter:brightness(1.12);transform:scale(1.015)}}@media(max-width:620px){.earning-sticky-card{top:86px;border-radius:24px;padding:12px}.earning-title-row h1{font-size:22px}.earning-title-row .icon-title{width:38px;height:38px}.earning-stat{padding:7px 4px}.earning-stat b{font-size:14px}.earning-stat span{font-size:11px}.earning-done-btn{padding:12px 14px;border-radius:17px}}
.review-page .review-main-title{font-size:26px;margin:10px 0 14px;text-align:right}.review-ad-summary h2{font-size:18px;margin:0 0 12px;text-align:right}.review-form{display:grid;gap:12px}.review-question-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,1.25fr);gap:14px;align-items:center;margin-bottom:0;padding:14px}.review-question-text{font-size:15px;line-height:1.9;text-align:right}.review-options-inline{width:100%;min-width:0}.review-options-inline ul{list-style:none!important;padding:0!important;margin:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.review-options-inline li{border:1px solid var(--line)!important;border-radius:16px!important;padding:0!important;text-align:center!important;background:#fff;overflow:hidden}.review-options-inline label{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%;min-height:46px;padding:10px 8px!important;cursor:pointer;font-size:13px;font-weight:950}.review-options-inline input[type="radio"]{width:17px!important;height:17px!important;margin:0!important;accent-color:var(--primary)}.review-warning{background:#fff1f2!important;color:#9f1239;font-weight:900;text-align:right}@media(max-width:620px){.review-question-row{grid-template-columns:1fr;gap:10px}.review-options-inline ul{grid-template-columns:repeat(3,minmax(0,1fr))!important}.review-options-inline label{font-size:12px;min-height:42px}}

/* round17 targeted fix: responsibility card stays visible and Done is locked until all work is done */
.earning-page{padding-top:10px}.earning-sticky-spacer{height:188px}.earning-sticky-card{position:fixed!important;top:94px!important;left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 34px));z-index:35;margin:0!important;border-radius:22px!important;padding:10px 12px 11px!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(24px);box-shadow:0 18px 45px rgba(61,45,115,.13)!important}.earning-title-row{margin-bottom:8px!important}.earning-title-row h1{font-size:20px!important}.earning-title-row .icon-title{width:34px!important;height:34px!important;border-radius:14px!important}.earning-mini-stats{grid-template-columns:repeat(5,1fr)!important;gap:6px!important}.earning-stat{min-height:48px!important;padding:7px 3px!important}.earning-stat b{font-size:13px!important}.earning-stat span{font-size:10px!important}.earning-stat.task-ok{border-color:rgba(34,197,94,.45)!important;background:#f0fdf4!important;color:#15803d!important}.earning-done-form{margin-top:8px!important}.earning-done-btn{padding:10px 14px!important;border-radius:15px!important}.earning-sticky-card.is-not-ready .earning-done-btn{background:linear-gradient(135deg,#ef4444,#f97316)!important;box-shadow:0 12px 26px rgba(239,68,68,.24)!important;animation:none!important}.earning-sticky-card.is-ready .earning-done-btn{background:linear-gradient(135deg,#16a34a,#22c55e)!important;box-shadow:0 14px 30px rgba(34,197,94,.28)!important;animation:delsaDonePulse .95s ease-in-out infinite!important}.earning-warn{display:block;margin-top:7px;text-align:center;color:#dc2626;font-weight:950;font-size:12px}.earning-warn[hidden]{display:none!important}@media(max-width:620px){.earning-sticky-card{top:88px!important;width:min(528px,calc(100% - 26px));padding:9px 10px!important}.earning-sticky-spacer{height:182px}.earning-title-row h1{font-size:19px!important}.earning-stat b{font-size:12px!important}.earning-stat span{font-size:9px!important}.earning-mini-stats{gap:5px!important}}


/* round18: smaller higher responsibility card + admin-configurable option count + review option order */
.earning-sticky-card{
  top:72px!important;
  width:min(430px,calc(100% - 72px))!important;
  padding:7px 9px 8px!important;
  border-radius:19px!important;
  box-shadow:0 12px 34px rgba(61,45,115,.11)!important;
}
.earning-sticky-spacer{height:132px!important}
.earning-title-row{margin-bottom:6px!important;gap:7px!important}
.earning-title-row h1{font-size:16px!important;letter-spacing:-.3px!important}
.earning-title-row .icon-title{width:29px!important;height:29px!important;border-radius:12px!important;font-size:13px!important}
.earning-mini-stats{grid-template-columns:repeat(auto-fit,minmax(56px,1fr))!important;gap:5px!important}
.earning-stat{min-height:39px!important;padding:4px 2px!important;border-radius:14px!important}
.earning-stat b{font-size:11px!important;line-height:1.1!important}
.earning-stat span{font-size:8.5px!important;line-height:1.15!important}
.earning-done-form{margin-top:5px!important}.earning-done-btn{padding:7px 10px!important;min-height:34px!important;border-radius:13px!important;font-size:13px!important}.earning-warn{font-size:10px!important;margin-top:4px!important}.earning-feed{padding-top:0!important}
@media(max-width:620px){.earning-sticky-card{top:70px!important;width:min(430px,calc(100% - 54px))!important;padding:7px 8px!important}.earning-sticky-spacer{height:128px!important}.earning-title-row h1{font-size:15px!important}.earning-stat span{font-size:8px!important}}
.review-page .review-ad-summary video.ad-media{autoplay:true}.review-question-row{display:block!important;padding:13px!important}.review-question-text{margin-bottom:10px!important;font-size:14px!important;line-height:1.8!important}.review-options-inline ul{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}.review-options-inline li{border-radius:14px!important}.review-options-inline label{min-height:44px!important;border-radius:14px!important}.review-options-inline li:nth-child(1){border-color:rgba(34,197,94,.35)!important;background:#f0fdf4!important}.review-options-inline li:nth-child(2){border-color:rgba(245,158,11,.35)!important;background:#fffbeb!important}.review-options-inline li:nth-child(3){border-color:rgba(239,68,68,.35)!important;background:#fff1f2!important}

/* round19 targeted fixes: slimmer responsibility strip + review advertiser link + share sent state */
.earning-sticky-card{
  top:58px!important;
  width:min(390px,calc(100% - 104px))!important;
  padding:5px 7px!important;
  border-radius:16px!important;
  box-shadow:0 10px 28px rgba(61,45,115,.11)!important;
}
.earning-sticky-spacer{height:96px!important}
.earning-title-row{margin-bottom:3px!important;gap:5px!important;justify-content:center!important}
.earning-title-row h1{font-size:13px!important;line-height:1.1!important}
.earning-title-row .icon-title{width:22px!important;height:22px!important;border-radius:9px!important;font-size:10px!important}
.earning-mini-stats{grid-template-columns:repeat(auto-fit,minmax(40px,1fr))!important;gap:3px!important}
.earning-stat{min-height:27px!important;padding:2px 1px!important;border-radius:10px!important}
.earning-stat b{font-size:8.8px!important;line-height:1!important}
.earning-stat span{font-size:7px!important;line-height:1.05!important;font-weight:950!important}
.earning-done-form{margin-top:3px!important}.earning-done-btn{padding:5px 8px!important;min-height:26px!important;border-radius:10px!important;font-size:11px!important}.earning-warn{font-size:9px!important;margin-top:2px!important}
@media(max-width:620px){.earning-sticky-card{top:54px!important;width:min(360px,calc(100% - 114px))!important;padding:4px 6px!important}.earning-sticky-spacer{height:88px!important}.earning-title-row h1{font-size:12px!important}.earning-stat span{font-size:6.5px!important}}
.review-owner-box{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0;direction:ltr}.review-owner-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(124,58,237,.18);background:#f5f0ff;color:var(--primary);border-radius:999px;padding:8px 12px;font-weight:950}.review-chat-link{width:36px;height:36px;border-radius:14px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(124,58,237,.22)}.share-users button.share-sent{background:#f0fdf4!important;border-radius:18px}.share-users button.share-sent span{background:linear-gradient(135deg,#16a34a,#22c55e)!important}

/* Round 20 wallet dashboard table */
.wallet-title h1{font-size:28px!important;font-weight:900!important;}
.wallet-summary .stat b{font-size:19px;}
.wallet-table-card{padding:16px!important;}
.table-headline{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:12px;}
.table-headline h2{margin:0;font-size:20px;font-weight:900;color:#151124;}
.table-headline small{color:#8d849c;font-weight:700;font-size:12px;}
.wallet-table-wrap{width:100%;overflow-x:auto;border-radius:22px;border:1px solid rgba(122,80,255,.12);}
.wallet-ad-table{width:100%;border-collapse:separate;border-spacing:0;min-width:520px;background:#fff;direction:rtl;}
.wallet-ad-table th,.wallet-ad-table td{padding:12px 10px;text-align:center;border-bottom:1px solid rgba(122,80,255,.09);font-size:13px;vertical-align:middle;}
.wallet-ad-table th{font-weight:900;color:#776d86;background:linear-gradient(180deg,#fbf9ff,#fff);position:sticky;top:0;z-index:1;}
.wallet-ad-table tr:last-child td{border-bottom:none;}
.ad-mini-title{display:flex;flex-direction:column;gap:3px;text-align:right;}
.ad-mini-title b{font-size:13px;color:#191327;}
.ad-mini-title small{font-size:11px;color:#9b94a9;}
.review-progress{display:flex;align-items:center;justify-content:center;gap:5px;direction:ltr;}
.review-dot{width:11px;height:11px;border-radius:999px;background:#eee6ff;border:1px solid #d8ccff;display:inline-block;}
.review-dot.on{background:#8654ff;box-shadow:0 0 0 4px rgba(134,84,255,.12);}
.review-progress small{font-size:11px;color:#776d86;font-weight:800;}
.mini-btn{border:0;border-radius:999px;background:#efe8ff;color:#7040e8;font-weight:900;padding:8px 12px;cursor:pointer;white-space:nowrap;}
.mini-btn:hover{filter:brightness(.98);}
.review-detail-row td{background:#fbf9ff!important;padding:0!important;}
.review-detail-box{padding:12px;display:grid;gap:10px;}
.anon-review-card{border:1px solid rgba(122,80,255,.13);background:#fff;border-radius:18px;padding:10px;}
.anon-review-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;color:#716684;font-weight:900;}
.anon-review-head b{color:#6f42e8;}
.answer-chip-grid{display:grid;grid-template-columns:1fr;gap:7px;}
.answer-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:14px;padding:8px 10px;font-size:12px;font-weight:800;}
.answer-chip span{color:#342a45;text-align:right;line-height:1.6;}
.answer-chip b{white-space:nowrap;}
.answer-chip.score-good{background:#ecfff5;color:#169454;}
.answer-chip.score-medium{background:#fff7df;color:#b06a00;}
.answer-chip.score-bad{background:#fff0f0;color:#d93636;}
@media(max-width:560px){.table-headline{align-items:flex-start;flex-direction:column}.wallet-ad-table{min-width:480px}.wallet-ad-table th,.wallet-ad-table td{padding:10px 8px;font-size:12px}.wallet-table-card{padding:12px!important}}

/* round21 targeted: resume flow, unread chat badge, thinner top responsibility strip */
.resume-flow-pill{position:fixed;top:86px;left:50%;transform:translateX(-50%);z-index:80;display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(239,68,68,.18);background:linear-gradient(135deg,#fff,#fff5f5);color:#dc2626;text-decoration:none;border-radius:999px;padding:8px 13px;box-shadow:0 10px 28px rgba(239,68,68,.14);font-size:12px;font-weight:950;white-space:nowrap}.resume-flow-pill span{width:22px;height:22px;border-radius:999px;background:#fee2e2;display:grid;place-items:center}.resume-flow-pill:hover{filter:brightness(.99)}
.ds-bottom-nav a.chat-nav-link{position:relative}.chat-unread-badge{position:absolute;top:7px;right:12px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:1000;line-height:18px;text-align:center;box-shadow:0 0 0 3px #fff;direction:ltr}
.earning-page{padding-top:0!important}.earning-sticky-spacer{height:52px!important}.earning-sticky-card{top:0!important;width:min(430px,calc(100% - 34px))!important;padding:4px 7px!important;border-radius:0 0 16px 16px!important;border-top:0!important;box-shadow:0 7px 22px rgba(61,45,115,.10)!important;background:rgba(255,255,255,.94)!important}.earning-title-row{display:none!important}.earning-mini-stats{grid-template-columns:repeat(auto-fit,minmax(40px,1fr))!important;gap:3px!important;margin:0!important}.earning-stat{min-height:24px!important;padding:2px 1px!important;border-radius:9px!important}.earning-stat b{font-size:8.5px!important}.earning-stat span{font-size:6.5px!important}.earning-done-form{margin-top:3px!important}.earning-done-btn{min-height:24px!important;padding:3px 8px!important;border-radius:9px!important;font-size:10.5px!important}.earning-warn{font-size:8.5px!important;margin-top:2px!important}@media(max-width:620px){.resume-flow-pill{top:78px;font-size:11px;padding:7px 10px}.earning-sticky-card{top:0!important;width:min(430px,calc(100% - 22px))!important}.earning-sticky-spacer{height:50px!important}.chat-unread-badge{top:5px;right:10px}}

/* round23: make shared ads visible in chat inbox and rooms */
.chat-section-title{font-weight:950;color:var(--ink);padding:4px 8px 10px;text-align:right}.recent-room-list{display:grid;gap:8px}.recent-room-item{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;gap:2px 10px;align-items:center;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:8px;background:#fff}.recent-room-item:hover{background:#faf7ff}.recent-avatar{grid-row:1/3;width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,var(--primary),var(--primary2));display:grid;place-items:center;color:#fff;font-weight:950;overflow:hidden}.recent-avatar img{width:100%;height:100%;object-fit:cover}.recent-room-item b{font-size:13px}.recent-room-item small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shared-ad{background:linear-gradient(135deg,#f6f0ff,#fff)!important;border:1px solid rgba(124,58,237,.16)!important;color:var(--ink)!important}.shared-ad b{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;border-radius:12px;width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto}.shared-ad span{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* round24: resume pill only as a small top-corner helper */
.resume-flow-pill{
  top:96px!important;
  left:auto!important;
  right:max(14px,calc((100vw - 560px)/2 + 14px))!important;
  transform:none!important;
  padding:6px 9px!important;
  font-size:10.5px!important;
  border-radius:999px!important;
  z-index:82!important;
  box-shadow:0 8px 22px rgba(239,68,68,.12)!important;
}
.resume-flow-pill span{width:18px!important;height:18px!important;font-size:11px!important}
@media(max-width:620px){
  .resume-flow-pill{top:82px!important;right:12px!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

/* round25: targeted fixes requested by user */
.profile-edit-icon{display:inline-grid;place-items:center;width:34px;height:34px;margin-inline-start:8px;border-radius:14px;background:#f4f0ff;color:var(--primary);text-decoration:none;font-size:15px;vertical-align:middle;box-shadow:0 8px 18px rgba(124,58,237,.10)}
.profile-edit-icon:hover{background:#eadfff}
/* keep the three-dot visible inside the chat bubble instead of outside the screen */
.chat-msg{padding-inline:34px 6px!important;max-width:86%!important}.chat-msg.mine{padding-inline:6px 34px!important}.msg-menu-btn{top:6px!important;inset-inline-end:0!important;inset-inline-start:auto!important;z-index:8!important;opacity:.92!important;background:rgba(255,255,255,.90)!important;box-shadow:0 6px 14px rgba(48,36,88,.08)!important}.chat-msg.mine .msg-menu-btn{inset-inline-start:0!important;inset-inline-end:auto!important}.msg-menu{top:42px!important;inset-inline-end:0!important;inset-inline-start:auto!important;z-index:22!important}.chat-msg.mine .msg-menu{inset-inline-start:0!important;inset-inline-end:auto!important}.chat-msg.mine[data-read="1"] .msg-menu-btn{display:grid!important}.chat-msg.read-locked .msg-menu-btn{display:grid!important}.msg-menu button[data-reply-message]{color:var(--primary)!important}.reply-preview{display:grid;gap:2px;border-inline-start:3px solid var(--primary);background:rgba(124,58,237,.08);border-radius:14px;padding:7px 10px;margin:0 0 4px;max-width:240px}.reply-preview b{font-size:11px;color:var(--primary);font-weight:950}.reply-preview span{font-size:11px;color:#625874;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-msg.mine .reply-preview{justify-self:end}.reply-compose{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f4f0ff;border:1px solid #eadfff;border-radius:16px;padding:6px 8px;margin-bottom:6px}.reply-compose span{font-size:11px;color:#625874;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-compose button{width:26px!important;height:26px!important;min-width:26px;border-radius:999px!important;background:#fff!important;color:#7c3aed!important;font-size:16px!important;line-height:1!important}.chat-msg small em{font-style:normal;font-size:9px;color:#9f97ad;margin-inline-end:4px}
@media(max-width:620px){.chat-msg{padding-inline:30px 4px!important;max-width:90%!important}.chat-msg.mine{padding-inline:4px 30px!important}.msg-menu{min-width:88px}.reply-preview{max-width:200px}}

/* round27 targeted chat fixes: keep the message menu beside the bubble, not inside it */
.chat-msg{
  padding-inline:0!important;
  margin-inline-end:38px!important;
  max-width:calc(86% - 38px)!important;
}
.chat-msg.mine{
  margin-inline-start:38px!important;
  margin-inline-end:0!important;
  padding-inline:0!important;
}
.msg-menu-btn{
  top:50%!important;
  transform:translateY(-50%)!important;
  inset-inline-end:-34px!important;
  inset-inline-start:auto!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(48,36,88,.13)!important;
  z-index:12!important;
}
.chat-msg.mine .msg-menu-btn{
  inset-inline-start:-34px!important;
  inset-inline-end:auto!important;
}
.msg-menu{
  top:calc(50% + 20px)!important;
  inset-inline-end:-34px!important;
  inset-inline-start:auto!important;
  transform:none!important;
  z-index:30!important;
}
.chat-msg.mine .msg-menu{
  inset-inline-start:-34px!important;
  inset-inline-end:auto!important;
}
.chat-msg span.msg-body,
.chat-msg > span:not(.recent-avatar){
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.chat-msg img,.chat-msg video,.shared-ad,.reply-preview{max-width:100%}
.chat-form .emoji-palette{max-height:118px;grid-template-columns:repeat(9,30px)}
@media(max-width:620px){
  .chat-msg{margin-inline-end:32px!important;max-width:calc(90% - 32px)!important}
  .chat-msg.mine{margin-inline-start:32px!important;margin-inline-end:0!important}
  .msg-menu-btn{inset-inline-end:-30px!important;width:28px!important;min-width:28px!important;height:28px!important}
  .chat-msg.mine .msg-menu-btn{inset-inline-start:-30px!important}
  .msg-menu{inset-inline-end:-30px!important}
  .chat-msg.mine .msg-menu{inset-inline-start:-30px!important}
  .chat-form .emoji-palette{grid-template-columns:repeat(7,30px)}
}

/* round30: rich admin font library and global font switching */
.font-library-card{margin-top:18px;overflow:hidden}
.font-library-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.font-library-head h2{margin:0 0 4px;font-size:22px;letter-spacing:-.4px}
.font-live-sample{min-width:118px;height:58px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:24px;font-weight:950;box-shadow:0 16px 34px rgba(124,58,237,.20)}
.font-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.font-preview-card{border:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfaff);border-radius:20px;padding:13px 10px;text-align:center;cursor:pointer;color:var(--ink);box-shadow:0 10px 24px rgba(48,36,88,.06);transition:.18s ease;min-height:86px;display:grid;align-content:center;gap:5px}
.font-preview-card strong{font-size:22px;font-weight:900;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.font-preview-card small{font-family:var(--app-font);font-size:10.5px;color:var(--muted);font-weight:800;line-height:1.6;min-height:30px;display:block}
.font-preview-card:hover{transform:translateY(-2px);border-color:rgba(124,58,237,.35);box-shadow:0 16px 32px rgba(124,58,237,.13)}
.font-preview-card.active{border-color:var(--primary);background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(167,139,250,.10),#fff);box-shadow:0 16px 34px rgba(124,58,237,.18);position:relative}
.font-preview-card.active:after{content:'✓';position:absolute;top:8px;left:8px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;font-family:Tahoma,Arial,sans-serif;font-size:14px;font-weight:900}
.font-select{font-weight:900}
@media(max-width:1000px){.font-preview-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.font-library-head{align-items:flex-start;flex-direction:column}.font-preview-grid{grid-template-columns:repeat(2,1fr)}.font-preview-card strong{font-size:19px}.font-live-sample{width:100%}}


/* Round 32: online users badge in footer */
.online-footer-badge{position:absolute;top:-12px;left:18px;min-width:48px;height:26px;padding:0 9px;border-radius:999px;background:#fff;color:#ef4444;border:1px solid rgba(239,68,68,.18);box-shadow:0 10px 24px rgba(239,68,68,.16);display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;font-weight:1000;direction:ltr;z-index:2}.online-footer-badge i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14);display:block}.online-footer-badge b{font:inherit;line-height:1}@media(max-width:620px){.online-footer-badge{left:14px;top:-10px;min-width:44px;height:24px;font-size:11px}}

/* Round 37: remove duplicated page titles/icons from content pages */
.minimal-title,
.auth-hero .upload-circle,
.auth-hero .page-title,
.page-title-row,
.section-page-title{
  display:none !important;
}

/* Compact Jalali date selectors */
.jalali-date-group{display:flex;gap:6px;align-items:center;min-width:210px}
.jalali-date-group select{min-width:64px;border:1px solid rgba(124,58,237,.16);border-radius:14px;padding:10px 8px;background:#fff;color:#24143a;font-family:var(--app-font);font-size:13px;outline:none}
.jalali-date-group select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(124,58,237,.10)}

/* round38: Instagram-like chat, unread per contact, compact emoji picker, notification badges */
.top-actions .notif-top-link{position:relative}.top-unread-badge{position:absolute;top:-6px;inset-inline-end:-6px;min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:1000;line-height:17px;text-align:center;box-shadow:0 0 0 3px #fff;direction:ltr}.dm-page{padding-bottom:96px}.dm-title{margin-bottom:10px}.dm-shell{display:grid;grid-template-columns:minmax(250px,330px) 1fr;gap:14px;align-items:stretch}.dm-sidebar{padding:12px;overflow:hidden;min-height:68vh;display:flex;flex-direction:column}.dm-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 10px}.dm-sidebar-head strong{font-size:18px;color:var(--ink);font-weight:1000}.dm-total-unread,.dm-unread{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;display:inline-grid;place-items:center;font-size:11px;font-weight:1000;line-height:20px;direction:ltr}.dm-search{margin-bottom:10px}.dm-room-list{overflow:auto;display:grid;gap:7px;padding-inline-end:2px}.dm-room-item{grid-template-columns:46px 1fr auto!important;grid-template-rows:auto!important;border-radius:18px!important;position:relative}.dm-room-item.active{background:#f4f0ff!important;border-color:#dfd2ff!important}.dm-room-main{min-width:0;display:grid;gap:2px}.dm-room-main b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-room-main small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-room-meta{display:grid;justify-items:end;align-content:center;gap:5px;min-width:34px}.dm-room-meta em{font-style:normal;font-size:10px;color:#a09aaa;direction:ltr}.dm-new-title{font-size:12px;color:var(--muted);font-weight:950;padding:12px 4px 4px}.dm-user-chips{padding-bottom:2px}.dm-chat-card{min-height:68vh;border-radius:28px;overflow:hidden;background:#fff}.dm-chat-header{display:grid;grid-template-columns:auto 42px 1fr auto;gap:9px;align-items:center;padding:10px 12px;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:10}.dm-back{width:32px;height:32px;border-radius:999px;display:grid;place-items:center;text-decoration:none;background:#f6f3ff;color:var(--primary);font-size:26px;font-weight:1000;line-height:1}.dm-header-avatar{width:42px;height:42px;border-radius:15px}.dm-peer-text{display:grid;gap:1px;min-width:0}.dm-peer-text strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dm-peer-text small{font-size:11px;color:var(--muted);direction:ltr;text-align:start}.dm-messages{height:calc(68vh - 64px);background:#fff!important;padding:18px 14px 12px!important;gap:8px!important}.dm-empty-state{margin:auto;text-align:center;color:var(--muted);display:grid;gap:7px}.dm-empty-state b{color:var(--ink);font-size:17px}.chat-msg{max-width:78%!important;gap:4px!important}.chat-msg span.msg-body,.chat-msg > span:not(.recent-avatar){background:#fff!important;color:var(--ink)!important;border:1px solid #ececf4!important;border-radius:18px 18px 18px 5px!important;box-shadow:0 6px 18px rgba(31,24,51,.04)!important;font-weight:650!important}.chat-msg.mine span.msg-body,.chat-msg.mine > span:not(.recent-avatar){background:#f4f0ff!important;color:var(--ink)!important;border:1px solid #e5dcff!important;border-radius:18px 18px 5px 18px!important}.chat-msg small{font-size:10px!important;color:#9b95a8!important}.dm-compose{grid-template-columns:42px 1fr 40px 46px!important;gap:7px!important;align-items:end!important;padding:10px!important;border-top:1px solid #f0edf7!important;background:#fff!important;border-radius:0!important}.dm-compose textarea{height:42px!important;min-height:42px!important;max-height:94px!important;border-radius:999px!important;border:1px solid #e6e2ef!important;background:#fafafa!important;box-shadow:none!important;font-weight:600!important}.dm-compose .file-chip{width:42px!important;height:42px!important;border-radius:999px!important;background:#f6f3ff!important}.dm-input-wrap{min-width:0}.emoji-toggle,.dm-send{width:42px!important;height:42px!important;min-width:42px!important;border-radius:999px!important;border:0!important;display:grid!important;place-items:center!important;cursor:pointer!important}.emoji-toggle{background:#f7f4ff!important;color:var(--primary)!important;font-size:18px!important}.dm-send{background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#fff!important;font-size:18px!important}.emoji-wrap .emoji-palette[hidden]{display:none!important}.dm-compose .emoji-palette{position:absolute;left:0;right:auto;bottom:52px;z-index:30;background:#fff;border:1px solid #eee8fb;border-radius:18px;padding:8px;box-shadow:0 18px 42px rgba(36,25,66,.16);display:grid!important;grid-template-columns:repeat(6,32px)!important;gap:5px!important;max-height:170px!important;overflow:auto!important}.rtl .dm-compose .emoji-palette{right:0;left:auto}.dm-compose .emoji-palette button{width:32px!important;height:32px!important;border-radius:11px!important}.notification-list-card{padding:14px;margin-bottom:14px}.notification-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.notification-list-head strong{font-weight:1000;color:var(--ink)}.notification-list-head button{border:0;border-radius:14px;background:#f4f0ff;color:var(--primary);font-weight:900;padding:8px 11px;cursor:pointer}.notification-list{display:grid;gap:8px}.notification-item{position:relative;display:grid;gap:2px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:10px 12px;background:#fff}.notification-item.is-unread{background:#f8f4ff;border-color:#e3d7ff}.notification-dot{position:absolute;top:13px;inset-inline-start:10px;width:8px;height:8px;border-radius:999px;background:#ef4444;display:none}.notification-item.is-unread .notification-dot{display:block}.notification-item b{font-size:13px}.notification-item small{font-size:12px;color:#665f75}.notification-item em{font-style:normal;font-size:10px;color:#9b95a8;direction:ltr;text-align:start}@media(max-width:760px){.dm-shell{display:block}.dm-sidebar{min-height:auto;margin-bottom:12px}.has-active-room .dm-sidebar{display:none}.dm-chat-card{min-height:calc(100vh - 178px);border-radius:22px}.dm-messages{height:calc(100vh - 300px);min-height:330px}.dm-chat-header{grid-template-columns:auto 38px 1fr auto;padding:9px}.dm-compose{grid-template-columns:38px 1fr 38px 42px!important;padding:8px!important}.dm-compose textarea{height:40px!important;min-height:40px!important}.emoji-toggle,.dm-send,.dm-compose .file-chip{width:38px!important;height:38px!important;min-width:38px!important}.chat-msg{max-width:86%!important}.dm-compose .emoji-palette{grid-template-columns:repeat(5,32px)!important;bottom:48px}.dm-title{display:none}}

/* round39: clean Instagram/Telegram-like DM layout + correct unread badges */
[hidden], .ig-unread-badge[hidden], .chat-unread-badge[hidden], .top-unread-badge[hidden], .ig-total-badge[hidden]{display:none!important}
.ig-dm-page{padding:12px 14px 106px}.ig-inbox-card,.ig-chat-screen{border-radius:30px;overflow:hidden;background:#fff;min-height:72vh;box-shadow:0 18px 54px rgba(50,35,90,.10)}
.ig-inbox-card{padding:14px}.ig-inbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.ig-inbox-head h1{margin:0;font-size:23px;font-weight:1000;letter-spacing:-.5px}.ig-inbox-head p{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:700}.ig-total-badge,.ig-unread-badge{min-width:19px;height:19px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:1000;line-height:19px;direction:ltr;box-shadow:0 0 0 3px #fff}.ig-chat-search{margin:0 0 12px}.ig-chat-search label{min-width:0}.ig-room-list{display:grid;gap:8px;max-height:46vh;overflow:auto;padding:1px 2px 4px}.ig-room-row{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;padding:9px;border:1px solid #eeeeF6;border-radius:20px;background:#fff;color:var(--ink);transition:.18s ease}.ig-room-row:hover,.ig-room-row.active{background:#f8f5ff;border-color:#e3d8ff;transform:translateY(-1px)}.ig-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000;flex:0 0 auto}.ig-avatar img{width:100%;height:100%;object-fit:cover}.ig-room-text{min-width:0;display:grid;gap:3px}.ig-room-text b{font-size:14px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ig-room-text small{font-size:12px;color:#777286;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ig-room-side{display:grid;justify-items:end;gap:5px;align-content:center;min-width:42px}.ig-room-side em{font-style:normal;font-size:10px;color:#a19aac;direction:ltr}.ig-start-head{font-size:12px;color:#8d8799;font-weight:1000;margin:14px 4px 7px}.ig-user-strip{display:flex;gap:10px;overflow:auto;padding:2px 0 6px}.ig-user-strip a{min-width:74px;max-width:82px;text-align:center;display:grid;gap:4px;justify-items:center;color:var(--ink)}.ig-user-strip span{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000}.ig-user-strip img{width:100%;height:100%;object-fit:cover}.ig-user-strip b{font-size:11px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ig-user-strip small{font-size:9px;color:var(--muted);direction:ltr;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ig-empty-box{margin:18px auto;text-align:center;color:var(--muted);font-weight:800;padding:20px;border:1px dashed #e8e1f8;border-radius:20px;background:#fbfaff}.ig-chat-screen{display:grid;grid-template-rows:auto 1fr auto;min-height:calc(100vh - 158px)}.ig-chat-top{display:grid;grid-template-columns:36px 44px 1fr auto;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #f0edf7;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:10}.ig-back{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f5f0ff;color:var(--primary);font-size:28px;font-weight:1000;line-height:1}.ig-peer-avatar{width:44px;height:44px}.ig-peer-info{min-width:0;display:grid;gap:2px}.ig-peer-info strong{font-size:15px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ig-peer-info small{font-size:11px;color:var(--muted);direction:ltr;text-align:start}.ig-chat-actions{display:flex;gap:6px}.ig-chat-actions button{width:34px;height:34px;border:0;border-radius:50%;background:#f8f5ff;cursor:pointer}.ig-message-list{height:auto!important;min-height:420px;max-height:calc(100vh - 252px);overflow:auto;padding:16px 12px 12px!important;background:#fff!important;display:flex!important;flex-direction:column!important;gap:7px!important}.ig-msg{position:relative;display:flex;flex-direction:column;max-width:82%;gap:3px}.ig-msg.mine{align-self:flex-end;align-items:flex-end}.ig-msg.theirs{align-self:flex-start;align-items:flex-start}.ig-bubble{display:inline-block;padding:9px 12px;border-radius:20px;border:1px solid #ececf4;background:#fff;color:var(--ink);font-size:14px;font-weight:650;line-height:1.9;box-shadow:0 6px 20px rgba(30,24,60,.04);white-space:pre-wrap;word-break:break-word}.ig-msg.mine .ig-bubble{background:#f4f0ff;border-color:#e2d8ff;border-bottom-right-radius:7px}.rtl .ig-msg.mine .ig-bubble{border-bottom-right-radius:20px;border-bottom-left-radius:7px}.ig-msg.theirs .ig-bubble{border-bottom-left-radius:7px}.rtl .ig-msg.theirs .ig-bubble{border-bottom-left-radius:20px;border-bottom-right-radius:7px}.ig-msg img,.ig-msg video{max-width:100%;border-radius:18px;border:1px solid #eee;box-shadow:0 8px 28px rgba(0,0,0,.07)}.ig-msg-meta{font-size:10px;color:#a19aac;direction:ltr}.ig-msg-menu-btn{position:absolute;top:2px;inset-inline-end:-34px;width:27px;height:27px;border:0;border-radius:50%;background:#fff;box-shadow:0 8px 22px rgba(31,24,51,.08);color:var(--primary);cursor:pointer}.ig-msg.mine .ig-msg-menu-btn{inset-inline-end:auto;inset-inline-start:-34px}.ig-compose{display:grid;grid-template-columns:40px 1fr 40px 44px;gap:7px;align-items:end;padding:10px;border-top:1px solid #f0edf7;background:#fff}.ig-attach,.ig-emoji-btn,.ig-send{width:40px!important;height:40px!important;min-width:40px!important;border-radius:50%!important;border:0!important;display:grid!important;place-items:center!important;cursor:pointer!important}.ig-attach{background:#f6f3ff!important;color:var(--primary)!important;font-size:20px!important}.ig-compose-main{position:relative;min-width:0}.ig-compose textarea{width:100%!important;height:40px!important;min-height:40px!important;max-height:110px!important;border-radius:22px!important;border:1px solid #e7e2ef!important;background:#fafafa!important;box-shadow:none!important;padding:9px 13px!important;font-weight:650!important;resize:none!important}.ig-emoji-btn{background:#f7f4ff!important;color:var(--primary)!important;font-size:18px!important}.ig-send{background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#fff!important;font-size:18px!important}.ig-emoji-panel{position:absolute;bottom:50px;inset-inline-start:0;z-index:30;background:#fff;border:1px solid #eee8fb;border-radius:18px;padding:8px;box-shadow:0 18px 42px rgba(36,25,66,.16);display:grid!important;grid-template-columns:repeat(6,32px)!important;gap:5px!important;max-height:170px!important;overflow:auto!important}.ig-emoji-panel[hidden]{display:none!important}.ig-emoji-panel button{width:32px!important;height:32px!important;border-radius:11px!important;border:0!important;background:#faf8ff!important;cursor:pointer!important}.chat-unread-badge{position:absolute;top:5px;right:10px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:1000;line-height:18px;text-align:center;box-shadow:0 0 0 3px #fff;direction:ltr}.rtl .chat-unread-badge{right:auto;left:10px}.top-unread-badge{position:absolute;top:-6px;inset-inline-end:-6px;min-width:17px;height:17px;padding:0 5px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;font-weight:1000;line-height:17px;text-align:center;box-shadow:0 0 0 3px #fff;direction:ltr}@media(max-width:760px){.ig-dm-page{padding:8px 10px 100px}.ig-inbox-card,.ig-chat-screen{border-radius:24px;min-height:calc(100vh - 150px)}.ig-room-list{max-height:48vh}.ig-message-list{min-height:calc(100vh - 272px);max-height:calc(100vh - 272px)}.ig-compose{grid-template-columns:38px 1fr 38px 42px;padding:8px}.ig-attach,.ig-emoji-btn{width:38px!important;height:38px!important;min-width:38px!important}.ig-send{width:42px!important;height:42px!important;min-width:42px!important}.ig-msg{max-width:86%}.ig-emoji-panel{grid-template-columns:repeat(5,32px)!important}}


/* chat-v3: polished responsive inbox/conversation + fixed header layout */
.ds-topbar{display:grid!important;grid-template-columns:minmax(66px,.85fr) minmax(120px,1.4fr) minmax(92px,.95fr)!important;gap:8px!important;align-items:center!important;height:82px!important;padding:12px 14px!important;overflow:visible!important}.ds-brand{position:static!important;transform:none!important;justify-self:center!important;max-width:100%!important;min-width:0!important;display:flex!important;justify-content:center!important;text-align:center!important;font-size:clamp(20px,6vw,32px)!important}.ds-brand img{max-width:min(var(--header-logo-width),42vw,176px)!important;max-height:min(var(--header-logo-height),54px)!important;object-fit:contain!important}.brand-side{justify-self:start!important;min-width:0!important}.top-actions{justify-self:end!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important}.top-actions .auth-mini,.top-actions .logo-upload-mini{width:38px!important;height:38px!important;min-width:38px!important;border-radius:16px!important;position:relative!important}.top-actions svg{width:21px!important;height:21px!important}.top-unread-badge{top:-5px!important;inset-inline-end:-5px!important}.lang-switch button{padding:7px 8px!important;font-size:12px!important}@media(max-width:390px){.ds-topbar{grid-template-columns:58px 1fr 88px!important;padding-inline:9px!important}.top-actions .auth-mini,.top-actions .logo-upload-mini{width:34px!important;height:34px!important;min-width:34px!important}.top-actions{gap:3px!important}.ds-brand img{max-width:38vw!important}.lang-switch button{padding:6px 6px!important;font-size:11px!important}}
.cchat-page{padding:10px 12px 104px!important;max-width:100%!important}.cchat-panel{background:#fff;border:1px solid rgba(226,223,239,.9);box-shadow:0 18px 48px rgba(32,28,76,.09);border-radius:28px;overflow:hidden}.cchat-inbox-panel{padding:14px}.cchat-inbox-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.cchat-inbox-header h1{margin:0;font-size:24px;font-weight:1000;letter-spacing:-.7px}.cchat-inbox-header small{display:block;color:#8a849a;font-weight:800;margin-top:3px}.cchat-total-badge,.cchat-unread-badge,.chat-unread-badge{min-width:20px;height:20px;padding:0 7px;border-radius:999px;background:linear-gradient(135deg,#ff385c,#f43f5e);color:#fff;display:inline-grid;place-items:center;font-size:11px;font-weight:1000;line-height:20px;direction:ltr;box-shadow:0 0 0 3px #fff,0 8px 16px rgba(244,63,94,.25)}.cchat-total-badge[hidden],.cchat-unread-badge[hidden],.chat-unread-badge[hidden]{display:none!important}.cchat-searchbar{margin-bottom:12px}.cchat-section-title{font-size:12px;color:#8d8799;font-weight:1000;margin:14px 4px 8px}.cchat-room-list{display:grid;gap:8px;max-height:none;overflow:visible}.cchat-room-row{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #efedf6;border-radius:20px;background:#fff;transition:.16s ease}.cchat-room-row:hover{background:#faf7ff;border-color:#e5dbff}.cchat-avatar{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000;box-shadow:0 10px 22px rgba(124,58,237,.16);flex:0 0 auto}.cchat-avatar img{width:100%;height:100%;object-fit:cover}.cchat-room-main{min-width:0;display:grid;gap:4px}.cchat-room-name{font-weight:1000;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-room-last{font-size:12px;color:#7f7a8d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-room-meta{display:grid;justify-items:end;align-content:center;gap:6px;min-width:42px}.cchat-room-meta time{font-size:10px;color:#aaa3b6;direction:ltr}.cchat-user-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none}.cchat-user-strip::-webkit-scrollbar{display:none}.cchat-user-strip a{min-width:78px;max-width:86px;text-align:center;display:grid;gap:5px;justify-items:center}.cchat-user-strip span{width:54px;height:54px;border-radius:20px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000}.cchat-user-strip img{width:100%;height:100%;object-fit:cover}.cchat-user-strip b{font-size:11px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-user-strip small{font-size:9px;color:#9a94a8;direction:ltr}.cchat-empty{text-align:center;color:#888197;font-weight:850;padding:18px;margin:10px;border:1px dashed #e9e2f7;border-radius:20px;background:#fbfaff}.cchat-conversation{height:calc(100dvh - 120px);min-height:560px;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;border-radius:26px!important;overflow:hidden!important;padding:0!important;background:#fff}.cchat-chat-header{height:64px;display:grid;grid-template-columns:40px 46px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 11px;border-bottom:1px solid #f0edf7;background:rgba(255,255,255,.98);z-index:2}.cchat-back{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f6f2ff;color:var(--primary);font-size:30px;font-weight:1000;line-height:1}.cchat-peer-avatar{width:46px;height:46px}.cchat-peer-title{min-width:0;display:grid;gap:2px}.cchat-peer-title strong{font-size:14px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-peer-title small{font-size:11px;color:#8e879d;direction:ltr;text-align:start}.cchat-header-actions{display:flex;gap:5px}.cchat-header-actions button{width:34px;height:34px;border:0;border-radius:50%;background:#f8f5ff;cursor:pointer}.cchat-messages{min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;padding:14px 12px 18px!important;background:linear-gradient(180deg,#fff 0,#fbfaff 100%)!important;display:flex!important;flex-direction:column!important;gap:7px!important;overscroll-behavior:contain}.cchat-message{position:relative;display:flex;flex-direction:column;gap:3px;max-width:min(84%,410px)}.cchat-message.mine{align-self:flex-end;align-items:flex-end}.cchat-message.theirs{align-self:flex-start;align-items:flex-start}.cchat-bubble{display:inline-block;padding:9px 13px!important;border-radius:20px;border:1px solid #ecebf4;background:#fff;color:#1f2433;font-size:14px;font-weight:650;line-height:1.85;white-space:pre-wrap;word-break:break-word;box-shadow:0 6px 18px rgba(30,24,60,.035)}.cchat-message.mine .cchat-bubble{background:#f5f1ff;border-color:#e3d9ff;border-bottom-right-radius:7px}.rtl .cchat-message.mine .cchat-bubble{border-bottom-right-radius:20px;border-bottom-left-radius:7px}.cchat-message.theirs .cchat-bubble{border-bottom-left-radius:7px}.rtl .cchat-message.theirs .cchat-bubble{border-bottom-left-radius:20px;border-bottom-right-radius:7px}.cchat-message img,.cchat-message video{max-width:100%;border-radius:18px;border:1px solid #eee;box-shadow:0 8px 26px rgba(0,0,0,.07)}.cchat-meta{font-size:10px;color:#a39cad;direction:ltr;padding:0 5px}.cchat-msg-menu{position:absolute;top:1px;inset-inline-end:-31px;width:25px;height:25px;border:0;border-radius:50%;background:#fff;box-shadow:0 8px 22px rgba(31,24,51,.08);color:var(--primary);cursor:pointer}.cchat-message.mine .cchat-msg-menu{inset-inline-end:auto;inset-inline-start:-31px}.cchat-compose{display:grid!important;grid-template-columns:38px minmax(0,1fr) 38px 42px!important;gap:7px!important;align-items:end!important;padding:9px 10px!important;border-top:1px solid #f0edf7;background:rgba(255,255,255,.98);z-index:3}.cchat-attach,.cchat-emoji-btn,.cchat-send{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;border:0!important;display:grid!important;place-items:center!important;cursor:pointer!important}.cchat-attach{background:#f6f3ff!important;color:var(--primary)!important;font-size:19px!important}.cchat-compose-main{position:relative;min-width:0}.cchat-compose textarea{width:100%!important;height:38px!important;min-height:38px!important;max-height:110px!important;border-radius:22px!important;border:1px solid #e7e2ef!important;background:#fafafa!important;box-shadow:none!important;padding:8px 13px!important;font-size:14px!important;font-weight:650!important;resize:none!important;line-height:1.6!important}.cchat-emoji-btn{background:#f7f4ff!important;color:var(--primary)!important;font-size:18px!important}.cchat-send{background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#fff!important;font-size:18px!important}.cchat-emoji-panel{position:absolute;bottom:48px;inset-inline-start:0;z-index:30;background:#fff;border:1px solid #eee8fb;border-radius:18px;padding:8px;box-shadow:0 18px 42px rgba(36,25,66,.16);display:grid!important;grid-template-columns:repeat(6,32px)!important;gap:5px!important;max-height:170px!important;overflow:auto!important}.cchat-emoji-panel[hidden]{display:none!important}.cchat-emoji-panel button{width:32px!important;height:32px!important;border-radius:11px!important;border:0!important;background:#faf8ff!important;cursor:pointer!important}.chat-file-preview{max-width:100%;overflow:hidden}.chat-file-preview[hidden]{display:none!important}@media(min-width:900px){.cchat-page{max-width:760px!important;margin:auto}.cchat-conversation{height:calc(100vh - 150px)}}@media(max-width:760px){.container.cchat-page{padding:6px 8px 92px!important}.cchat-panel{border-radius:22px!important}.cchat-inbox-panel{padding:12px}.cchat-inbox-header h1{font-size:21px}.cchat-room-row{grid-template-columns:46px minmax(0,1fr) auto;padding:9px;border-radius:18px}.cchat-avatar{width:46px;height:46px}.cchat-conversation{height:calc(100dvh - 94px)!important;min-height:0!important;border-radius:0!important;margin:-6px -8px 0!important;border-left:0!important;border-right:0!important}.cchat-chat-header{height:58px;grid-template-columns:36px 42px minmax(0,1fr) auto;padding:8px}.cchat-peer-avatar{width:42px;height:42px}.cchat-header-actions button{width:31px;height:31px}.cchat-messages{padding:12px 10px 14px!important}.cchat-message{max-width:86%!important}.cchat-bubble{font-size:13.5px!important;line-height:1.75!important}.cchat-msg-menu{display:none!important}.cchat-compose{grid-template-columns:36px minmax(0,1fr) 36px 40px!important;gap:6px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important}.cchat-attach,.cchat-emoji-btn{width:36px!important;height:36px!important;min-width:36px!important}.cchat-send{width:40px!important;height:40px!important;min-width:40px!important}.cchat-compose textarea{height:37px!important;min-height:37px!important;font-size:13.5px!important}.cchat-emoji-panel{grid-template-columns:repeat(5,32px)!important;bottom:46px}.top-actions .saved-top{display:none!important}}

/* round46: requested chat polish + mobile search tightening */
.cchat-peer-status{display:flex;align-items:center;gap:6px;min-width:0}
.cchat-peer-status small{font-size:10px;color:#8e879d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cchat-status-dot{width:9px;height:9px;border-radius:50%;background:#d6d0e4;box-shadow:0 0 0 3px rgba(214,208,228,.22)}
.cchat-peer-status.is-online .cchat-status-dot{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.cchat-peer-status.is-typing .cchat-status-dot{background:#7c3aed;animation:cchatPulse 1.15s infinite}
@keyframes cchatPulse{0%{transform:scale(.9);box-shadow:0 0 0 0 rgba(124,58,237,.28)}70%{transform:scale(1);box-shadow:0 0 0 8px rgba(124,58,237,0)}100%{transform:scale(.96);box-shadow:0 0 0 0 rgba(124,58,237,0)}}
.forward-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;background:#f5f0ff;color:var(--primary);font-size:10px;font-weight:950;border:1px solid #e8defd}
.cchat-media-wrap{position:relative;display:inline-block}
.cchat-gif-badge{position:absolute;left:9px;bottom:9px;padding:3px 7px;border-radius:999px;background:rgba(17,24,39,.86);color:#fff;font-size:10px;font-weight:1000;letter-spacing:.3px}
.cchat-audio-wrap{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #ece9f4;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(30,24,60,.035)}
.cchat-voice-pill{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:14px;box-shadow:0 10px 22px rgba(124,58,237,.18)}
.cchat-audio-wrap audio{width:210px;max-width:100%}
.cchat-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.cchat-meta em{font-style:normal;font-size:9.5px;color:#a79eb7}
.seen-time{font-size:9px;color:#b09ac7;background:#f7f1ff;border-radius:999px;padding:2px 6px}
.cchat-message.mine .seen-time{background:#efe6ff;color:#8b5cf6}
.cchat-compose{grid-template-columns:38px minmax(0,1fr) 40px 38px 38px 42px!important}
.cchat-tool-btn{width:38px;height:38px;min-width:38px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;background:#f6f3ff;color:var(--primary);font-size:13px;font-weight:1000}
.cchat-tool-btn.is-recording{background:linear-gradient(135deg,#ef4444,#fb7185)!important;color:#fff!important;box-shadow:0 12px 26px rgba(239,68,68,.25)}
.cchat-voice-btn.is-recording{font-size:11px}
.cchat-gif-btn{font-size:11px;letter-spacing:.4px}
.reply-compose{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;margin-bottom:7px;border-radius:14px;background:#f7f2ff;border:1px solid #e8defd;color:#6b5d8c;font-size:11px;font-weight:800}
.reply-compose span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reply-compose button{width:24px;height:24px;border:0;border-radius:50%;background:#fff;color:var(--primary);cursor:pointer}
.chat-file-preview{display:flex;gap:8px;overflow:auto;padding:3px 2px 0}
.file-preview-item{min-width:70px;max-width:86px;display:grid;gap:5px;justify-items:center;padding:7px;border:1px solid #eee8fb;border-radius:16px;background:#fbfaff;position:relative}
.file-preview-item img,.file-preview-item video{width:56px;height:56px;object-fit:cover;border-radius:12px}
.file-preview-item b{width:56px;height:56px;display:grid;place-items:center;border-radius:12px;background:#f4efff;color:var(--primary);font-size:26px}
.file-preview-item small{font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-preview-clear{width:24px;height:24px;border-radius:50%;border:0;background:#fff;color:#ef4444;box-shadow:0 8px 18px rgba(17,24,39,.08);cursor:pointer;align-self:flex-start;margin-top:12px}
.cchat-forward-sheet[hidden]{display:none!important}
.cchat-forward-sheet{position:fixed;inset:0;z-index:70;background:rgba(23,19,35,.32);backdrop-filter:blur(5px);display:grid;place-items:end center;padding:16px}
.cchat-forward-card{width:min(100%,420px);max-height:min(78vh,620px);display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 26px 70px rgba(30,24,60,.26)}
.cchat-forward-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px;border-bottom:1px solid #f1edf7}.cchat-forward-head strong{font-size:15px;font-weight:1000}.cchat-forward-head button{width:34px;height:34px;border-radius:50%;border:0;background:#f7f3ff;color:var(--primary);font-size:22px;cursor:pointer}
.cchat-forward-list{padding:10px 12px 14px;overflow:auto;display:grid;gap:8px}
.cchat-forward-user{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;padding:10px;border:1px solid #efedf6;border-radius:18px;background:#fff;cursor:pointer;text-align:start}
.cchat-forward-user:hover{background:#fbf8ff;border-color:#e4d9ff}.cchat-forward-avatar{width:42px;height:42px}.cchat-forward-text{min-width:0;display:grid;gap:2px}.cchat-forward-text b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-forward-text small{font-size:10px;color:#9990ab;direction:ltr}
.home-search{grid-template-columns:1fr 1fr 1fr 48px;gap:6px!important;padding:8px!important}
.home-search input{height:42px!important;padding:0 10px!important;font-size:13px}
.home-search button{height:42px;border-radius:16px!important}
@media(max-width:560px){.home-search{grid-template-columns:1fr 1fr 1fr 42px!important}.home-search input{font-size:12px!important;padding:0 8px!important}.home-search button{grid-column:auto!important;height:42px;font-size:20px}.cchat-conversation{padding-bottom:0!important}.cchat-compose{grid-template-columns:34px minmax(0,1fr) 34px 34px 34px 40px!important;gap:5px!important}.cchat-attach,.cchat-emoji-btn,.cchat-tool-btn{width:34px!important;height:34px!important;min-width:34px!important}.cchat-send{width:40px!important;height:40px!important}.cchat-audio-wrap audio{width:180px}}

/* round47: stable chat bugfixes, keyboard/footer safety, unread jump */
body:has(.cchat-active-page) .ds-bottom-nav,
body:has(.auth-hero) .ds-bottom-nav,
body.chat-focused .ds-bottom-nav{display:none!important}
body.is-active-chat-page .ds-bottom-nav,body.is-auth-page .ds-bottom-nav{display:none!important}
body.is-active-chat-page .app-shell{padding-bottom:0!important}
.cchat-active-page{height:calc(100dvh - 78px)!important;overflow:hidden!important;padding-bottom:0!important;display:flex!important;flex-direction:column!important}
.cchat-active-page .cchat-conversation{height:100%!important;min-height:0!important;flex:1 1 auto!important}
.cchat-header-unread{align-self:center;margin-inline-end:2px;transform:scale(.92)}
.cchat-new-pills{position:absolute;inset-inline-start:50%;transform:translateX(-50%);bottom:76px;z-index:8;border:0;border-radius:999px;padding:9px 14px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:12px;font-weight:1000;box-shadow:0 18px 36px rgba(124,58,237,.26);cursor:pointer}
.cchat-new-pills[hidden]{display:none!important}.cchat-new-pills.is-reply::before{content:'↩ ';font-weight:1000}
.reply-preview{cursor:pointer}.reply-preview:hover{background:#f2ebff}.cchat-message.jump-flash .cchat-bubble,.cchat-message.jump-flash .reply-preview,.cchat-message.jump-flash img,.cchat-message.jump-flash video,.cchat-message.jump-flash .cchat-audio-wrap{animation:cchatFlash 1.15s ease}
@keyframes cchatFlash{0%,100%{box-shadow:0 0 0 rgba(124,58,237,0)}35%{box-shadow:0 0 0 5px rgba(124,58,237,.16),0 12px 26px rgba(124,58,237,.12)}}
.cchat-messages{scroll-behavior:smooth!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}.cchat-compose textarea:focus{outline:0;border-color:var(--primary)!important;box-shadow:0 0 0 3px rgba(124,58,237,.08)!important}
@media(max-width:760px){.container.cchat-page.cchat-active-page{height:calc(100dvh - 64px)!important;padding:0!important;margin:0!important;max-width:100%!important}.cchat-active-page .cchat-conversation{border-radius:0!important;margin:0!important;height:100%!important}.cchat-compose{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}.cchat-new-pills{bottom:calc(74px + env(safe-area-inset-bottom));font-size:11px;padding:8px 12px}.cchat-header-unread{position:static!important;min-width:18px;height:18px;font-size:10px;line-height:18px}}

/* round48: hard fix chat viewport, sticky peer header, sticky composer, reliable internal scroll */
html:has(.cchat-active-page),
body:has(.cchat-active-page){
  height:100%;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body:has(.cchat-active-page) .ds-topbar,
body:has(.cchat-active-page) .ds-bottom-nav,
body.is-active-chat-page .ds-topbar,
body.is-active-chat-page .ds-bottom-nav{
  display:none!important;
}
body:has(.cchat-active-page) .app-shell,
body.is-active-chat-page .app-shell{
  height:100dvh!important;
  min-height:100dvh!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  display:block!important;
  background:#fff!important;
}
.container.cchat-page.cchat-active-page{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr)!important;
  background:#fff!important;
  z-index:80!important;
}
.cchat-active-page .cchat-conversation{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  background:#fff!important;
}
.cchat-active-page .cchat-chat-header{
  position:sticky!important;
  top:0!important;
  z-index:25!important;
  min-height:58px!important;
  height:auto!important;
  padding:8px 10px!important;
  border-bottom:1px solid #f0edf7!important;
  background:rgba(255,255,255,.98)!important;
  backdrop-filter:blur(14px)!important;
  box-shadow:0 10px 28px rgba(31,24,51,.045)!important;
}
.cchat-active-page .cchat-messages{
  min-height:0!important;
  height:100%!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  touch-action:pan-y!important;
  padding:14px 12px 18px!important;
  background:linear-gradient(180deg,#fff 0,#fbfaff 100%)!important;
  contain:layout paint!important;
}
.cchat-active-page .cchat-compose{
  position:relative!important;
  bottom:auto!important;
  z-index:26!important;
  flex:0 0 auto!important;
  border-top:1px solid #f0edf7!important;
  background:rgba(255,255,255,.985)!important;
  backdrop-filter:blur(14px)!important;
  box-shadow:0 -10px 28px rgba(31,24,51,.05)!important;
}
.cchat-active-page .cchat-room-list,
.cchat-active-page .recent-room-list,
.cchat-active-page .cchat-user-strip{
  display:none!important;
}
.cchat-active-page .cchat-peer-title{overflow:hidden!important;min-width:0!important}
.cchat-active-page .cchat-header-actions{min-width:max-content!important;align-items:center!important}
.cchat-peer-status.is-typing small{color:var(--primary)!important;font-weight:1000!important}
.cchat-header-unread{box-shadow:0 0 0 3px #fff,0 10px 20px rgba(244,63,94,.24)!important}
.cchat-new-pills{bottom:calc(70px + env(safe-area-inset-bottom))!important}
@media(max-width:760px){
  .container.cchat-page.cchat-active-page{height:100svh!important;min-height:100svh!important}
  @supports(height:100dvh){.container.cchat-page.cchat-active-page{height:100dvh!important;min-height:100dvh!important}}
  .cchat-active-page .cchat-conversation{height:100%!important}
  .cchat-active-page .cchat-chat-header{grid-template-columns:34px 40px minmax(0,1fr) auto!important;gap:7px!important;min-height:56px!important;padding:7px 8px!important}
  .cchat-active-page .cchat-back{width:34px!important;height:34px!important;font-size:27px!important}
  .cchat-active-page .cchat-peer-avatar{width:40px!important;height:40px!important}
  .cchat-active-page .cchat-peer-title strong{font-size:13.5px!important}
  .cchat-active-page .cchat-peer-status small{font-size:9.5px!important;max-width:42vw!important}
  .cchat-active-page .cchat-header-actions button{width:30px!important;height:30px!important;font-size:13px!important}
  .cchat-active-page .cchat-messages{padding:12px 10px 14px!important}
  .cchat-active-page .cchat-compose{grid-template-columns:33px minmax(0,1fr) 33px 33px 33px 39px!important;gap:5px!important;padding:7px 7px calc(7px + env(safe-area-inset-bottom))!important}
  .cchat-active-page .cchat-compose textarea{height:36px!important;min-height:36px!important;max-height:92px!important;font-size:13px!important}
  .cchat-active-page .cchat-attach,.cchat-active-page .cchat-emoji-btn,.cchat-active-page .cchat-tool-btn{width:33px!important;height:33px!important;min-width:33px!important}
  .cchat-active-page .cchat-send{width:39px!important;height:39px!important;min-width:39px!important}
  .cchat-active-page .cchat-message{max-width:88%!important}
}


/* round49: restore reply/forward/edit/delete visibility + swipe reply */
.cchat-message{transition:transform .16s ease, box-shadow .16s ease;touch-action:pan-y;will-change:transform}
.cchat-message.swipe-ready::before{content:'↩';position:absolute;top:50%;transform:translateY(-50%);inset-inline-start:-34px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000;box-shadow:0 10px 24px rgba(124,58,237,.24);z-index:3}
.cchat-message.mine.swipe-ready::before{inset-inline-start:auto;inset-inline-end:-34px}
.cchat-message.reply-flash .cchat-bubble,.cchat-message.reply-flash .reply-preview,.cchat-message.reply-flash img,.cchat-message.reply-flash video,.cchat-message.reply-flash .cchat-audio-wrap{box-shadow:0 0 0 4px rgba(124,58,237,.16),0 10px 26px rgba(124,58,237,.12)!important}
.cchat-msg-menu,.msg-menu-btn{display:grid!important;place-items:center!important}
.cchat-message .msg-menu button[data-reply-message],.cchat-message .msg-menu button[data-forward-message],.cchat-message .msg-menu button[data-edit-message],.cchat-message .msg-menu button[data-delete-message]{display:block!important}
@media(max-width:760px){.cchat-msg-menu,.cchat-message.mine .cchat-msg-menu{display:grid!important;opacity:.96!important;top:8px!important;inset-inline-end:-4px!important;inset-inline-start:auto!important;width:28px!important;height:28px!important;background:rgba(255,255,255,.96)!important;z-index:15!important}.cchat-message.mine .cchat-msg-menu{inset-inline-start:-4px!important;inset-inline-end:auto!important}.cchat-message{padding-inline:26px!important}.cchat-message.mine{padding-inline:26px!important}.cchat-message.theirs{padding-inline:26px!important}.cchat-message .msg-menu{z-index:40!important;min-width:128px!important}.cchat-message.theirs .msg-menu{inset-inline-end:0!important;inset-inline-start:auto!important}.cchat-message.mine .msg-menu{inset-inline-start:0!important;inset-inline-end:auto!important}}


/* round50: keep header/footer on chat inbox, lock edit/delete after seen, speed polish */
.cchat-inbox-page{padding-bottom:110px!important}
body.is-chat-inbox-page .ds-topbar{display:flex!important}
body.is-chat-inbox-page .ds-bottom-nav{display:grid!important}
body.is-active-chat-page .ds-topbar,body:has(.cchat-active-page) .ds-topbar{display:none!important}
.cchat-message[data-read="1"] .msg-menu [data-edit-message],
.cchat-message[data-read="1"] .msg-menu [data-delete-message]{display:none!important}
.cchat-message[data-sending="1"]{opacity:.72;filter:saturate(.85)}
.cchat-uploading{position:absolute;inset-inline:10px;bottom:calc(58px + env(safe-area-inset-bottom));z-index:20;border:1px solid #eadfff;background:rgba(255,255,255,.95);border-radius:999px;padding:8px 12px;font-size:11px;font-weight:1000;color:var(--primary);box-shadow:0 14px 34px rgba(30,24,60,.12);display:flex;align-items:center;gap:8px}.cchat-uploading[hidden]{display:none!important}.cchat-uploading i{width:12px;height:12px;border-radius:50%;border:2px solid #dcccff;border-top-color:var(--primary);animation:cchatSpin .75s linear infinite}@keyframes cchatSpin{to{transform:rotate(360deg)}}
.cchat-inbox-page .cchat-panel{margin-bottom:12px}
@media(max-width:760px){.cchat-inbox-page{height:auto!important;min-height:auto!important;overflow:visible!important;padding-bottom:100px!important}.cchat-inbox-page .cchat-room-list{max-height:none!important;overflow:visible!important}.cchat-inbox-page .cchat-user-strip{overflow-x:auto!important}.cchat-active-page .cchat-back{order:0}.cchat-active-page .cchat-peer-avatar{order:1}.cchat-active-page .cchat-peer-title{order:2}}


/* round51: fix chat inbox/list page layout on desktop and mobile */
html:has(.cchat-inbox-page),
body:has(.cchat-inbox-page),
html.is-chat-inbox-page-root,
body.is-chat-inbox-page{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:auto!important;
}
body.is-chat-inbox-page .ds-topbar,
body:has(.cchat-inbox-page) .ds-topbar{
  display:flex!important;
}
body.is-chat-inbox-page .ds-bottom-nav,
body:has(.cchat-inbox-page) .ds-bottom-nav{
  display:grid!important;
}
body.is-chat-inbox-page .app-shell,
body:has(.cchat-inbox-page) .app-shell{
  width:min(100%,560px)!important;
  max-width:560px!important;
  min-height:100vh!important;
  height:auto!important;
  margin:0 auto!important;
  padding-bottom:105px!important;
  overflow:hidden!important;
  display:block!important;
  background:linear-gradient(180deg,#fff 0,#fff 58%,#fbfaff 100%)!important;
  box-shadow:0 0 0 1px rgba(124,58,237,.06),0 28px 90px rgba(92,58,180,.13)!important;
  position:relative!important;
  inset:auto!important;
  z-index:auto!important;
}
body.is-chat-inbox-page .container.cchat-page.cchat-inbox-page,
body:has(.cchat-inbox-page) .container.cchat-page.cchat-inbox-page{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:auto!important;
  margin:0!important;
  padding:18px 20px 110px!important;
  overflow:visible!important;
  display:block!important;
  background:transparent!important;
  z-index:auto!important;
  transform:none!important;
}
body.is-chat-inbox-page .cchat-inbox-panel,
body:has(.cchat-inbox-page) .cchat-inbox-panel{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto 12px!important;
  border-radius:30px!important;
  overflow:visible!important;
}
body.is-chat-inbox-page .cchat-room-list,
body.is-chat-inbox-page .recent-room-list,
body:has(.cchat-inbox-page) .cchat-room-list,
body:has(.cchat-inbox-page) .recent-room-list{
  display:grid!important;
  max-height:none!important;
  overflow:visible!important;
}
body.is-chat-inbox-page .cchat-user-strip,
body:has(.cchat-inbox-page) .cchat-user-strip{
  display:flex!important;
  overflow-x:auto!important;
}
@media(min-width:1000px){
  body.is-chat-inbox-page .app-shell,
  body:has(.cchat-inbox-page) .app-shell{
    margin:22px auto!important;
    border-radius:42px!important;
    min-height:calc(100vh - 44px)!important;
  }
}
@media(max-width:760px){
  body.is-chat-inbox-page .container.cchat-page.cchat-inbox-page,
  body:has(.cchat-inbox-page) .container.cchat-page.cchat-inbox-page{
    padding:14px 14px 100px!important;
  }
  body.is-chat-inbox-page .cchat-inbox-panel,
  body:has(.cchat-inbox-page) .cchat-inbox-panel{
    border-radius:24px!important;
  }
}

/* v10 targeted fixes: mobile save, sharp taps, chat/privacy, service, reels */
*{ -webkit-tap-highlight-color: transparent; }
button,a,.social-action,.cchat-send,.cchat-tool-btn{touch-action:manipulation; -webkit-user-select:none; user-select:none}
.saved-top{display:inline-grid!important;visibility:visible!important}.saved-top svg{display:block!important}
.ds-bottom-nav .chat-unread-badge{right:10px;top:2px;transform:translate(25%,-25%)}
.ds-bottom-nav .chat-nav-link svg{filter:drop-shadow(0 3px 8px rgba(124,58,237,.22))}.ds-bottom-nav .chat-nav-link{border-radius:18px;background:linear-gradient(180deg,#fff,#f6f0ff)}
.cchat-inbox-header small{opacity:.8}.cchat-user-strip{margin-bottom:14px;scroll-snap-type:x mandatory}.privacy-lock{position:relative}.privacy-lock i{position:absolute;right:-3px;bottom:-3px;background:#fff;border-radius:999px;font-size:10px;padding:1px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.chat-request-list{display:grid;gap:8px;margin:8px 0 16px}.chat-request-row{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #eee;border-radius:16px;padding:10px}.mini-btn.danger{background:#fff1f2;color:#be123c}
.cchat-chat-header{grid-template-columns:auto auto minmax(0,1fr) auto}.cchat-peer-avatar{margin-inline:4px}.cchat-header-actions{display:flex;align-items:center;gap:6px}.cchat-header-actions button{width:36px;height:36px;border-radius:13px}
.chat-file-preview{overflow-x:auto}.file-preview-item video{object-fit:cover;border-radius:12px;background:#111}.cchat-message video{border-radius:16px;background:#111;max-height:340px;object-fit:cover}.voice-wave{gap:10px;min-width:210px}.wave-bars{display:flex;align-items:center;gap:3px;height:28px}.wave-bars i{width:3px;border-radius:4px;background:var(--primary);opacity:.65;animation:wavePulse 1s ease-in-out infinite}.wave-bars i:nth-child(1){height:9px}.wave-bars i:nth-child(2){height:18px;animation-delay:.05s}.wave-bars i:nth-child(3){height:12px;animation-delay:.1s}.wave-bars i:nth-child(4){height:24px;animation-delay:.15s}.wave-bars i:nth-child(5){height:14px;animation-delay:.2s}.wave-bars i:nth-child(6){height:20px;animation-delay:.25s}.wave-bars i:nth-child(7){height:10px;animation-delay:.3s}@keyframes wavePulse{50%{transform:scaleY(.55);opacity:1}}
.brand-avatar{overflow:hidden;display:grid;place-items:center}.brand-avatar img,.brand-dot img{width:100%;height:100%;object-fit:cover;border-radius:999px}.ad-actions button svg,.ad-actions span svg{fill:none!important;stroke:currentColor;stroke-width:2.1}.ad-actions .is-liked svg{fill:none!important}.ad-actions .is-saved svg{fill:none!important}
.explore-viewer.insta-viewer,.explore-viewer{position:fixed;inset:0;z-index:90;background:#050505}.viewer-feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory}.viewer-item{min-height:100dvh;display:grid;place-items:center;scroll-snap-align:start}.viewer-item .ds-ad-card{width:min(520px,100vw);height:100dvh;border-radius:0;margin:0;background:#000;color:#fff}.viewer-item .ds-media{height:100%;border-radius:0}.viewer-item .ad-actions{position:absolute;right:10px;bottom:88px;z-index:5;display:grid;gap:12px}.viewer-close{position:fixed;top:14px;left:14px;z-index:100;border:0;background:rgba(255,255,255,.2);color:#fff;border-radius:999px;width:42px;height:42px;font-size:28px}
.online-people-strip{overflow-x:auto;padding-bottom:8px}.online-person .story-inner{position:relative}.online-person .story-inner i{position:absolute;right:2px;bottom:2px;width:11px;height:11px;background:#22c55e;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 4px rgba(255,255,255,.8);animation:blinkOnline 1.4s infinite}@keyframes blinkOnline{50%{box-shadow:0 0 0 7px rgba(34,197,94,.18)}}
.status-scroll-hint{position:relative;overflow-x:auto}.status-scroll-hint:after{content:'← بکشید';position:sticky;left:8px;background:linear-gradient(90deg,#fff,rgba(255,255,255,.78));border-radius:999px;padding:4px 9px;color:#7c3aed;font-size:12px}
.field-error{color:#dc2626;font-size:12px}.form-field.has-error input,.form-field.has-error select,.form-field.has-error textarea{border-color:#dc2626!important;background:#fff7f7!important}.target-service-form select,.target-service-form input,.target-service-form textarea{width:100%}.viewers-sheet{position:fixed;inset:auto 0 0 0;z-index:110;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.22);max-height:70vh;overflow:auto;padding:18px}.viewer-row{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #f1f1f1}.viewer-row img,.viewer-row span{width:42px;height:42px;border-radius:50%;background:#f2eaff;display:grid;place-items:center;object-fit:cover}
@media(max-width:640px){.top-actions{gap:6px}.auth-mini.saved-top{display:grid!important;width:36px;height:36px}.cchat-header-actions{position:static}.cchat-peer-title{min-width:0;text-align:start}.cchat-chat-header{padding-inline:8px}.viewer-item .ad-actions{right:8px}.publish-actions{position:sticky;bottom:74px;background:rgba(255,255,255,.96);padding:10px;border-radius:18px}.halls-list .card,.hall-card{max-width:100%;overflow:hidden}.halls-list,.hall-grid{grid-template-columns:1fr!important}}

/* v12: keep profile icon + compact target service footer icon */
.ds-bottom-nav.nav-six{grid-template-columns:repeat(6,1fr);gap:2px;padding:0 8px;height:74px}
.ds-bottom-nav.nav-six a{height:50px;border-radius:20px}
.ds-bottom-nav.nav-six svg{width:22px;height:22px}
.ds-bottom-nav.nav-six .create-plus{width:56px;height:56px;margin-top:-22px}
.ds-bottom-nav.nav-six .create-plus svg{width:30px;height:30px}
.ds-bottom-nav.nav-six .nav-profile img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 6px 16px rgba(124,58,237,.2)}
.ds-bottom-nav.nav-six .target-service-nav{background:#fff;border:1px solid #eee7ff;color:var(--primary)}
.ds-bottom-nav.nav-six .target-service-nav:hover{background:#f5f0ff}
@media(max-width:390px){.ds-bottom-nav.nav-six{width:calc(100% - 16px);padding:0 5px}.ds-bottom-nav.nav-six a{height:46px}.ds-bottom-nav.nav-six svg{width:20px;height:20px}.ds-bottom-nav.nav-six .create-plus{width:52px;height:52px}}

/* v12: compact targeted filter page */
.target-service-page .compact-help{font-size:13px;line-height:1.9;margin-top:0}.compact-target-form{padding:12px;border-radius:24px}.target-two-col{display:grid;grid-template-columns:1fr 1fr;gap:9px}.target-field label{display:block;margin-bottom:5px;font-size:12px}.target-field-text,.target-field-file{grid-column:1/-1}.target-field textarea{min-height:78px;resize:vertical}.target-field input,.target-field select,.target-field textarea{border-radius:16px;padding:11px 12px;font-size:13px}.target-send-btn{margin-top:12px;border-radius:18px;padding:13px 14px}.target-pay-modal[hidden]{display:none!important}.target-pay-modal{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:18px}.target-pay-backdrop{position:absolute;inset:0;background:rgba(17,24,39,.42);backdrop-filter:blur(9px)}.target-pay-card{position:relative;width:min(430px,100%);background:#fff;border-radius:28px;padding:18px;box-shadow:0 24px 80px rgba(0,0,0,.24);animation:payPop .22s ease-out}.target-pay-card h2{margin:0 0 12px;font-size:20px;text-align:center}.modal-x{position:absolute;left:14px;top:12px;border:0;background:#f5f0ff;color:var(--primary);width:34px;height:34px;border-radius:50%;font-size:22px}.pay-summary-grid{display:grid;grid-template-columns:1fr auto;gap:9px;border:1px solid var(--line);border-radius:18px;padding:12px;background:#fbfaff}.pay-summary-grid span{color:#6b7280;font-size:13px}.pay-summary-grid b{font-weight:950}.wallet-animation{height:108px;display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:center;gap:8px;margin:8px 0 12px}.mini-wallet,.company-building{text-align:center;border:1px solid #eee7ff;background:#fff;border-radius:20px;padding:10px 8px;font-size:13px;font-weight:900;box-shadow:0 10px 25px rgba(124,58,237,.08)}.company-building{font-size:24px}.company-building b{font-size:13px}.heart-coins{position:relative;height:70px}.heart-coins i{position:absolute;right:0;top:26px;color:#ec4899;font-style:normal;font-size:19px;filter:drop-shadow(0 6px 8px rgba(236,72,153,.2));animation:heartPay 1.25s ease-in-out infinite}.heart-coins i:nth-child(2){animation-delay:.12s;top:15px}.heart-coins i:nth-child(3){animation-delay:.24s;top:35px}.heart-coins i:nth-child(4){animation-delay:.36s;top:8px}.heart-coins i:nth-child(5){animation-delay:.48s;top:45px}.sms-hint{font-size:12px;line-height:1.8;margin:10px 0}.sms-confirm-input{margin:8px 0 10px;text-align:center;font-weight:950;letter-spacing:4px}@keyframes heartPay{0%{transform:translateX(0) scale(.65);opacity:0}18%{opacity:1}75%{opacity:1}100%{transform:translateX(-120px) scale(1.05);opacity:0}}@keyframes payPop{from{transform:translateY(12px) scale(.97);opacity:0}to{transform:none;opacity:1}}
@media(max-width:430px){.target-two-col{grid-template-columns:1fr 1fr;gap:7px}.target-field input,.target-field select,.target-field textarea{font-size:12px;padding:10px}.target-field label{font-size:11px}.target-pay-card{border-radius:24px;padding:15px}.wallet-animation{height:95px}}

/* v13 requested fixes: chat header cleanup, Instagram-like chat icon, multi-select target filters */
.cchat-inbox-header-clean{justify-content:center;text-align:center;padding:12px 12px 4px!important;min-height:auto!important}
.cchat-inbox-header-clean h1{margin:0 auto!important;font-size:22px!important;font-weight:950!important;line-height:1.45!important;color:#111827!important}
.cchat-inbox-header-clean .cchat-total-badge{position:absolute;left:18px;top:14px}
.instagram-chat-icon svg{transform:rotate(-6deg)}
.instagram-chat-icon svg path{stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;fill:none;stroke:currentColor}
.instagram-chat-icon.active svg path,.ds-bottom-nav a.chat-nav-link:hover svg path{stroke:currentColor}
.target-title-clean{margin-bottom:4px!important}.target-title-clean h1{font-size:22px!important;line-height:1.6;text-align:center;width:100%}
.target-service-page .compact-help{text-align:center;margin-bottom:10px!important}
.target-service-form .target-two-col{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.target-service-form .target-field-text,.target-service-form .target-field-file{grid-column:span 1!important}
.target-field-media_kind{grid-column:span 1!important}
.target-multi-select{min-height:78px!important;overflow:auto!important;padding:7px!important;cursor:pointer;background:linear-gradient(180deg,#fff,#fbfaff)!important}
.target-multi-select option{padding:7px 9px;border-radius:10px;margin:2px 0;color:#111827}
.target-multi-select option:checked{background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#fff!important;font-weight:800}
.target-send-btn{font-size:15px;font-weight:950;box-shadow:0 12px 28px rgba(124,58,237,.22)}
@media(max-width:520px){.target-service-form .target-two-col{grid-template-columns:1fr 1fr!important;gap:7px!important}.target-field label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-title-clean h1{font-size:19px!important}.target-service-form .target-field-text,.target-service-form .target-field-file{grid-column:1/-1!important}.target-multi-select{min-height:72px!important}}

/* v14: premium target filter page like approved mockup */
.target-service-pro{padding-bottom:110px!important}.target-pro-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin:10px 0 14px}.target-pro-head h1{margin:0;text-align:center;font-size:22px;font-weight:950;color:#111827;letter-spacing:-.4px}.target-back,.target-head-icon{width:42px;height:42px;border-radius:18px;border:1px solid #eadfff;background:#fff;display:grid;place-items:center;color:var(--primary);box-shadow:0 10px 28px rgba(124,58,237,.08)}.target-back{text-decoration:none;font-size:30px;line-height:1}.target-head-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.target-pro-card{border-radius:24px!important;padding:16px!important;background:rgba(255,255,255,.96)!important;border:1px solid #ece5ff!important;box-shadow:0 18px 55px rgba(124,58,237,.08)!important}.target-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:start}.target-service-pro .target-field label{font-size:13px!important;font-weight:850!important;color:#111827!important;margin-bottom:7px!important;text-align:right!important}.target-service-pro .target-field input,.target-service-pro .target-field select,.target-service-pro .target-field textarea{height:46px;border-radius:13px!important;border:1px solid #e5e7eb!important;background:#fff!important;padding:0 12px!important;box-shadow:0 8px 24px rgba(15,23,42,.03)!important}.target-service-pro .target-field textarea{height:74px!important;padding:12px!important;resize:vertical}.target-field-text{grid-column:span 2!important}.target-field-file{grid-column:span 1!important}.target-age-box .age-range-row{height:46px;display:grid;grid-template-columns:auto 1fr auto 1fr;gap:7px;align-items:center;border:1px solid #e5e7eb;border-radius:13px;background:#fff;padding:5px 8px;box-shadow:0 8px 24px rgba(15,23,42,.03)}.target-age-box .age-range-row span{font-size:12px;color:#6b7280}.target-age-box .age-range-row select{height:34px!important;border-radius:10px!important;padding:0 8px!important;box-shadow:none!important;background:#fbfbff!important}.target-native-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.pretty-multi{position:relative}.pretty-trigger{width:100%;height:46px;border:1px solid #e5e7eb;background:#fff;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 13px;color:#6b7280;font-weight:750;box-shadow:0 8px 24px rgba(15,23,42,.03)}.pretty-trigger b{color:#7c3aed;font-size:16px}.pretty-multi.open .pretty-trigger{border-color:#c4b5fd;box-shadow:0 0 0 4px rgba(124,58,237,.08)}.pretty-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;min-height:25px}.pretty-chip,.pretty-more{border:0;background:#efe5ff;color:#6d28d9;border-radius:7px;padding:5px 8px;font-size:11px;font-weight:800}.pretty-more{display:inline-flex;align-items:center}.pretty-panel{position:absolute;z-index:80;top:54px;right:0;left:0;background:#fff;border:1px solid #e9ddff;border-radius:16px;box-shadow:0 22px 60px rgba(17,24,39,.17);padding:8px;max-height:260px;overflow:auto}.pretty-search{width:100%;height:38px;border:1px solid #eee!important;border-radius:12px!important;margin-bottom:7px;padding:0 10px!important}.pretty-options{display:grid;gap:4px}.pretty-option{display:flex;align-items:center;gap:8px;padding:8px;border-radius:11px;font-size:12px;font-weight:750;color:#374151;cursor:pointer}.pretty-option:hover{background:#f6f0ff}.pretty-option input{width:16px!important;height:16px!important;accent-color:#7c3aed}.target-price-panel{margin-top:18px;border:1px solid #eadfff;background:linear-gradient(180deg,#fbf8ff,#fff);border-radius:20px;padding:13px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;align-items:stretch}.price-stat{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:8px;border-left:1px solid #efe7ff;padding-left:8px}.price-stat:last-of-type{border-left:0}.price-stat i{grid-row:1/3;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#6d28d9);display:grid;place-items:center;font-style:normal;color:#fff;box-shadow:0 12px 22px rgba(124,58,237,.22)}.price-stat span{font-size:12px;color:#6b7280}.price-stat b{font-size:16px;color:#4c1d95;font-weight:950}.target-send-btn{grid-column:1/-1!important;margin:2px 0 0!important;border-radius:15px!important;height:50px!important;font-size:17px!important;font-weight:950!important;background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important}.target-price-note{margin:12px 0 0;border:1px solid #cfe3ff;background:#eff7ff;color:#1e40af;border-radius:13px;padding:10px;text-align:center;font-size:12px;font-weight:750}.target-history-card{margin-top:14px}.target-service-page .compact-help,.target-title-clean{display:none!important}
@media(max-width:760px){.target-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.target-field-text,.target-field-file{grid-column:1/-1!important}.target-pro-head h1{font-size:19px}.target-price-panel{grid-template-columns:1fr}.price-stat{border-left:0;border-bottom:1px solid #efe7ff;padding:7px 0}.price-stat:last-of-type{border-bottom:0}.pretty-panel{position:fixed;right:16px;left:16px;top:auto;bottom:92px;max-height:48vh}.target-service-pro .target-field label{font-size:12px!important}.pretty-trigger{height:43px}.target-service-pro .target-field input,.target-service-pro .target-field select{height:43px}.target-age-box .age-range-row{height:43px}.target-pro-card{padding:12px!important}}
@media(max-width:390px){.target-filter-grid{gap:8px}.pretty-chip,.pretty-more{font-size:10px;padding:4px 6px}.target-pro-head{grid-template-columns:38px 1fr 38px}.target-back,.target-head-icon{width:38px;height:38px}.target-pro-head h1{font-size:17px}}

/* v15: unified content box, cleaner footer target icon, remove helper labels */
.target-field-country::after,.target-field-city::after,.target-field-gender::after,.target-field-job_title::after,.target-field-brand::after,.target-field-name_query::after{content:none!important;display:none!important}
.target-price-note{display:none!important}
.target-content-box{grid-column:1/-1!important}
.target-content-unified{display:grid;grid-template-columns:1fr 2fr 1.15fr;gap:10px;align-items:stretch;border:1px solid #eadfff;background:linear-gradient(180deg,#fbf8ff,#fff);border-radius:18px;padding:10px}
.target-content-unified span{display:block;font-size:11px;font-weight:850;color:#6b7280;margin-bottom:6px}
.target-content-type select,.target-content-message textarea{height:54px!important;border-radius:14px!important;margin:0!important}
.target-content-message textarea{min-height:54px!important;resize:vertical!important;padding:12px!important}
.target-file-drop{height:100%;min-height:72px;border:1px dashed #c4b5fd;border-radius:15px;background:#fff;display:grid!important;place-items:center;text-align:center;padding:10px!important;cursor:pointer;color:#6d28d9!important;margin:0!important}
.target-file-drop b{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#efe5ff;color:#6d28d9;padding:7px 13px;font-size:12px;margin-top:3px}
.target-file-drop input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.ds-bottom-nav.nav-six .target-service-nav{display:flex!important;flex-direction:column;gap:2px;align-items:center;justify-content:center;background:#f6f0ff!important;border:1px solid #eadfff!important;color:var(--primary)!important;border-radius:24px!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.04)}
.ds-bottom-nav.nav-six .target-service-nav svg{width:25px!important;height:25px!important;stroke-width:2.6!important;fill:none!important;stroke:currentColor!important}
.ds-bottom-nav.nav-six .target-service-nav span{font-size:10px;font-weight:950;line-height:1;white-space:nowrap;color:var(--primary)}
.ds-bottom-nav.nav-six .target-service-nav:hover{background:#efe5ff!important;box-shadow:0 10px 26px rgba(124,58,237,.14)}
@media(max-width:760px){.target-content-unified{grid-template-columns:1fr;gap:8px}.target-file-drop{min-height:64px}.ds-bottom-nav.nav-six .target-service-nav span{font-size:9px}.ds-bottom-nav.nav-six .target-service-nav svg{width:23px!important;height:23px!important}}
@media(max-width:390px){.ds-bottom-nav.nav-six .target-service-nav span{display:none}.ds-bottom-nav.nav-six .target-service-nav{border-radius:20px!important}}

/* v16 visual panel business settings */
.visual-business-settings{margin-top:16px;padding:18px;border-radius:24px;background:rgba(255,255,255,.92);box-shadow:0 18px 50px rgba(80,50,140,.10)}
.business-setting-tiles{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}
.business-check-tile{cursor:pointer;gap:10px}
.admin-check-row{display:flex;align-items:center;gap:10px;margin-top:8px;font-weight:800;color:var(--primary)}
.admin-check-row em{font-style:normal}
.ds-check{width:22px;height:22px;accent-color:var(--primary)}
@media(max-width:780px){.business-setting-tiles{grid-template-columns:1fr}.visual-business-settings{padding:14px}}


/* v18 hotfix: restore stable footer layout, prevent iOS zoom, keep filter/chat compact */
html,body{max-width:100%;overflow-x:hidden!important;-webkit-text-size-adjust:100%;}
input,select,textarea,button,.ds-input{font-size:16px!important;touch-action:manipulation;}
.ds-bottom-nav.nav-six{direction:ltr!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;align-items:center!important;justify-items:center!important;padding:0 10px!important;overflow:visible!important;}
.ds-bottom-nav.nav-six>a{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:2px!important;text-align:center!important;position:relative!important;}
.ds-bottom-nav.nav-six svg{width:25px!important;height:25px!important;flex:0 0 auto!important;}
.ds-bottom-nav.nav-six .create-plus{width:64px!important;height:64px!important;min-width:64px!important;margin-top:-28px!important;border-radius:50%!important;}
.ds-bottom-nav.nav-six .target-service-nav span{display:block!important;font-size:10px!important;line-height:1.1!important;font-weight:900!important;white-space:nowrap!important;}
.online-footer-badge{position:absolute!important;left:12px!important;top:-14px!important;z-index:3!important;direction:ltr!important;}
@media(max-width:560px){.ds-bottom-nav{width:calc(100% - 24px)!important;left:12px!important;right:12px!important;transform:none!important}.ds-bottom-nav.nav-six{height:74px!important;border-radius:30px!important}.ds-bottom-nav.nav-six .target-service-nav span{font-size:9px!important}.ds-bottom-nav.nav-six>a{height:54px!important}.app-shell{overflow-x:hidden!important}.target-service-page{padding-inline:14px!important}.target-filter-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}.target-content-box{grid-column:1/-1!important}.target-price-panel{position:relative!important;z-index:1!important}.cchat-inbox-page,.cchat-page{overflow-x:hidden!important}.cchat-page *{max-width:100%}}
.online-people-strip .online-empty{display:inline-flex;align-items:center;padding:12px 16px;border-radius:999px;background:#f5f0ff;color:var(--primary);font-weight:900;white-space:nowrap}
.ad-media{touch-action:manipulation!important}.social-strip button{border:0;background:transparent;font:inherit;cursor:pointer;color:inherit}.social-strip button:disabled{opacity:.55;pointer-events:none}

/* v19 requested hotfix only: footer filter icon, no zoom, stable chat controls */
html,body{overscroll-behavior-x:none!important;touch-action:pan-y!important;}
input,select,textarea,.ds-input,.pretty-search,.cchat-compose textarea,.target-service-form input,.target-service-form select,.target-service-form textarea{font-size:16px!important;line-height:1.35!important;}
.ds-bottom-nav.nav-six{grid-template-columns:repeat(5,minmax(0,1fr))!important;justify-items:center!important;align-items:center!important;direction:ltr!important;}
.ds-bottom-nav.nav-six .target-service-nav span{display:none!important;visibility:hidden!important;width:0!important;height:0!important;overflow:hidden!important;}
.ds-bottom-nav.nav-six .target-service-nav{background:transparent!important;border:0!important;box-shadow:none!important;color:#111827!important;}
.ds-bottom-nav.nav-six .target-service-nav svg{width:28px!important;height:28px!important;fill:#111827!important;stroke:#111827!important;stroke-width:1.8!important;}
.ds-bottom-nav.nav-six .target-service-nav.active,.ds-bottom-nav.nav-six .target-service-nav:hover{background:transparent!important;color:#111827!important;box-shadow:none!important;}
.cchat-compose{overflow:visible!important;position:sticky!important;bottom:0!important;z-index:25!important;}
.cchat-compose-main{position:relative!important;min-width:0!important;}
.cchat-emoji-panel,.cchat-compose .emoji-palette{position:absolute!important;right:0!important;left:auto!important;bottom:54px!important;z-index:300!important;background:#fff!important;border:1px solid #eadfff!important;border-radius:18px!important;box-shadow:0 18px 50px rgba(17,24,39,.18)!important;padding:8px!important;display:grid!important;grid-template-columns:repeat(6,32px)!important;gap:6px!important;max-height:190px!important;overflow:auto!important;}
.cchat-emoji-panel[hidden],.cchat-compose .emoji-palette[hidden]{display:none!important;}
.cchat-emoji-btn,.cchat-tool-btn,.cchat-send,.cchat-attach{pointer-events:auto!important;touch-action:manipulation!important;}
.cchat-page,.target-service-page{touch-action:pan-y!important;}
@media(max-width:560px){.ds-bottom-nav.nav-six{padding:0 8px!important}.ds-bottom-nav.nav-six .target-service-nav svg{width:27px!important;height:27px!important}.cchat-compose{grid-template-columns:34px minmax(0,1fr) 34px 34px 34px 40px!important}.target-service-page{overflow-x:hidden!important}.pretty-panel{z-index:500!important}}

/* v20 requested-only fix: Instagram-like viewer opened only from media tap */
html.ds-viewer-open, html.ds-viewer-open body{overflow:hidden!important;touch-action:none;}
.explore-viewer.insta-viewer{position:fixed!important;inset:0!important;z-index:9999!important;background:#000!important;padding:0!important;}
.explore-viewer.insta-viewer[hidden]{display:none!important;}
.explore-viewer.insta-viewer .viewer-feed{height:100dvh!important;overflow-y:auto!important;scroll-snap-type:y mandatory!important;background:#000!important;}
.explore-viewer.insta-viewer .viewer-item{position:relative!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;display:block!important;scroll-snap-align:start!important;background:#000!important;overflow:hidden!important;}
.explore-viewer.insta-viewer .viewer-item .ds-ad-card{position:relative!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;overflow:hidden!important;color:#fff!important;}
.explore-viewer.insta-viewer .viewer-item .ad-mini-head,.explore-viewer.insta-viewer .viewer-item .carousel-dots{display:none!important;}
.explore-viewer.insta-viewer .viewer-item .ds-media,.explore-viewer.insta-viewer .viewer-item .ad-media-wrap,.explore-viewer.insta-viewer .viewer-item .media-track,.explore-viewer.insta-viewer .viewer-item .media-slide{width:100vw!important;height:100dvh!important;border-radius:0!important;overflow:hidden!important;background:#000!important;}
.explore-viewer.insta-viewer .viewer-item .media-track{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;}
.explore-viewer.insta-viewer .viewer-item .media-slide{min-width:100vw!important;scroll-snap-align:center!important;}
.explore-viewer.insta-viewer .viewer-item .ad-media{width:100vw!important;height:100dvh!important;max-height:none!important;aspect-ratio:auto!important;border-radius:0!important;object-fit:cover!important;display:block!important;background:#000!important;}
.explore-viewer.insta-viewer .viewer-item .social-strip{position:absolute!important;inset:auto 14px 110px auto!important;width:58px!important;height:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:8px 0!important;border:1px solid rgba(255,255,255,.28)!important;border-radius:30px!important;background:rgba(20,20,25,.24)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;z-index:12!important;overflow:visible!important;}
.rtl .explore-viewer.insta-viewer .viewer-item .social-strip{inset:auto auto 110px 14px!important;}
.explore-viewer.insta-viewer .viewer-item .social-strip button,.explore-viewer.insta-viewer .viewer-item .social-strip a,.explore-viewer.insta-viewer .viewer-item .social-strip span{width:48px!important;height:48px!important;margin:0 auto!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.18)!important;color:#fff!important;display:grid!important;place-items:center!important;gap:0!important;box-shadow:0 10px 28px rgba(0,0,0,.18)!important;}
.explore-viewer.insta-viewer .viewer-item .social-strip svg{width:24px!important;height:24px!important;}
.explore-viewer.insta-viewer .viewer-item .social-strip b{font-size:11px!important;color:#fff!important;line-height:1!important;}
.explore-viewer.insta-viewer .viewer-item .ad-caption-mini{position:absolute!important;left:14px!important;right:82px!important;bottom:34px!important;z-index:12!important;margin:0!important;padding:10px 12px!important;border-radius:18px!important;background:rgba(20,20,25,.22)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;color:#fff!important;}
.rtl .explore-viewer.insta-viewer .viewer-item .ad-caption-mini{left:82px!important;right:14px!important;}
.explore-viewer.insta-viewer .viewer-item .ad-caption-mini b,.explore-viewer.insta-viewer .viewer-item .ad-caption-mini span{color:#fff!important;}
.explore-viewer.insta-viewer .viewer-item .mini-contact{position:absolute!important;left:14px!important;right:82px!important;bottom:84px!important;z-index:12!important;margin:0!important;border:1px solid rgba(255,255,255,.24)!important;background:rgba(20,20,25,.20)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;color:#fff!important;}
.rtl .explore-viewer.insta-viewer .viewer-item .mini-contact{left:82px!important;right:14px!important;}
.explore-viewer.insta-viewer .viewer-close{position:fixed!important;top:14px!important;left:14px!important;z-index:10000!important;border:0!important;background:rgba(255,255,255,.18)!important;color:#fff!important;border-radius:999px!important;width:44px!important;height:44px!important;font-size:30px!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;}

/* v21 requested-only visual fixes */
.cchat-active-page .cchat-chat-header{grid-template-columns:38px 1fr auto!important;position:relative!important;gap:6px!important;overflow:visible!important;}
.cchat-active-page .cchat-peer-avatar{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:42px!important;height:42px!important;z-index:1!important;margin:0!important;pointer-events:none!important;}
.cchat-active-page .cchat-peer-title{padding-inline-start:46px!important;min-width:0!important;}
.cchat-active-page .cchat-header-actions{position:relative!important;z-index:2!important;}
.cchat-active-page .cchat-back{position:relative!important;z-index:2!important;}
.cchat-gif-btn{font-size:9px!important;letter-spacing:.1px!important;padding:0!important;}
@media(max-width:760px){
  .cchat-active-page .cchat-chat-header{grid-template-columns:36px 1fr auto!important;padding-inline:8px!important;}
  .cchat-active-page .cchat-peer-avatar{width:38px!important;height:38px!important;}
  .cchat-active-page .cchat-peer-title{padding-inline-start:40px!important;}
}
.target-field-brand{display:none!important;}
.explore-viewer.insta-viewer .viewer-feed{overflow-x:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important;}
.explore-viewer.insta-viewer .viewer-item{overflow:hidden!important;touch-action:pan-y!important;}
.explore-viewer.insta-viewer .viewer-item .media-track{overflow-x:hidden!important;scroll-snap-type:none!important;touch-action:pan-y!important;}
.explore-viewer.insta-viewer .viewer-item .media-slide{min-width:100vw!important;max-width:100vw!important;}
.explore-viewer.insta-viewer .viewer-item .media-slide:not(:first-child){display:none!important;}
.explore-viewer.insta-viewer .viewer-item .mute-btn{display:grid!important;position:absolute!important;top:18px!important;right:18px!important;left:auto!important;bottom:auto!important;z-index:30!important;width:44px!important;height:44px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.20)!important;color:#fff!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;place-items:center!important;font-size:20px!important;box-shadow:0 10px 28px rgba(0,0,0,.2)!important;}
.rtl .explore-viewer.insta-viewer .viewer-item .mute-btn{left:18px!important;right:auto!important;}


/* v24 requested-only: footer scale/order + sheets over fullscreen reels */
.ds-bottom-nav.nav-six{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:2px!important;padding:0 8px!important;height:70px!important;align-items:center!important;}
.ds-bottom-nav.nav-six a{width:100%!important;min-width:0!important;height:50px!important;border-radius:20px!important;position:relative!important;}
.ds-bottom-nav.nav-six a svg{width:22px!important;height:22px!important;}
.ds-bottom-nav.nav-six .create-plus{width:56px!important;height:56px!important;margin-top:-18px!important;}
.ds-bottom-nav.nav-six .create-plus svg{width:29px!important;height:29px!important;}
.ds-bottom-nav.nav-six .target-service-nav svg{width:24px!important;height:24px!important;fill:#111!important;stroke:#111!important;}
.chat-unread-badge,.top-unread-badge{min-width:18px!important;height:18px!important;padding:0 5px!important;font-size:10px!important;line-height:18px!important;}
.ds-bottom-nav .chat-unread-badge{top:2px!important;right:50%!important;transform:translateX(18px)!important;}
.online-footer-badge{transform:scale(.86)!important;transform-origin:center!important;}
.ds-viewer-open .comment-sheet,.ds-viewer-open .share-sheet{z-index:12050!important;}

/* v25 requested only: visible chat lock, target upload preview, fullscreen comment layout */
.chat-privacy-toggle-box{margin:10px 0 12px}.chat-privacy-toggle{width:100%;border:1px solid #e9ddff;background:#fff;border-radius:18px;padding:10px 12px;display:flex;align-items:center;gap:10px;text-align:right;font:inherit;font-weight:900;color:#241642;box-shadow:0 10px 28px rgba(124,58,237,.08);cursor:pointer}.chat-privacy-toggle.is-locked{background:#fff7ed;border-color:#fed7aa;color:#9a3412}.chat-privacy-toggle.is-open{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.chat-privacy-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.85);box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}.chat-privacy-text{font-size:12px;line-height:1.6}
.target-file-preview{grid-column:1/-1;border:1px solid #eadfff;background:#fff;border-radius:16px;padding:10px;display:grid;grid-template-columns:82px 1fr;gap:10px;align-items:center;margin-top:8px}.target-file-preview[hidden]{display:none!important}.target-file-preview img,.target-file-preview video{width:82px;height:82px;object-fit:cover;border-radius:14px;background:#111}.target-file-preview .file-info{display:grid;gap:7px;font-size:12px;font-weight:850;color:#374151}.target-file-preview .upload-bar{height:8px;border-radius:99px;background:#efe7ff;overflow:hidden}.target-file-preview .upload-bar i{display:block;height:100%;width:0;background:linear-gradient(135deg,#8b5cf6,#6d28d9);border-radius:99px;animation:targetFakeLoad .85s ease forwards}@keyframes targetFakeLoad{to{width:100%}}.target-upload-state{display:block;margin-top:6px;font-style:normal;font-size:11px;font-weight:850;color:#6d28d9}.explore-viewer .mini-contact,.insta-viewer .mini-contact{display:none!important}.explore-viewer .social-strip,.insta-viewer .social-strip{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);width:min(440px,calc(100% - 28px));background:rgba(17,24,39,.26)!important;backdrop-filter:blur(16px);border-color:rgba(255,255,255,.22)!important;color:#fff!important;z-index:120;border-radius:24px}.explore-viewer .social-strip button,.insta-viewer .social-strip button{color:#fff!important;background:transparent!important}

/* v26 requested-only: stable centered footer + remove chat icon frame */
.ds-bottom-nav.nav-six{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  justify-items:center!important;
  align-items:center!important;
  gap:0!important;
  padding:0 10px calc(env(safe-area-inset-bottom,0px) * .35)!important;
  left:12px!important;
  right:12px!important;
  width:auto!important;
  max-width:560px!important;
  margin:0 auto!important;
  transform:none!important;
  direction:ltr!important;
}
.ds-bottom-nav.nav-six>a{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.ds-bottom-nav.nav-six .chat-nav-link,.ds-bottom-nav.nav-six .chat-nav-link.instagram-chat-icon{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
.ds-bottom-nav.nav-six .chat-nav-link svg{filter:none!important;}
.ds-bottom-nav.nav-six a svg{width:22px!important;height:22px!important;}
.ds-bottom-nav.nav-six .target-service-nav svg{width:23px!important;height:23px!important;fill:#111!important;stroke:#111!important;}
.ds-bottom-nav.nav-six .create-plus{width:54px!important;height:54px!important;min-width:54px!important;margin-top:-18px!important;border-radius:50%!important;}
.ds-bottom-nav.nav-six .create-plus svg{width:28px!important;height:28px!important;}
.ds-bottom-nav.nav-six .nav-profile img{width:30px!important;height:30px!important;}
.ds-bottom-nav .chat-unread-badge{font-size:10px!important;min-width:17px!important;height:17px!important;line-height:17px!important;top:4px!important;right:50%!important;transform:translateX(16px)!important;}
@media(max-width:560px){.ds-bottom-nav.nav-six{left:10px!important;right:10px!important;height:68px!important;border-radius:28px!important;padding-inline:8px!important}.ds-bottom-nav.nav-six a svg{width:21px!important;height:21px!important}.ds-bottom-nav.nav-six .target-service-nav svg{width:22px!important;height:22px!important}.ds-bottom-nav.nav-six .create-plus{width:52px!important;height:52px!important}}
/* v27: shared clip in chat must render as the clip card only, without caption text */
.shared-ad-media-card{position:relative;display:block;width:min(220px,62vw);aspect-ratio:9/16;overflow:hidden;border-radius:18px;background:#111;padding:0;border:0;box-shadow:0 8px 24px rgba(0,0,0,.14);max-width:220px}
.shared-ad-media-card video,.shared-ad-media-card img{width:100%;height:100%;object-fit:cover;display:block;margin:0;border-radius:18px}
.shared-ad-media-card .shared-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:28px;text-shadow:0 3px 10px rgba(0,0,0,.55);background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.22));pointer-events:none}
@media(max-width:620px){.shared-ad-media-card{width:min(170px,56vw);max-width:170px;border-radius:16px}.shared-ad-media-card video,.shared-ad-media-card img{border-radius:16px}}

/* v28 requested fixes only */
.ad-owner-name{display:flex;align-items:center;gap:4px;min-width:0;font-weight:950;color:#252238;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-owner-name small{font-weight:800;color:#8b90a3;font-size:11px}.explore-viewer.insta-viewer .viewer-item .ad-mini-head{display:flex!important;position:absolute!important;top:14px!important;left:14px!important;right:76px!important;z-index:32!important;height:46px!important;margin:0!important;padding:4px 8px!important;border-radius:999px!important;background:rgba(0,0,0,.28)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;color:#fff!important}.rtl .explore-viewer.insta-viewer .viewer-item .ad-mini-head{left:76px!important;right:14px!important}.explore-viewer.insta-viewer .viewer-item .ad-mini-head .play-chip,.explore-viewer.insta-viewer .viewer-item .ad-mini-head .more-dot,.explore-viewer.insta-viewer .viewer-item .ad-mini-head .more-menu{display:none!important}.explore-viewer.insta-viewer .viewer-item .ad-mini-head .brand-dot{margin:0!important;width:38px!important;height:38px!important;min-width:38px!important}.explore-viewer.insta-viewer .viewer-item .ad-mini-head .ad-owner-name{color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.45)!important}.explore-viewer.insta-viewer .viewer-item .ad-mini-head .ad-owner-name small{color:rgba(255,255,255,.82)!important}.explore-viewer.insta-viewer .viewer-item .social-strip{right:14px!important;left:auto!important;bottom:118px!important;width:58px!important}.rtl .explore-viewer.insta-viewer .viewer-item .social-strip{left:14px!important;right:auto!important}.explore-viewer.insta-viewer .viewer-item .social-strip button{display:grid!important;grid-template-rows:24px 14px!important;place-items:center!important}.ds-bottom-nav.nav-six>a{color:#111827!important}.ds-bottom-nav.nav-six>a.active{color:#111827!important;background:transparent!important;box-shadow:none!important}.ds-bottom-nav.nav-six>a.active svg{stroke:#111827!important}.ds-bottom-nav.nav-six .create-plus{width:66px!important;height:66px!important;min-width:66px!important;margin-top:-28px!important;border-radius:50%!important;background:#fff!important;color:#7C3AED!important;border:5px solid #7C3AED!important;box-shadow:0 14px 34px rgba(124,58,237,.32)!important}.ds-bottom-nav.nav-six .create-plus svg{width:34px!important;height:34px!important;stroke:#7C3AED!important}.target-service-page .emoji-palette,.target-service-page [data-emoji-palette],.target-service-page .emoji-toggle,.target-service-page [data-emoji-toggle]{display:none!important}.cchat-profile-link{border:0;border-radius:999px;background:#f1ecff;color:#6d28d9;font-size:12px;font-weight:950;padding:8px 10px;white-space:nowrap}.chat-privacy-toggle-box{margin:8px 0 14px}.chat-privacy-toggle{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #e8e1ff;background:#fff;border-radius:18px;padding:11px 13px;font:inherit;text-align:right;color:#1f2333}.chat-privacy-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f3edff}.chat-privacy-toggle.is-locked .chat-privacy-icon{background:#fff1f2}.chat-privacy-text{font-size:12px;font-weight:850;line-height:1.7}

/* v29 requested-only fixes */
.cchat-profile-link{display:none!important}
.cchat-profile-bar{display:block;width:100%;margin:0;padding:10px 14px;text-align:center;border-top:1px solid #f0edf7;border-bottom:1px solid #f0edf7;background:#f7f3ff;color:#6d28d9;font-size:13px;font-weight:950}
.cchat-profile-bar:active{background:#eee7ff}
.ds-ad-card .ad-mini-head{direction:rtl!important;justify-content:flex-start!important}
.ds-ad-card .ad-mini-head .brand-dot{order:1!important;margin-inline-start:0!important;margin-inline-end:0!important;flex:0 0 auto!important}
.ds-ad-card .ad-mini-head .ad-owner-name{order:2!important;direction:ltr!important;text-align:left!important;flex:0 1 auto!important}
.ds-ad-card .ad-mini-head .play-chip{order:3!important;margin-inline-start:auto!important;flex:0 0 auto!important}
.ds-ad-card .ad-mini-head .more-dot,.ds-ad-card .ad-mini-head .more-menu{order:4!important}
.explore-viewer.insta-viewer .viewer-item .ad-mini-head .brand-dot{order:1!important;margin:0!important}
.explore-viewer.insta-viewer .viewer-item .ad-mini-head .ad-owner-name{order:2!important;direction:ltr!important;text-align:left!important}
.explore-viewer.insta-viewer .viewer-item .social-strip{right:24px!important;left:auto!important;bottom:126px!important;width:56px!important;max-width:56px!important;transform:none!important;z-index:40!important}
.rtl .explore-viewer.insta-viewer .viewer-item .social-strip{left:24px!important;right:auto!important;transform:none!important}
.explore-viewer.insta-viewer .viewer-item .social-strip button,.explore-viewer.insta-viewer .viewer-item .social-strip a,.explore-viewer.insta-viewer .viewer-item .social-strip span{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;margin:0 auto!important}

/* v30 requested-only: icon-only chat lock, profile caption, circular profile posts */
.chat-privacy-icon-form{display:flex!important;justify-content:center!important;margin:8px 0 14px!important}
.chat-privacy-toggle.chat-privacy-icon-only{width:58px!important;height:58px!important;min-width:58px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;gap:0!important;text-align:center!important;box-shadow:0 14px 34px rgba(124,58,237,.14)!important}
.chat-privacy-toggle.chat-privacy-icon-only .chat-privacy-icon{width:100%!important;height:100%!important;border-radius:50%!important;font-size:26px!important;background:#eefcf3!important;border:2px solid #22c55e!important;box-shadow:0 0 0 5px rgba(34,197,94,.12)!important}
.chat-privacy-toggle.chat-privacy-icon-only.is-locked .chat-privacy-icon{background:#fff1f2!important;border-color:#ef4444!important;box-shadow:0 0 0 5px rgba(239,68,68,.12)!important}
.chat-privacy-toggle.chat-privacy-icon-only .chat-privacy-text{display:none!important}
.profile-hero-v30 h1{margin-bottom:8px!important}
.profile-caption-box{position:relative;margin:0 auto 14px;max-width:420px;display:grid;gap:8px;justify-items:center}
.profile-caption-text{margin:0 auto 4px;color:#4b4f63;font-size:13px;line-height:1.8;font-weight:800;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.public-caption{padding:8px 12px;border-radius:16px;background:#f7f3ff;color:#5b21b6}
.profile-caption-create{border:1px dashed #c4b5fd;background:#fbf8ff;color:#6d28d9;border-radius:999px;padding:9px 14px;font:inherit;font-size:12px;font-weight:950;cursor:pointer}
.profile-caption-pencil{width:30px;height:30px;border:0;border-radius:50%;background:#f1ecff;color:#6d28d9;font-weight:950;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 18px rgba(124,58,237,.12)}
.profile-caption-form{width:100%;display:grid;gap:8px;margin-top:4px}
.profile-caption-form[hidden]{display:none!important}
.profile-caption-form textarea{min-height:78px;border-radius:18px;font-size:13px!important;line-height:1.8;resize:vertical}
.profile-caption-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-caption-actions button{border:0;border-radius:16px;padding:10px 12px;font:inherit;font-size:12px;font-weight:950;cursor:pointer;background:#6d28d9;color:#fff}
.profile-caption-actions button[type="button"]{background:#f3f0ff;color:#6d28d9}
.profile-circle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:8px 0 14px;direction:ltr}
.profile-circle-post{border:0;background:transparent;padding:0;display:grid;gap:6px;place-items:center;cursor:pointer;min-width:0;font-family:var(--app-font)}
.profile-circle-media{width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;display:block;background:#161827;border:3px solid #fff;box-shadow:0 12px 30px rgba(35,24,72,.14),0 0 0 1px #eadfff;position:relative}
.profile-circle-media video,.profile-circle-media img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.profile-circle-post.is-active .profile-circle-media{box-shadow:0 14px 34px rgba(124,58,237,.22),0 0 0 4px #7c3aed;border-color:#fff}
.profile-circle-status{max-width:100%;padding:4px 8px;border-radius:999px;background:#f3f0ff;color:#6d28d9;font-size:10px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl}
.profile-detail-hint{text-align:center;color:#8b90a3;font-size:12px;font-weight:850;margin:4px 0 14px}
.profile-ad-detail[hidden]{display:none!important}
.profile-ad-detail{animation:profileDetailIn .18s ease-out}
@keyframes profileDetailIn{from{opacity:.25;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:420px){.profile-circle-grid{gap:10px}.profile-circle-status{font-size:9px;padding:3px 6px}.profile-caption-box{max-width:100%}}


/* v31 requested-only fixes: chat profile bar, profile converted posts, review double-tap like */
.cchat-active-page .cchat-conversation,.cchat-conversation{grid-template-rows:auto auto minmax(0,1fr) auto auto!important;}
.cchat-profile-bar{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:38px!important;margin:0!important;padding:9px 14px!important;text-align:center!important;border-top:1px solid #f0edf7!important;border-bottom:1px solid #eee8fb!important;background:#f7f3ff!important;color:#6d28d9!important;font-size:13px!important;font-weight:1000!important;position:relative!important;z-index:24!important;}
.cchat-profile-bar:hover{background:#efe9ff!important;}
.profile-circle-post.is-converted{display:none!important;}
.review-ad-summary{position:relative!important;overflow:hidden!important;}
.review-ad-summary .review-like-media{cursor:pointer!important;touch-action:manipulation!important;}
.review-heart-pop{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%) scale(.55);z-index:20;font-size:72px;line-height:1;color:#fff;text-shadow:0 10px 35px rgba(0,0,0,.35);opacity:0;pointer-events:none;animation:reviewHeartPop .82s ease forwards;}
@keyframes reviewHeartPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}35%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}100%{opacity:0;transform:translate(-50%,-50%) scale(.92)}}
@media(max-width:760px){.cchat-profile-bar{min-height:36px!important;font-size:12.5px!important;padding:8px 12px!important;}}

/* v32: keep chat read state as ticks only; never show the seen text beside messages. */
.seen-time{display:none!important}

/* v33 - hall-specific owner reward settings */
.hall-reward-panel{padding:18px}
.hall-reward-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.hall-reward-head b{display:block;font-size:17px;margin-bottom:4px}
.hall-reward-head small{display:block;color:var(--muted,#777)}
.hall-reward-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.hall-reward-card{border:1px solid rgba(124,58,237,.16);background:rgba(255,255,255,.82);border-radius:22px;padding:14px;box-shadow:0 12px 35px rgba(15,23,42,.06)}
.hall-reward-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.hall-reward-title img,.hall-reward-title>span{width:46px;height:46px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,rgba(124,58,237,.14),rgba(167,139,250,.22));color:var(--primary,#7C3AED);font-weight:900}
.hall-reward-title h3{margin:0;font-size:17px}
.hall-reward-title small{color:var(--muted,#777)}
.hall-reward-fields{display:grid;gap:10px}
.hall-reward-fields label{display:grid;gap:6px;background:rgba(124,58,237,.04);border:1px solid rgba(124,58,237,.08);border-radius:16px;padding:10px}
.hall-reward-fields label b{font-size:13px}
.hall-reward-fields label small{color:var(--muted,#777);font-size:12px}
.hall-reward-fields .ds-input{width:100%}
.hall-reward-check{display:flex!important;align-items:center;justify-content:flex-start;gap:8px}
.hall-reward-formula{margin-top:12px;border-radius:16px;padding:10px;background:linear-gradient(135deg,rgba(124,58,237,.1),rgba(167,139,250,.12));display:grid;gap:5px}
.hall-reward-formula span{font-size:12px;color:var(--muted,#777)}
.hall-reward-formula b{font-size:13px;color:#3b0764}
@media(max-width:640px){.hall-reward-panel{padding:12px}.hall-reward-head .btn{width:100%!important}.hall-reward-list{grid-template-columns:1fr}}


/* v34 PWA install button */
.pwa-install-pill{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:calc(82px + env(safe-area-inset-bottom));z-index:70;border:0;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;display:flex;align-items:center;gap:8px;padding:10px 14px;box-shadow:0 14px 34px rgba(124,58,237,.26);font:800 13px var(--app-font);cursor:pointer}
.pwa-install-pill[hidden]{display:none!important}
.pwa-install-pill span{width:24px;height:24px;border-radius:999px;background:rgba(255,255,255,.18);display:grid;place-items:center}
@media(min-width:760px){.pwa-install-pill{bottom:24px}}
@media(display-mode:standalone){.pwa-install-pill{display:none!important}}

/* v35 performance: keep long feeds light while preserving current layout */
.ds-ad-card,
.profile-ad-detail,
.viewer-item{
  content-visibility:auto;
  contain-intrinsic-size:720px;
}
.ad-media-wrap,
.media-track,
.media-slide,
.profile-circle-media,
.explore-tile{
  contain:layout paint;
}
video.ad-media,
.profile-circle-media video,
.explore-tile video{
  background:#050309;
}
@media (prefers-reduced-motion: reduce){
  video.ad-media,
  .profile-circle-media video,
  .explore-tile video{animation:none!important;}
}

/* v37 critical fullscreen/video stability */
.explore-viewer.insta-viewer,
.explore-viewer.insta-viewer .viewer-feed,
.explore-viewer.insta-viewer .viewer-item,
.explore-viewer.insta-viewer .viewer-item .ds-ad-card{
  content-visibility:visible!important;
  contain:none!important;
}
.explore-viewer.insta-viewer .viewer-item:not(.is-active-viewer-item) video{
  opacity:.001!important;
}
.explore-viewer.insta-viewer .viewer-item.is-active-viewer-item video,
.explore-viewer.insta-viewer .viewer-item.is-active-viewer-item img{
  opacity:1!important;
}
html.ds-viewer-open .app-shell{overflow:visible!important;}
html.ds-viewer-open .explore-viewer.insta-viewer{display:block!important;}

/* v38 SEO static pages */
.seo-static-page{padding-bottom:96px}.seo-card{max-width:820px;margin:18px auto;padding:22px;border-radius:26px}.seo-card h1{font-size:26px;margin:0 0 12px}.seo-lead{font-size:15px;line-height:2;color:#514760;margin:0 0 18px}.seo-section{border-top:1px solid rgba(124,58,237,.12);padding-top:16px;margin-top:16px}.seo-section h2{font-size:18px;margin:0 0 8px}.seo-section p{line-height:2;color:#352c41;margin:0}.seo-keywords{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.seo-keywords span{font-size:12px;border:1px solid rgba(124,58,237,.18);background:rgba(124,58,237,.06);border-radius:999px;padding:6px 10px;color:#4c1d95}


/* v40 video safety: a hidden fullscreen viewer must never remain layout-visible/clickable. */
[data-explore-viewer][hidden], .explore-viewer[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important;}

/* v42 stable core: fullscreen reel rendering must be deterministic and media controls cannot leak outside the active item. */
.explore-viewer.insta-viewer .viewer-feed{overscroll-behavior:contain!important;scroll-snap-type:y mandatory!important;}
.explore-viewer.insta-viewer .viewer-item{content-visibility:visible!important;contain:none!important;}
.explore-viewer.insta-viewer .viewer-item:not(.is-active-viewer-item) video{opacity:0!important;pointer-events:none!important;}
.explore-viewer.insta-viewer .viewer-item.is-active-viewer-item video{opacity:1!important;pointer-events:auto!important;}

/* v48: group chat controls + safer critical media loading without changing the main UI language */
.cchat-group-create{border:1px solid rgba(124,58,237,.12);background:rgba(255,255,255,.72);border-radius:22px;padding:10px 12px;margin:10px 0 14px;box-shadow:0 10px 28px rgba(36,24,84,.05)}
.cchat-group-create summary{cursor:pointer;font-weight:950;color:var(--primary);list-style:none;display:flex;align-items:center;gap:8px}
.cchat-group-create summary::-webkit-details-marker{display:none}
.cchat-group-form{display:grid;gap:10px;margin-top:12px}
.cchat-group-members{max-height:230px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:2px;scrollbar-width:thin}
.cchat-group-members label{display:grid;grid-template-columns:auto 1fr;grid-template-areas:'check name' 'avatar user';align-items:center;gap:3px 7px;border:1px solid rgba(124,58,237,.1);border-radius:16px;background:#fff;padding:8px;min-width:0;font-size:12px}
.cchat-group-members input{grid-area:check;width:16px;height:16px}.cchat-group-members span{grid-area:avatar;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900}.cchat-group-members img{width:100%;height:100%;object-fit:cover}.cchat-group-members b{grid-area:name;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-group-members small{grid-area:user;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cchat-room-row.is-group .cchat-avatar,.cchat-peer-avatar{font-weight:900}.cchat-group-info{display:grid;gap:8px;padding:8px 12px;border-bottom:1px solid rgba(124,58,237,.08);background:rgba(255,255,255,.72)}.cchat-group-member-chips{display:flex;gap:6px;overflow:auto;scrollbar-width:none}.cchat-group-member-chips::-webkit-scrollbar{display:none}.cchat-group-member-chips span{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(124,58,237,.12);background:#fff;border-radius:999px;padding:4px 8px;font-size:11px;white-space:nowrap}.cchat-group-member-chips img{width:22px;height:22px;border-radius:50%;object-fit:cover}.cchat-add-member{display:grid;grid-template-columns:1fr auto;gap:7px}.cchat-add-member select{height:38px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:0 8px;font:inherit}.cchat-add-member button{border:0;border-radius:14px;padding:0 12px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900}
.ds-ad-card.has-video{content-visibility:visible;contain-intrinsic-size:auto}.review-ad-summary,.review-ad-summary video.ad-media{content-visibility:visible!important;contain:none!important}.ad-media-wrap{background:linear-gradient(135deg,#090313,#160726)}.ad-media-wrap video[poster]{background-color:#08030f}.hall-card img,.minimal-title img,.brand-avatar img,.story-inner img{background:#f4f0ff;object-fit:cover}
@media(max-width:520px){.cchat-group-members{grid-template-columns:1fr}.cchat-add-member{grid-template-columns:1fr}.cchat-add-member button{height:38px}}

/* v49: Telegram-inspired group management details; compact and opt-in so the main UI stays unchanged */
.v49-group-info .cchat-group-desc{margin:0;color:var(--muted);font-size:12px;line-height:1.8;background:rgba(124,58,237,.05);border-radius:14px;padding:7px 9px}
.cchat-group-member-chips em{font-style:normal;font-size:10px;color:var(--primary);background:rgba(124,58,237,.08);border-radius:999px;padding:1px 5px}
.cchat-invite-line{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center}
.cchat-invite-line input{min-width:0;height:36px;border:1px solid rgba(124,58,237,.16);border-radius:13px;background:#fff;color:#4b3d61;padding:0 9px;font-size:11px;direction:ltr;text-align:left}
.cchat-invite-line button,.cchat-invite-line form button,.cchat-group-details button,.cchat-group-settings button{border:0;border-radius:13px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900;min-height:34px;padding:0 10px;font:inherit;font-size:12px;cursor:pointer}.cchat-group-details button.danger,.cchat-group-member-list button.danger{background:linear-gradient(135deg,#ef4444,#f97316)}
.cchat-group-details,.cchat-group-settings{border:1px solid rgba(124,58,237,.12);border-radius:16px;background:rgba(255,255,255,.78);padding:8px}.cchat-group-details summary,.cchat-group-settings summary{cursor:pointer;font-weight:900;color:#4c1d95;list-style:none}.cchat-group-details summary::-webkit-details-marker,.cchat-group-settings summary::-webkit-details-marker{display:none}
.cchat-group-member-list{display:grid;gap:7px;max-height:280px;overflow:auto;margin-top:8px}.cchat-group-member-list>div{display:grid;grid-template-columns:32px 1fr auto auto;gap:7px;align-items:center;border:1px solid rgba(124,58,237,.08);border-radius:14px;padding:6px;background:#fff}.cchat-group-member-list span{width:32px;height:32px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:900}.cchat-group-member-list img{width:100%;height:100%;object-fit:cover}.cchat-group-member-list b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-group-member-list small{display:block;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-group-member-list form{margin:0}
.cchat-group-settings-form{display:grid;gap:8px;margin-top:9px}.cchat-group-settings-form input[type="text"],.cchat-group-settings-form input[name="title"],.cchat-group-settings-form input[type="number"],.cchat-group-settings-form textarea{border:1px solid rgba(124,58,237,.14);border-radius:14px;padding:9px;background:#fff;font:inherit;font-size:12px}.cchat-group-settings-form label{display:flex;gap:7px;align-items:center;font-size:12px;color:#42304f}.cchat-audit-list{display:grid;gap:4px;margin-top:8px;color:var(--muted)}
.cchat-pinned-message{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;margin:8px 12px 0;padding:8px 10px;border:1px solid rgba(124,58,237,.16);background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(236,72,153,.06));border-radius:16px;color:#3b2353}.cchat-pinned-message b{font-size:12px}.cchat-pinned-message span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-pinned-message form{margin:0}.cchat-pinned-message button{border:0;background:rgba(124,58,237,.12);color:#4c1d95;border-radius:10px;min-width:28px;height:28px;font-weight:900}
.cchat-reactions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:5px}.cchat-reactions span,.cchat-reactions button{border:1px solid rgba(124,58,237,.10);background:rgba(255,255,255,.86);border-radius:999px;min-height:24px;padding:2px 7px;font-size:12px;line-height:1;color:#3b2353}.cchat-reactions button{cursor:pointer;opacity:.85}.cchat-reactions button:hover{opacity:1;transform:translateY(-1px)}
@media(max-width:520px){.cchat-invite-line{grid-template-columns:1fr}.cchat-group-member-list>div{grid-template-columns:30px 1fr auto}.cchat-group-member-list form+form{grid-column:3}.cchat-pinned-message{grid-template-columns:1fr auto}.cchat-pinned-message b{grid-column:1/-1}}

/* v50 lightweight Telegram-style chat polish: compact, mobile-safe, profile-aware */
.cchat-room-row .cchat-avatar[data-profile-url]{cursor:pointer;position:relative}
.cchat-room-row .cchat-avatar[data-profile-url]::after{content:'↗';position:absolute;inset-inline-end:-2px;bottom:-2px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--primary);font-size:9px;font-weight:1000;box-shadow:0 4px 12px rgba(31,24,51,.12)}
.cchat-peer-avatar-link{text-decoration:none;color:#fff;cursor:pointer}
.cchat-message.theirs{padding-inline-start:36px}
.cchat-message-avatar{position:absolute;inset-inline-start:0;bottom:2px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;overflow:hidden;text-decoration:none;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:11px;font-weight:1000;box-shadow:0 7px 18px rgba(124,58,237,.18);z-index:2}
.cchat-message-avatar img{width:100%!important;height:100%!important;border:0!important;border-radius:50%!important;object-fit:cover!important;box-shadow:none!important;margin:0!important}
.cchat-message.theirs>.cchat-bubble,.cchat-message.theirs>.reply-preview,.cchat-message.theirs>.shared-ad,.cchat-message.theirs>.cchat-media-wrap,.cchat-message.theirs>.chat-video-card,.cchat-message.theirs>.cchat-audio-wrap,.cchat-message.theirs>.cchat-reactions,.cchat-message.theirs>.cchat-meta,.cchat-message.theirs>.forward-chip{margin-inline-start:34px}
.reply-preview.telegram-reply-preview,.reply-preview{cursor:pointer;display:grid;gap:2px;max-width:min(100%,360px);border-inline-start:3px solid var(--primary);background:linear-gradient(135deg,rgba(124,58,237,.07),rgba(236,72,153,.04));border-radius:13px;padding:7px 10px;margin-bottom:3px;color:#35224f;box-shadow:0 4px 14px rgba(38,24,76,.04)}
.reply-preview b{font-size:11px;color:var(--primary);font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-preview span{font-size:12px;color:#6b6478;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-flash{animation:v50ReplyFlash .8s ease}@keyframes v50ReplyFlash{0%{filter:brightness(1);transform:translateY(0)}25%{filter:brightness(1.06);transform:translateY(-1px)}100%{filter:brightness(1);transform:translateY(0)}}
.cchat-group-hub{border:0;background:transparent}.cchat-group-hub>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid rgba(124,58,237,.12);border-radius:16px;background:#fff;color:#4c1d95;font-size:12px}.cchat-group-hub>summary::-webkit-details-marker{display:none}.cchat-group-hub>summary span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f3edff}.cchat-group-hub>summary b{font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-group-hub>summary small{color:var(--muted);font-size:10px;white-space:nowrap}.cchat-group-hub[open]>summary{border-color:rgba(124,58,237,.22);background:#fbf8ff}.cchat-group-create-head{display:grid;grid-template-columns:46px 1fr;gap:8px;align-items:center}.cchat-group-photo-pick{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#f4efff;border:1px dashed rgba(124,58,237,.35);cursor:pointer;overflow:hidden}.cchat-group-photo-pick input{display:none}.cchat-group-photo-pick span{font-size:22px;color:var(--primary);font-weight:1000}.cchat-group-desc-input{resize:none;min-height:42px!important;font-size:12px!important}.v50-group-info{padding:7px 10px!important}.v50-group-info .cchat-group-member-chips,.v50-group-info .cchat-invite-line,.v50-group-info .cchat-add-member,.v50-group-info .cchat-group-details,.v50-group-info .cchat-group-settings{margin-top:8px}.cchat-header-actions{align-items:center}.cchat-header-actions button{display:grid;place-items:center}
@media(max-width:760px){.cchat-header-actions{gap:3px}.cchat-header-actions button{width:30px!important;height:30px!important;font-size:13px}.cchat-message.theirs{padding-inline-start:32px;max-width:90%!important}.cchat-message-avatar{width:26px;height:26px}.cchat-message.theirs>.cchat-bubble,.cchat-message.theirs>.reply-preview,.cchat-message.theirs>.shared-ad,.cchat-message.theirs>.cchat-media-wrap,.cchat-message.theirs>.chat-video-card,.cchat-message.theirs>.cchat-audio-wrap,.cchat-message.theirs>.cchat-reactions,.cchat-message.theirs>.cchat-meta,.cchat-message.theirs>.forward-chip{margin-inline-start:30px}.cchat-group-info{padding:6px 8px!important}.cchat-group-hub:not([open])>summary{min-height:38px}.cchat-invite-line{grid-template-columns:1fr!important}.cchat-group-member-chips{max-height:38px}.cchat-group-details,.cchat-group-settings{max-height:320px;overflow:auto}.cchat-group-member-list>div{grid-template-columns:30px minmax(0,1fr) auto!important}.cchat-group-member-list form button{min-width:34px;padding:0 7px}.cchat-group-create{padding:9px!important}.cchat-group-members{max-height:190px!important}.cchat-room-row{grid-template-columns:42px minmax(0,1fr) auto!important}.cchat-room-row .cchat-avatar{width:42px!important;height:42px!important}.cchat-room-name{font-size:13px!important}.cchat-room-last{font-size:11.5px!important}.cchat-profile-bar{display:none!important}}

/* v51 referral groups: quiet, mobile-first, fixed chat shell */
:root{
  --chat-color-purple:#f3e8ff;--chat-color-violet:#ede9fe;--chat-color-indigo:#e0e7ff;--chat-color-red:#ffe8e8;--chat-color-rose:#ffe4e6;--chat-color-pink:#ffeaf3;--chat-color-blue:#e8f2ff;--chat-color-sky:#e0f2fe;--chat-color-cyan:#cffafe;--chat-color-teal:#e6fbf7;--chat-color-green:#e9fbe9;--chat-color-mint:#dcfce7;--chat-color-lime:#ecfccb;--chat-color-yellow:#fff8d8;--chat-color-amber:#fef3c7;--chat-color-orange:#fff3df;--chat-color-gray:#f4f4f6;--chat-color-slate:#e2e8f0;
}
.cchat-quick-actions{display:flex;justify-content:center;align-items:flex-start;gap:12px;margin:4px 0 14px;position:relative;z-index:8}.cchat-quick-actions .chat-privacy-toggle-box{margin:0!important}.cchat-round-action{list-style:none;width:62px;min-height:62px;border-radius:22px;border:1px solid rgba(124,58,237,.14);background:#fff;box-shadow:0 10px 26px rgba(31,24,51,.08);display:grid;place-items:center;gap:1px;cursor:pointer;color:#221933;font-size:12px;font-weight:950}.cchat-round-action::-webkit-details-marker{display:none}.cchat-round-action span{font-size:21px;line-height:1}.cchat-round-action b{font-size:11px}.cchat-task-action{background:linear-gradient(135deg,#fbf7ff,#eef6ff)}.cchat-create-action{background:linear-gradient(135deg,#fbfff8,#f3f0ff)}.cchat-action-pop{position:relative}.cchat-action-pop>form,.cchat-action-pop>.cchat-group-form{position:absolute;top:74px;inset-inline-start:50%;transform:translateX(-50%);width:min(92vw,390px);max-height:min(72dvh,620px);overflow:auto;background:#fff;border:1px solid rgba(226,223,239,.95);border-radius:24px;padding:12px;box-shadow:0 24px 70px rgba(31,24,51,.18);z-index:45}.cchat-mini-help{font-size:12px;font-weight:800;line-height:1.9;color:#6d6479;background:#f9f7ff;border:1px solid #eee8fb;border-radius:16px;padding:8px 10px;margin-bottom:8px}.cchat-color-picker{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 2px}.cchat-color-picker span{font-size:12px;font-weight:950;color:#756d84}.cchat-color-picker label{display:inline-flex;align-items:center;justify-content:center}.cchat-color-picker input{position:absolute;opacity:0;pointer-events:none}.cchat-color-picker i{width:24px;height:24px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(32,24,54,.12),0 6px 14px rgba(32,24,54,.08)}.cchat-color-picker input:checked+i{box-shadow:0 0 0 2px var(--primary),0 8px 18px rgba(124,58,237,.18)}.c-none{background:#fff}.c-purple{background:var(--chat-color-purple)}.c-violet{background:var(--chat-color-violet)}.c-indigo{background:var(--chat-color-indigo)}.c-red{background:var(--chat-color-red)}.c-rose{background:var(--chat-color-rose)}.c-pink{background:var(--chat-color-pink)}.c-blue{background:var(--chat-color-blue)}.c-sky{background:var(--chat-color-sky)}.c-cyan{background:var(--chat-color-cyan)}.c-teal{background:var(--chat-color-teal)}.c-green{background:var(--chat-color-green)}.c-mint{background:var(--chat-color-mint)}.c-lime{background:var(--chat-color-lime)}.c-yellow{background:var(--chat-color-yellow)}.c-amber{background:var(--chat-color-amber)}.c-orange{background:var(--chat-color-orange)}.c-gray{background:var(--chat-color-gray)}.c-slate{background:var(--chat-color-slate)}.cchat-room-row.is-group{background:linear-gradient(90deg,var(--group-tint,#fff),#fff 68%)}.cchat-room-row.is-task-group{border-color:rgba(59,130,246,.16)}.task-room-mini{display:inline-grid;place-items:center;margin-inline-end:6px;padding:2px 7px;border-radius:999px;background:#e8f2ff;color:#2563eb;font-style:normal;font-size:10px;font-weight:1000}.cchat-room-avatar{position:relative;overflow:visible!important}.cchat-room-avatar>img{border-radius:50%;overflow:hidden}.cchat-online-stack{position:absolute;inset-inline-start:-4px;bottom:-5px;display:flex;align-items:center;direction:ltr}.cchat-online-stack i,.cchat-online-stack em{width:18px;height:18px;border-radius:50%;border:2px solid #fff;background:#22c55e;color:#fff;display:grid;place-items:center;overflow:hidden;font-size:9px;font-style:normal;font-weight:1000;margin-inline-end:-5px;box-shadow:0 2px 8px rgba(0,0,0,.15)}.cchat-online-stack img{width:100%;height:100%;object-fit:cover}.cchat-online-stack em{background:#2563eb;font-size:8px}.cchat-conversation{grid-template-rows:auto auto auto minmax(0,1fr) auto!important;height:calc(100dvh - 100px)!important}.cchat-chat-header{position:sticky;top:0;z-index:18}.cchat-compose,.chat-blocked-note{position:sticky;bottom:0;z-index:18}.cchat-messages{scrollbar-gutter:stable;min-height:0}.cchat-group-info,.cchat-task-hub,.cchat-pinned-message,.cchat-profile-bar{background:rgba(255,255,255,.98);z-index:12}.cchat-group-hub>summary,.cchat-task-create>summary{cursor:pointer;display:flex;align-items:center;gap:8px;padding:8px 10px}.cchat-task-hub{border-bottom:1px solid #f0edf7;padding:7px 10px;background:#fff}.cchat-task-create{border:1px solid #eee8fb;border-radius:18px;background:#fbfaff}.cchat-task-create summary{list-style:none}.cchat-task-create summary::-webkit-details-marker{display:none}.cchat-task-create summary b{font-size:13px;font-weight:1000}.cchat-task-create summary small{margin-inline-start:auto;color:#8c8499;font-size:11px;font-weight:800}.cchat-task-form{display:grid;grid-template-columns:1fr 150px 90px 150px auto;gap:7px;padding:8px}.cchat-task-form input,.cchat-task-form select,.cchat-task-form textarea,.cchat-task-update input,.cchat-task-update select{border:1px solid #e8e2f2;border-radius:13px;background:#fff;padding:8px 9px;font:inherit;font-size:12px;min-width:0}.cchat-task-form textarea{grid-column:1/-2;resize:vertical;min-height:42px}.cchat-task-form button,.cchat-task-update button{border:0;border-radius:13px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000;padding:8px 12px}.cchat-task-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:8px}.cchat-task-card{border:1px solid #e9e4f3;border-radius:18px;padding:10px;background:#fff;box-shadow:0 8px 22px rgba(31,24,51,.04)}.cchat-task-card.priority-important{background:#fff8e8}.cchat-task-card.priority-urgent{background:#fff0f0;border-color:#ffd8d8}.cchat-task-card header{display:flex;align-items:center;justify-content:space-between;gap:8px}.cchat-task-card b{font-size:12.5px;font-weight:1000}.cchat-task-card em{font-size:10px;font-style:normal;padding:2px 7px;border-radius:999px;background:#eef2ff;color:#3554d1;font-weight:1000;white-space:nowrap}.cchat-task-card p,.cchat-task-card small{display:block;margin:5px 0;color:#6f687c;font-size:11px;font-weight:800;line-height:1.7}.cchat-task-update{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.cchat-task-update input{grid-column:1/-2}.cchat-task-update button{grid-column:1/-1}.cchat-task-history{margin-top:8px}.cchat-task-history summary{font-size:12px;font-weight:1000;color:#6f687c;cursor:pointer}.cchat-task-history small{display:block;padding:5px 2px;color:#82798f;font-size:11px}.cchat-task-message{border:1px solid #dbeafe;background:#eff6ff;color:#172554;border-radius:16px;padding:9px 11px;display:grid;gap:3px;max-width:100%;box-shadow:0 8px 18px rgba(37,99,235,.07)}.cchat-task-message b{font-size:12.5px}.cchat-task-message span{font-size:11px;font-weight:850;color:#3b5b8a}.cchat-message.theirs{padding-inline-start:34px}.cchat-message.theirs .cchat-message-avatar{position:absolute;inset-inline-start:0;bottom:3px;width:28px;height:28px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;display:grid;place-items:center;font-size:11px;font-weight:1000;box-shadow:0 4px 12px rgba(31,24,51,.12)}.cchat-message-avatar img{width:100%;height:100%;object-fit:cover}.cchat-group-settings-form .cchat-color-picker{grid-column:1/-1}.is-active-chat-page .site-header,.is-active-chat-page .bottom-nav{display:none!important}@media(max-width:760px){.cchat-page.cchat-active-page{padding:0!important}.cchat-conversation{height:100dvh!important;margin:0!important;border-radius:0!important;grid-template-rows:auto auto auto minmax(0,1fr) auto!important}.cchat-chat-header{height:56px}.cchat-group-info{max-height:36dvh;overflow:auto}.cchat-task-hub{max-height:42dvh;overflow:auto}.cchat-task-form{grid-template-columns:1fr 1fr}.cchat-task-form textarea,.cchat-task-form button{grid-column:1/-1}.cchat-task-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.cchat-task-card{min-width:250px;scroll-snap-align:start}.cchat-action-pop>form,.cchat-action-pop>.cchat-group-form{position:fixed;top:96px;left:50%;right:auto;transform:translateX(-50%);width:calc(100vw - 22px);max-height:72dvh}.cchat-quick-actions{gap:10px}.cchat-round-action{width:58px;min-height:58px;border-radius:20px}.cchat-message.theirs{padding-inline-start:31px}.cchat-msg-menu{display:grid!important;opacity:.7;inset-inline-end:-22px}.cchat-message.mine .cchat-msg-menu{inset-inline-start:-22px}.cchat-compose{position:sticky!important;bottom:0!important}.cchat-messages{padding-bottom:16px!important}}

/* v52: cleaner assignment packets and horizontal group online avatars */
.cchat-round-action{width:70px!important;min-height:70px!important;border-radius:24px!important}.cchat-round-action span{font-size:24px!important}.cchat-round-action b{font-size:12px!important}.chat-privacy-toggle.chat-privacy-icon-only{width:56px!important;height:56px!important;border-radius:20px!important}.chat-privacy-icon{font-size:22px!important}.cchat-quick-actions{align-items:center!important}
.cchat-room-row.is-group{padding-bottom:14px!important}.cchat-room-avatar{overflow:visible!important}.cchat-online-stack{position:absolute!important;left:50%!important;right:auto!important;bottom:-14px!important;transform:translateX(-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;direction:ltr!important;width:max-content;max-width:62px;gap:0}.cchat-online-stack i,.cchat-online-stack em{width:15px!important;height:15px!important;margin:0 -2px!important;border:1.5px solid #fff!important;font-size:7px!important;box-shadow:0 2px 6px rgba(0,0,0,.14)!important}.cchat-online-stack em{padding:0 3px;width:auto!important;min-width:17px!important;border-radius:999px!important;background:#2563eb!important}
.compact-task-hub{padding:6px 8px!important}.compact-task-hub .cchat-task-create{background:#fff!important}.cchat-my-task-packs{margin-top:7px;border:1px solid #eee8fb;border-radius:16px;background:#fff}.cchat-my-task-packs>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:12px;font-weight:1000;cursor:pointer;color:#3a3148}.cchat-my-task-packs>summary::-webkit-details-marker{display:none}.cchat-my-task-packs>summary b{margin-inline-start:auto;min-width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:#eef2ff;color:#3554d1;font-size:11px}.cchat-task-pack-list{display:grid;gap:7px;padding:0 8px 8px}.cchat-task-pack,.cchat-private-task-pack{border:1px solid #e7e0f4;border-radius:16px;background:linear-gradient(135deg,#fff,#fbfaff);box-shadow:0 8px 20px rgba(31,24,51,.045);overflow:hidden}.cchat-task-pack[open],.cchat-private-task-pack[open]{box-shadow:0 12px 28px rgba(31,24,51,.08)}.cchat-task-pack>summary,.cchat-private-task-pack>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:9px 10px;cursor:pointer}.cchat-task-pack>summary::-webkit-details-marker,.cchat-private-task-pack>summary::-webkit-details-marker{display:none}.cchat-task-pack>summary span,.cchat-private-task-pack summary b{font-size:12.5px;font-weight:1000;color:#30263e;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cchat-task-pack>summary em,.cchat-private-task-pack summary span{margin-inline-start:auto;font-size:10.5px;font-style:normal;font-weight:1000;border-radius:999px;background:#eef2ff;color:#3554d1;padding:2px 7px;white-space:nowrap}.cchat-task-pack-body,.cchat-private-task-pack>div{border-top:1px dashed #e9e2f4;padding:9px 10px;display:grid;gap:7px}.cchat-task-pack-body p,.cchat-private-task-pack p{margin:0;font-size:11px;font-weight:850;color:#6f687c;line-height:1.7}.cchat-task-pack-body small,.cchat-private-task-pack small{display:block;font-size:12px;line-height:1.9;color:#3a3148;background:#faf8ff;border-radius:12px;padding:7px 8px}.cchat-task-update.compact{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.cchat-task-update.compact input{grid-column:1/-1!important}.cchat-task-update.compact button{grid-column:1/-1!important}.cchat-task-stats{margin-top:10px;border-top:1px solid #f0edf7;padding-top:8px}.cchat-task-stats>summary{font-size:12px;font-weight:1000;color:#433750;cursor:pointer}.cchat-task-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-top:8px}.cchat-task-stats-grid article{border:1px solid #eee8fb;border-radius:14px;background:#fff;padding:8px;display:grid;gap:3px}.cchat-task-stats-grid b{font-size:12px}.cchat-task-stats-grid small,.cchat-task-stats-grid span,.cchat-task-stats-grid em{font-size:10.5px;color:#6f687c;font-style:normal;font-weight:850;line-height:1.6}.cchat-task-message.cchat-private-task-pack{max-width:min(92%,380px);background:#f8fbff;border-color:#dbeafe;color:#172554}.cchat-task-message.cchat-private-task-pack summary{padding:8px 10px}.cchat-task-message.cchat-private-task-pack summary b{font-size:12px}.cchat-task-message.cchat-private-task-pack summary span{font-size:10px;background:#dbeafe;color:#1e40af}.cchat-message .cchat-task-message+.cchat-bubble{display:none}
@media(max-width:760px){.cchat-round-action{width:64px!important;min-height:64px!important;border-radius:22px!important}.chat-privacy-toggle.chat-privacy-icon-only{width:52px!important;height:52px!important}.cchat-task-form{grid-template-columns:1fr!important}.cchat-task-form textarea,.cchat-task-form button{grid-column:1/-1!important}.cchat-task-update.compact{grid-template-columns:1fr!important}.cchat-task-stats-grid{grid-template-columns:1fr}.cchat-task-pack>summary,.cchat-private-task-pack>summary{padding:8px 9px}.cchat-room-row.is-group{padding-bottom:16px!important}}


/* v53: compact private assignment workflow */
.cchat-page.cchat-assignment-room{--assignment-top-offset:0px}.cchat-active-page .cchat-chat-header{position:sticky;top:0;z-index:35}.cchat-assignment-topbar{position:sticky;top:58px;z-index:31;display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:7px 10px;margin:0 0 6px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(17,24,39,.06)}.cchat-assignment-datebox{min-width:82px;text-align:center;border-radius:14px;padding:6px 8px;background:#f7f3ff;border:1px solid #ebe1ff;color:#4b307c}.cchat-assignment-datebox b{display:block;font-size:12px;font-weight:1000}.cchat-assignment-datebox small{display:block;font-size:9px;color:#8a8199;margin-top:2px;direction:ltr}.cchat-assignment-inline-form{display:grid;grid-template-columns:1.1fr .8fr .55fr .72fr 1.2fr auto;gap:6px;align-items:center}.cchat-assignment-inline-form input,.cchat-assignment-inline-form select{min-width:0;height:34px;border:1px solid var(--line);border-radius:12px;padding:0 9px;background:#fff;font-family:var(--app-font);font-size:12px}.cchat-assignment-inline-form button{height:34px;border:0;border-radius:13px;padding:0 13px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000}.cchat-assignment-due{position:relative;display:block}.cchat-assignment-due small{position:absolute;inset-inline-start:9px;bottom:-11px;font-size:8px;color:#9aa;pointer-events:none}.cchat-assignment-readonly-note{font-size:11px;font-weight:900;color:#746b85}.cchat-private-queue-hub{position:sticky;top:118px;z-index:28;margin:0 0 8px;background:rgba(255,255,255,.95);border:1px solid #efeafd;border-radius:18px;padding:7px 9px;box-shadow:0 8px 24px rgba(17,24,39,.04)}.cchat-private-queue>header{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:1000;margin-bottom:6px}.cchat-private-queue>header span{background:#ede7ff;color:var(--primary);border-radius:999px;padding:2px 8px}.cchat-task-pack-list{display:grid;gap:6px}.cchat-task-pack{border:1px solid #ebe4ff;border-radius:14px;background:#fff;overflow:hidden}.cchat-task-pack summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;list-style:none;font-size:12px}.cchat-task-pack summary::-webkit-details-marker{display:none}.cchat-task-pack summary span{font-weight:1000;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cchat-task-pack summary em{font-style:normal;font-size:10px;border-radius:999px;padding:3px 7px;background:#f3f0ff;color:#6f4bd8;white-space:nowrap}.cchat-task-pack.is-locked{opacity:.68;background:#f8f8fb}.cchat-task-pack.is-locked summary span{color:#888}.cchat-task-pack-body{padding:8px 10px;border-top:1px solid #f0ecfa;font-size:12px;line-height:1.7}.cchat-task-pack-body p{margin:0 0 5px;color:#5d536d}.cchat-task-pack-body p small{font-size:9px;color:#9a92aa;direction:ltr}.cchat-task-pack-body>small{display:block;color:#443b52;background:#fbfaff;border:1px solid #f0eafc;border-radius:12px;padding:7px;margin-bottom:8px}.cchat-task-update.compact{display:grid;grid-template-columns:.75fr .9fr 1fr auto;gap:6px}.cchat-task-update.compact input,.cchat-task-update.compact select{height:34px;border:1px solid var(--line);border-radius:12px;padding:0 8px;font-size:12px;background:#fff}.cchat-task-update.compact button{border:0;border-radius:12px;padding:0 10px;background:#111827;color:#fff;font-weight:1000}.locked-note{color:#7b7288;background:#fbfbfd}.cchat-created-tasks,.cchat-task-history{margin-top:6px;border-top:1px dashed #e8e1f7;padding-top:6px}.cchat-created-tasks summary,.cchat-task-history summary{font-size:11px;font-weight:1000;cursor:pointer}.cchat-created-task-row,.cchat-task-history small{display:block;padding:5px 2px;font-size:11px;color:#5d536d}.cchat-created-task-row small,.cchat-task-history em{display:block;color:#968fa4;font-style:normal;font-size:9px}.cchat-task-sealed-message{display:flex;align-items:center;gap:7px;margin:4px 0}.cchat-task-sealed-author{display:grid;justify-items:center;gap:2px;min-width:42px}.cchat-task-sealed-author img,.cchat-task-sealed-author span{width:28px;height:28px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#ede7ff;color:var(--primary);font-size:11px;font-weight:1000}.cchat-task-sealed-author small{font-size:8px;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#999}.cchat-task-sealed-box{border:1px solid #eadfff;background:#fff;border-radius:14px;padding:7px 10px;min-width:150px;text-align:start;display:grid;gap:2px;box-shadow:0 6px 18px rgba(124,58,237,.07);cursor:pointer}.cchat-task-sealed-box b{font-size:11px;color:#40364f}.cchat-task-sealed-box em{font-style:normal;font-size:10px;color:#7c3aed}.cchat-task-sealed-box small{font-size:9px;color:#8f879c}.cchat-assignment-room .cchat-emoji-btn,.cchat-assignment-room .emoji-palette,.cchat-assignment-room [data-emoji-palette],.cchat-assignment-room [data-emoji-toggle]{display:none!important}.cchat-room-avatar .cchat-online-stack{position:static!important;display:flex!important;flex-direction:row!important;gap:2px;justify-content:center;align-items:center;margin-top:3px;transform:none!important}.cchat-room-avatar .cchat-online-stack i,.cchat-room-avatar .cchat-online-stack em{width:13px!important;height:13px!important;border-radius:50%;font-size:7px;border:1px solid #fff;background:#dff7e6;display:grid;place-items:center;overflow:hidden}.cchat-room-avatar .cchat-online-stack img{width:100%;height:100%;object-fit:cover}.cchat-task-report-link{display:inline-flex;margin:8px 0;padding:7px 10px;border-radius:12px;background:#f5f0ff;color:var(--primary);font-weight:1000;text-decoration:none;font-size:12px}.cchat-report-panel{padding:14px}.cchat-report-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.cchat-report-head h1{font-size:20px;margin:0}.cchat-report-filter{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;background:#fbfaff;border:1px solid #eee7ff;border-radius:18px;padding:12px}.cchat-report-filter label{display:grid;gap:4px;font-size:12px;font-weight:900}.cchat-report-filter input{height:38px;border:1px solid var(--line);border-radius:12px;padding:0 10px}.cchat-report-filter small{font-size:10px;color:#7b7288}.cchat-report-filter button{height:38px;border:0;border-radius:13px;background:var(--primary);color:#fff;font-weight:1000}.cchat-report-summary{margin:10px 0;font-weight:1000}.task-focus-flash{animation:taskFlash 1.2s ease}@keyframes taskFlash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 4px rgba(124,58,237,.18)}}
@media(max-width:760px){.cchat-assignment-topbar{top:54px;grid-template-columns:1fr;padding:7px;border-radius:16px}.cchat-assignment-datebox{display:flex;justify-content:center;gap:8px;align-items:center;width:100%;min-width:0}.cchat-assignment-inline-form{grid-template-columns:1fr 1fr 74px;gap:5px}.cchat-assignment-inline-form input[name="body"]{grid-column:1 / -2}.cchat-assignment-inline-form button{grid-column:auto}.cchat-assignment-due{display:none}.cchat-private-queue-hub{top:136px;max-height:42vh;overflow:auto}.cchat-task-update.compact{grid-template-columns:1fr 1fr}.cchat-task-update.compact input{grid-column:1 / -1}.cchat-task-update.compact button{grid-column:1 / -1;height:34px}.cchat-report-filter{grid-template-columns:1fr}.cchat-task-sealed-box{min-width:0;flex:1}.cchat-message .cchat-task-sealed-message{max-width:100%}}

/* v54: private group compact sender-recipient workflow */
.cchat-round-action.cchat-task-action b{font-size:11px}.cchat-room-name .task-room-mini{background:#f1ecff;color:#6d28d9;border-radius:999px;padding:2px 6px;font-size:9px;margin-inline-end:4px}.cchat-private-topbar{position:sticky;top:58px;z-index:9;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:1px solid #eee7ff;border-radius:16px;margin:7px 8px;padding:7px;display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:center;box-shadow:0 10px 26px rgba(41,30,78,.07)}.cchat-private-datebox{min-width:72px;display:grid;place-items:center;gap:1px;background:#f7f2ff;border:1px solid #eadfff;border-radius:13px;padding:5px 7px;color:#4c1d95}.cchat-private-datebox b{font-size:12px;font-weight:1000;white-space:nowrap}.cchat-private-datebox small{font-size:9px;color:#86739c;direction:ltr}.cchat-private-send-form{display:grid;grid-template-columns:minmax(92px,.85fr) minmax(96px,.8fr) minmax(150px,1.8fr) 34px 54px;gap:5px;align-items:center}.cchat-private-send-form select,.cchat-private-send-form input:not([type=file]){height:34px;border:1px solid #e7dff5;border-radius:12px;background:#fff;padding:0 9px;font-size:12px;min-width:0}.cchat-private-send-form input[name=body]{font-weight:800}.cchat-private-file{height:34px;border-radius:12px;background:#f5f0ff;color:#6d28d9;display:grid;place-items:center;cursor:pointer;font-weight:1000;border:1px solid #e7dff5}.cchat-private-file input{display:none}.cchat-private-send-form button{height:34px;border:0;border-radius:12px;background:#6d28d9;color:#fff;font-weight:1000;padding:0 10px}.cchat-private-envelope{display:flex!important;align-items:center!important;gap:6px!important;max-width:100%;margin:4px 0}.cchat-private-envelope .cchat-task-sealed-author,.cchat-private-recipient-mini{width:38px;min-width:38px;display:grid;justify-items:center;gap:1px}.cchat-private-envelope .cchat-task-sealed-author img,.cchat-private-envelope .cchat-task-sealed-author span,.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;object-fit:cover;background:#ede7ff;color:#6d28d9;font-size:11px;font-weight:1000}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:22px;height:22px;background:#e8f7ee;color:#166534}.cchat-private-envelope small{font-size:8px;max-width:42px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8b819a}.cchat-private-envelope .cchat-task-sealed-box{min-width:120px;max-width:180px;padding:6px 8px;border-radius:14px;box-shadow:0 6px 14px rgba(109,40,217,.08)}.cchat-private-envelope .cchat-task-sealed-box b{font-size:11px}.cchat-private-envelope .cchat-task-sealed-box em,.cchat-private-envelope .cchat-task-sealed-box small{font-size:9px}.cchat-private-compose-note{font-size:11px;text-align:center;color:#6d5f7a;background:#fbf8ff;border:1px dashed #eadfff}.cchat-private-attachment{display:inline-flex;margin:4px 0 8px;padding:5px 8px;border-radius:10px;background:#f5f0ff;color:#6d28d9;font-size:11px;font-weight:900;text-decoration:none}.cchat-assignment-room .cchat-messages .cchat-message:has(.cchat-private-envelope){background:transparent!important}.cchat-assignment-room .cchat-reactions{display:none!important}
@media(max-width:760px){.cchat-private-topbar{top:54px;margin:5px 6px;padding:6px;grid-template-columns:1fr}.cchat-private-datebox{display:flex;justify-content:center;gap:6px;width:100%;padding:4px}.cchat-private-send-form{grid-template-columns:1fr 1fr 34px 48px}.cchat-private-send-form input[name=body]{grid-column:1 / 3}.cchat-private-send-form select,.cchat-private-send-form input:not([type=file]){height:32px;font-size:11px}.cchat-private-send-form button,.cchat-private-file{height:32px}.cchat-private-envelope .cchat-task-sealed-box{max-width:145px}.cchat-task-pack-body{font-size:11px}.cchat-task-update.compact{grid-template-columns:1fr}.cchat-task-update.compact select,.cchat-task-update.compact input,.cchat-task-update.compact button{width:100%;height:33px}}

/* v55 private groups: same chat-line UX, only recipient/date added */
.cchat-private-mode-hint{display:none!important}
.cchat-private-line-form{grid-template-columns:38px minmax(0,1fr) 42px!important;border-top:1px solid #f0edf7;background:rgba(255,255,255,.98)!important}
.cchat-private-compose-main{display:grid!important;gap:5px!important}
.cchat-private-mini-fields{display:grid;grid-template-columns:minmax(110px,.95fr) minmax(98px,.75fr);gap:5px;align-items:center}
.cchat-private-mini-fields select,.cchat-private-mini-fields input{height:29px;border:1px solid #e7e2ef;border-radius:999px;background:#fbfaff;padding:0 9px;font-size:11px;font-weight:850;min-width:0;color:#40364f;font-family:var(--app-font)}
.cchat-private-line-form textarea[name=body]{height:38px!important;min-height:38px!important;max-height:110px!important;border-radius:22px!important;border:1px solid #e7e2ef!important;background:#fafafa!important;padding:8px 13px!important;font-size:14px!important;font-weight:650!important;resize:none!important;line-height:1.6!important;width:100%!important}
.cchat-private-line-form .reply-compose{border-radius:999px;background:#f5f0ff;border:1px solid #eadfff;color:#6d28d9;font-size:11px;padding:4px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.cchat-private-line-form .reply-compose[hidden]{display:none!important}.cchat-private-line-form .reply-compose button{border:0;background:transparent;color:#6d28d9;font-weight:1000}
.cchat-private-message-details{border:1px solid #eadfff;background:#fff;border-radius:14px;min-width:134px;max-width:220px;box-shadow:0 6px 18px rgba(124,58,237,.07);overflow:hidden}.cchat-private-message-details summary{cursor:pointer;list-style:none;padding:6px 8px;display:grid;gap:2px}.cchat-private-message-details summary::-webkit-details-marker{display:none}.cchat-private-message-details b{font-size:11px;color:#40364f}.cchat-private-message-details em{font-style:normal;font-size:9px;color:#7c3aed}.cchat-private-message-details small{font-size:8.5px;color:#8f879c}.cchat-private-message-body{border-top:1px solid #f0eafc;padding:8px;display:grid;gap:6px;font-size:12px;line-height:1.75;color:#30263d;background:#fff}.cchat-private-message-body p{margin:0;white-space:pre-wrap;word-break:break-word}.cchat-private-message-body a,.cchat-private-message-body button{border:0;border-radius:12px;background:#f5f0ff;color:#6d28d9;padding:6px 8px;font-size:11px;font-weight:1000;text-decoration:none;text-align:center}.cchat-private-message-body button{cursor:pointer}.cchat-private-message-body.is-hidden{color:#8b819a;background:#fbfaff}
.cchat-assignment-room .cchat-private-queue-hub,.cchat-assignment-room .cchat-task-hub{display:none!important}
.cchat-assignment-room .cchat-emoji-btn,.cchat-assignment-room .emoji-palette,.cchat-assignment-room [data-emoji-palette],.cchat-assignment-room [data-emoji-toggle],.cchat-assignment-room .cchat-gif-btn,.cchat-assignment-room .cchat-voice-btn{display:none!important}
@media(max-width:760px){.cchat-private-line-form{grid-template-columns:36px minmax(0,1fr) 40px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important}.cchat-private-mini-fields{grid-template-columns:1fr 1fr}.cchat-private-mini-fields select,.cchat-private-mini-fields input{height:28px;font-size:10.5px;padding:0 7px}.cchat-private-line-form textarea[name=body]{height:37px!important;min-height:37px!important;font-size:13.5px!important}.cchat-private-message-details{max-width:170px}.cchat-private-envelope{gap:4px!important}.cchat-private-recipient-mini,.cchat-private-envelope .cchat-task-sealed-author{width:34px;min-width:34px}}

/* v56 chat polish: textual group buttons, forced private reply, stable mobile composer */
.cchat-quick-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;margin:8px 0 12px}.cchat-action-pop{position:relative}.cchat-action-pop summary::-webkit-details-marker{display:none}.cchat-rect-action{min-width:104px;height:38px;border:1px solid #eadfff;border-radius:18px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#fbf8ff);box-shadow:0 8px 20px rgba(90,50,150,.07);color:#4c2f76;cursor:pointer;font-weight:1000;white-space:nowrap}.cchat-rect-action b{font-size:12.5px;line-height:1}.chat-privacy-icon-form,.chat-privacy-toggle-box{width:auto!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}.chat-privacy-toggle.chat-privacy-icon-only{width:40px!important;height:40px!important;border-radius:50%!important;border:1px solid #e5dcff!important;background:#fff!important;box-shadow:0 8px 18px rgba(90,50,150,.08)!important;padding:0!important;display:grid!important;place-items:center!important}.chat-privacy-icon{font-size:18px!important;line-height:1}.cchat-action-pop[open] .cchat-rect-action{background:#f5f0ff;color:#6d28d9;border-color:#d9ccff}
.cchat-active-page{padding-bottom:0!important}.cchat-conversation{height:calc(100dvh - 92px);display:flex;flex-direction:column;min-height:0}.cchat-chat-header{flex:0 0 auto;position:sticky;top:0;z-index:38;background:rgba(255,255,255,.96);backdrop-filter:blur(16px)}.cchat-messages{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}.cchat-compose{flex:0 0 auto;position:sticky;bottom:0;z-index:38;width:100%!important;max-width:100%!important;margin:0!important;border-radius:22px 22px 0 0!important;padding-inline:10px!important;box-shadow:0 -10px 26px rgba(31,20,60,.08)}.cchat-private-line-form{width:100%!important;grid-template-columns:40px minmax(0,1fr) 44px!important}.cchat-private-compose-main{min-width:0;width:100%}.cchat-private-mini-fields{width:100%;grid-template-columns:minmax(120px,1fr) minmax(118px,.8fr)}.cchat-private-mini-fields select,.cchat-private-mini-fields input{width:100%}.cchat-private-line-form textarea[name=body]{width:100%!important}.cchat-task-sealed-author{min-width:50px!important;width:50px!important}.cchat-task-sealed-author img,.cchat-task-sealed-author span{width:34px!important;height:34px!important;font-size:13px!important}.cchat-private-recipient-mini{width:36px!important;min-width:36px!important}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:22px!important;height:22px!important;font-size:10px!important}.cchat-private-envelope{align-items:center!important}.cchat-private-envelope .cchat-task-sealed-box{max-width:210px}.cchat-required-private-message .cchat-private-message-details{animation:privateBlink 1s ease-in-out infinite;box-shadow:0 0 0 3px rgba(124,58,237,.16),0 10px 26px rgba(124,58,237,.14)!important;border-color:#c9b4ff!important}.cchat-force-private-reply .cchat-messages{overflow:hidden!important}.cchat-force-private-reply .cchat-new-pills{display:none!important}.cchat-force-private-reply .cchat-private-line-form{box-shadow:0 -14px 34px rgba(124,58,237,.18)}.cchat-force-private-reply .cchat-private-line-form:before{content:'ابتدا به پیام خصوصی چشمک‌زن پاسخ بدهید';position:absolute;inset-inline:12px;bottom:100%;margin-bottom:4px;background:#6d28d9;color:#fff;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:1000;text-align:center;box-shadow:0 8px 22px rgba(109,40,217,.24)}@keyframes privateBlink{0%,100%{transform:scale(1)}50%{transform:scale(1.02)}}
@media(max-width:760px){.cchat-conversation{height:calc(100dvh - 76px)}.cchat-quick-actions{gap:8px}.cchat-rect-action{min-width:98px;height:36px;padding:0 12px;border-radius:16px}.chat-privacy-toggle.chat-privacy-icon-only{width:38px!important;height:38px!important}.cchat-compose{padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important}.cchat-private-line-form{grid-template-columns:38px minmax(0,1fr) 42px!important}.cchat-private-mini-fields{grid-template-columns:1fr 1fr;gap:4px}.cchat-private-mini-fields select,.cchat-private-mini-fields input{height:30px;font-size:10.5px}.cchat-private-envelope .cchat-task-sealed-box{max-width:176px}.cchat-task-sealed-author{min-width:46px!important;width:46px!important}.cchat-task-sealed-author img,.cchat-task-sealed-author span{width:32px!important;height:32px!important}.cchat-private-recipient-mini{width:32px!important;min-width:32px!important}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:20px!important;height:20px!important}}

/* v57: stable chat viewport, true full-width composer, 3D action buttons, professional Jalali picker */
:root{--chat-keyboard-offset:0px;--chat-header-h:56px;--chat-composer-extra:0px}
.cchat-inbox-page .cchat-quick-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;flex-wrap:nowrap!important;margin:10px 0 14px!important}
.cchat-inbox-page .cchat-rect-action{min-width:124px!important;height:42px!important;border-radius:18px!important;border:1px solid #d8c8ff!important;background:linear-gradient(180deg,#fff 0%,#f7f1ff 60%,#eadfff 100%)!important;box-shadow:0 7px 0 #d6c6f7,0 14px 24px rgba(86,45,145,.16)!important;color:#43246c!important;padding:0 16px!important;transform:translateY(0);transition:transform .12s ease,box-shadow .12s ease,background .12s ease!important;text-align:center!important}
.cchat-inbox-page .cchat-rect-action:active{transform:translateY(4px)!important;box-shadow:0 3px 0 #d6c6f7,0 8px 15px rgba(86,45,145,.12)!important}
.cchat-inbox-page .cchat-rect-action b{font-size:13px!important;font-weight:1000!important;white-space:nowrap!important}
.cchat-inbox-page .chat-privacy-toggle-box,.cchat-inbox-page .chat-privacy-icon-form{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;width:auto!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
.cchat-inbox-page .chat-privacy-toggle.chat-privacy-icon-only{width:46px!important;height:46px!important;min-width:46px!important;border-radius:999px!important;border:1px solid #e6ddff!important;background:linear-gradient(180deg,#fff,#f7f3ff)!important;box-shadow:0 6px 0 #e2d8fb,0 13px 22px rgba(86,45,145,.13)!important;padding:0!important;display:grid!important;place-items:center!important}
.cchat-inbox-page .chat-privacy-icon{font-size:18px!important;line-height:1!important}
.cchat-active-page{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
.cchat-active-page .cchat-conversation{height:100dvh!important;max-height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;margin:0!important;border-radius:0!important;overflow:hidden!important;background:#fff!important}
.cchat-active-page .cchat-chat-header{flex:0 0 auto!important;position:sticky!important;top:0!important;z-index:60!important;background:rgba(255,255,255,.98)!important;backdrop-filter:blur(18px)!important;border-bottom:1px solid #f1edf7!important}
.cchat-active-page .cchat-group-info,.cchat-active-page .cchat-profile-bar,.cchat-active-page .cchat-pinned-message,.cchat-active-page .cchat-task-hub{flex:0 0 auto!important;z-index:35!important;background:rgba(255,255,255,.98)!important}
.cchat-active-page .cchat-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-bottom:10px!important;-webkit-overflow-scrolling:touch!important}
.cchat-active-page .cchat-compose,.cchat-active-page .chat-blocked-note{flex:0 0 auto!important;position:sticky!important;bottom:var(--chat-keyboard-offset,0px)!important;z-index:65!important;width:100%!important;max-width:100%!important;left:0!important;right:0!important;margin:0!important;border-radius:18px 18px 0 0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.99)!important;box-shadow:0 -12px 30px rgba(30,20,60,.12)!important;border-top:1px solid #eee8f6!important}
.cchat-private-line-form{display:grid!important;grid-template-columns:42px minmax(0,1fr) 44px!important;gap:7px!important;align-items:end!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.cchat-private-compose-main{width:100%!important;min-width:0!important;display:grid!important;gap:6px!important}
.cchat-private-mini-fields{display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(150px,.95fr)!important;gap:6px!important;width:100%!important;min-width:0!important}
.cchat-private-mini-fields select,.cchat-jalali-picker input{width:100%!important;height:32px!important;min-width:0!important;border-radius:999px!important;border:1px solid #ded6ed!important;background:#fbfaff!important;padding:0 10px!important;font-size:11.5px!important;font-weight:900!important;color:#3e344c!important;box-sizing:border-box!important}
.cchat-private-text-wrap, .cchat-private-line-form textarea[name=body]{width:100%!important;min-width:0!important;box-sizing:border-box!important}
.cchat-private-line-form textarea[name=body]{height:40px!important;min-height:40px!important;max-height:120px!important;border-radius:22px!important;border:1px solid #ded6ed!important;background:#fafafa!important;padding:8px 13px!important;font-size:14px!important;line-height:1.7!important;resize:none!important}
.cchat-jalali-picker{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) 54px;gap:4px;align-items:center;min-width:0!important;width:100%!important}
.cchat-date-trigger{height:32px;border:0;border-radius:999px;background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;font-size:10.5px;font-weight:1000;padding:0 8px;box-shadow:0 8px 18px rgba(109,40,217,.18)}
.cchat-date-panel{position:absolute;inset-inline-end:0;bottom:38px;width:min(330px,calc(100vw - 22px));max-height:310px;overflow:auto;background:#fff;border:1px solid #e6def3;border-radius:20px;box-shadow:0 18px 48px rgba(31,20,60,.20);padding:10px;z-index:120;direction:rtl}
.cchat-date-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.cchat-date-panel-head b{font-size:13px;color:#30263d}.cchat-date-panel-head button{border:0;border-radius:999px;background:#f4efff;color:#6d28d9;padding:6px 10px;font-weight:1000;font-size:11px}.cchat-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cchat-date-grid button{border:1px solid #eee8f7;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfaff);padding:8px;text-align:right;display:grid;gap:2px;color:#3a3147}.cchat-date-grid button span{font-size:11px;font-weight:1000;color:#6d28d9}.cchat-date-grid button b{font-size:12px;font-weight:950;direction:ltr;text-align:right}.cchat-date-grid button.is-selected{border-color:#8b5cf6;background:#f4efff;box-shadow:0 0 0 2px rgba(139,92,246,.13)}
.cchat-message:has(.cchat-private-envelope){background:transparent!important;box-shadow:none!important}.cchat-private-envelope{display:flex!important;align-items:center!important;gap:7px!important;width:100%!important;max-width:100%!important}.cchat-private-envelope .cchat-task-sealed-author{width:54px!important;min-width:54px!important;display:grid!important;justify-items:center!important;gap:2px!important}.cchat-private-envelope .cchat-task-sealed-author img,.cchat-private-envelope .cchat-task-sealed-author span{width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover!important}.cchat-private-recipient-mini{width:38px!important;min-width:38px!important;display:grid!important;justify-items:center!important;gap:1px!important}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:23px!important;height:23px!important;border-radius:50%!important;object-fit:cover!important}.cchat-private-envelope small{font-size:8.5px!important;max-width:54px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#7f748d!important}.cchat-private-recipient-mini small{max-width:42px!important}.cchat-private-message-details,.cchat-private-envelope .cchat-task-sealed-box{min-width:136px!important;max-width:230px!important;border-radius:15px!important;border:1px solid #eadfff!important;background:#fff!important;box-shadow:0 8px 20px rgba(109,40,217,.08)!important}.cchat-force-private-reply .cchat-messages{overflow:hidden!important}.cchat-force-private-reply .cchat-private-message-details{animation:privateBlink 1s ease-in-out infinite!important}.cchat-force-private-reply .cchat-private-line-form{box-shadow:0 -14px 34px rgba(124,58,237,.18)!important}.cchat-force-private-reply .cchat-private-line-form:before{content:'برای ادامه، اول به پیام خصوصی چشمک‌زن پاسخ بدهید';position:absolute;left:10px;right:10px;bottom:calc(100% + 5px);background:#6d28d9;color:#fff;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:1000;text-align:center;box-shadow:0 8px 22px rgba(109,40,217,.24);z-index:80}
@media(max-width:760px){.cchat-inbox-page .cchat-quick-actions{gap:8px!important}.cchat-inbox-page .cchat-rect-action{min-width:108px!important;height:40px!important;border-radius:16px!important;padding:0 12px!important}.cchat-inbox-page .cchat-rect-action b{font-size:12px!important}.cchat-inbox-page .chat-privacy-toggle.chat-privacy-icon-only{width:42px!important;height:42px!important;min-width:42px!important}.cchat-active-page .cchat-compose{padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important}.cchat-private-line-form{grid-template-columns:40px minmax(0,1fr) 42px!important;gap:6px!important}.cchat-private-mini-fields{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;gap:5px!important}.cchat-private-mini-fields select,.cchat-jalali-picker input{height:31px!important;font-size:10.5px!important;padding:0 8px!important}.cchat-jalali-picker{grid-template-columns:minmax(0,1fr) 48px}.cchat-date-trigger{height:31px;font-size:10px;padding:0 6px}.cchat-private-line-form textarea[name=body]{height:39px!important;min-height:39px!important;font-size:13.5px!important}.cchat-date-panel{position:fixed;left:8px;right:8px;bottom:calc(66px + var(--chat-keyboard-offset,0px));width:auto;max-height:42dvh}.cchat-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cchat-private-envelope .cchat-task-sealed-author{width:50px!important;min-width:50px!important}.cchat-private-envelope .cchat-task-sealed-author img,.cchat-private-envelope .cchat-task-sealed-author span{width:36px!important;height:36px!important}.cchat-private-recipient-mini{width:34px!important;min-width:34px!important}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:21px!important;height:21px!important}.cchat-private-message-details,.cchat-private-envelope .cchat-task-sealed-box{max-width:178px!important;min-width:124px!important}.cchat-active-page .cchat-chat-header{position:sticky!important;top:0!important}.cchat-active-page .cchat-conversation{height:100dvh!important}}

/* v58: requested private group chat refinements only */
.cchat-inbox-page .cchat-quick-actions{gap:10px!important;align-items:center!important;justify-content:center!important}
.cchat-inbox-page .cchat-action-pop{flex:0 0 auto!important}
.cchat-inbox-page .cchat-rect-action{min-width:132px!important;height:44px!important;border-radius:15px!important;border:1px solid #ded4ff!important;background:linear-gradient(180deg,#ffffff 0%,#f7f1ff 100%)!important;box-shadow:0 7px 0 #ded4ff,0 15px 26px rgba(78,44,130,.14)!important;color:#4e2b77!important;padding:0 15px!important;transform:translateY(0)!important}
.cchat-inbox-page .cchat-rect-action:active{transform:translateY(2px)!important;box-shadow:0 4px 0 #ded4ff,0 10px 18px rgba(78,44,130,.12)!important}
.cchat-inbox-page .cchat-rect-action b{font-size:12.5px!important;font-weight:1000!important;white-space:nowrap!important}
.cchat-inbox-page .chat-privacy-toggle.chat-privacy-icon-only{width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;border:1px solid #ded4ff!important;background:linear-gradient(180deg,#fff,#f8f4ff)!important;box-shadow:0 7px 0 #ded4ff,0 15px 26px rgba(78,44,130,.12)!important}
.cchat-active-page .cchat-conversation{height:100dvh!important;max-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.cchat-active-page .cchat-chat-header{flex:0 0 auto!important;position:sticky!important;top:0!important;z-index:80!important}
.cchat-active-page .cchat-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding-bottom:12px!important}
.cchat-active-page .cchat-compose{flex:0 0 auto!important;position:sticky!important;bottom:var(--chat-keyboard-offset,0px)!important;z-index:85!important;width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
.cchat-private-line-form{display:grid!important;grid-template-columns:40px minmax(0,1fr) 44px!important;gap:7px!important;align-items:end!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.cchat-private-compose-main{width:100%!important;max-width:100%!important;min-width:0!important;display:grid!important;gap:6px!important}
.cchat-private-mini-fields{display:grid!important;grid-template-columns:minmax(120px,1fr) 44px!important;gap:6px!important;width:100%!important;min-width:0!important}
.cchat-private-mini-fields select{width:100%!important;min-width:0!important;height:32px!important;border-radius:999px!important;border:1px solid #ded6ed!important;background:#fbfaff!important;font-size:11px!important;font-weight:950!important;padding:0 9px!important}
.cchat-jalali-picker{display:block!important;position:relative!important;width:44px!important;min-width:44px!important}
.cchat-jalali-picker input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.cchat-date-trigger{width:38px!important;height:32px!important;border-radius:999px!important;border:1px solid #ded6ed!important;background:#fff!important;box-shadow:0 7px 16px rgba(78,44,130,.08)!important;font-size:15px!important;padding:0!important;display:grid!important;place-items:center!important}
.cchat-date-panel{border-radius:20px!important;border:1px solid #e7dcff!important;box-shadow:0 18px 55px rgba(45,28,78,.2)!important;background:#fff!important;overflow:hidden!important}
.cchat-date-panel-head{display:grid!important;grid-template-columns:1fr auto auto!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;background:linear-gradient(180deg,#fbf8ff,#fff)!important;border-bottom:1px solid #eee8fb!important}
.cchat-date-panel-head b{font-size:13px!important;font-weight:1000!important;color:#3e3152!important}.cchat-date-panel-head small{font-size:10px!important;color:#8a7ca0!important}.cchat-date-panel-head button{height:28px!important;border:0!important;border-radius:999px!important;background:#f4efff!important;color:#6d28d9!important;font-size:10.5px!important;font-weight:1000!important;padding:0 9px!important}
.cchat-date-grid{padding:9px!important;gap:7px!important}.cchat-date-grid button{border:1px solid #eee7ff!important;border-radius:14px!important;background:#fff!important;padding:8px!important;display:grid!important;gap:2px!important;text-align:center!important}.cchat-date-grid button span{font-size:10px!important;color:#8a7ca0!important}.cchat-date-grid button b{font-size:11px!important;color:#372b48!important;direction:ltr!important}.cchat-date-grid button.is-selected{background:#f3edff!important;border-color:#cbb9ff!important}
.cchat-private-line-form textarea[name=body]{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.cchat-message:has(.cchat-private-envelope){background:transparent!important;box-shadow:none!important;max-width:min(96%,520px)!important}.cchat-message:has(.cchat-private-envelope)>.cchat-meta{display:none!important}
.cchat-private-envelope{display:flex!important;align-items:center!important;gap:7px!important;width:auto!important;max-width:100%!important}
.cchat-private-envelope .cchat-task-sealed-author{width:42px!important;min-width:42px!important;display:grid!important;place-items:center!important}.cchat-private-envelope .cchat-task-sealed-author img,.cchat-private-envelope .cchat-task-sealed-author span{width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover!important}
.cchat-private-recipient-mini{width:32px!important;min-width:32px!important;display:grid!important;justify-items:center!important;gap:1px!important}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:22px!important;height:22px!important;border-radius:50%!important;object-fit:cover!important}.cchat-private-recipient-mini small{font-size:8px!important;max-width:42px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#8a7f98!important}
.cchat-private-message-details{min-width:120px!important;max-width:260px!important;border-radius:15px!important;border:1px solid #eadfff!important;background:#fff!important;box-shadow:0 8px 20px rgba(109,40,217,.08)!important}.cchat-private-message-details>summary{list-style:none!important;display:flex!important;align-items:center!important;gap:7px!important;padding:8px 9px!important;cursor:pointer!important}.cchat-private-message-details>summary::-webkit-details-marker{display:none!important}.cchat-private-message-details>summary b{font-size:11.5px!important;font-weight:1000!important;color:#342743!important;white-space:nowrap!important}.cchat-private-message-details>summary time{font-size:9.5px!important;color:#857697!important;direction:ltr!important;white-space:nowrap!important}
.cchat-private-message-body{border-top:1px dashed #eee7ff!important;padding:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;align-items:start!important}.cchat-private-message-body p{grid-column:1/-1!important;margin:0!important;font-size:12px!important;font-weight:850!important;line-height:1.8!important;color:#352b44!important}.cchat-private-message-body small{font-size:10px!important;color:#7c708b!important;background:#faf7ff!important;border-radius:10px!important;padding:5px 7px!important}.cchat-private-reply-small,.cchat-private-file{height:26px!important;border:0!important;border-radius:999px!important;background:#6d28d9!important;color:#fff!important;font-size:10px!important;font-weight:1000!important;padding:0 9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important}
.cchat-action-pop .emoji-palette,.cchat-action-pop [data-emoji-palette],.cchat-action-pop .emoji-toggle,.cchat-action-pop [data-emoji-toggle]{display:none!important}
.resume-flow-pill.hide-on-chat{display:none!important}
@media(max-width:760px){.cchat-inbox-page .cchat-quick-actions{gap:8px!important}.cchat-inbox-page .cchat-rect-action{min-width:114px!important;height:42px!important;padding:0 10px!important}.cchat-inbox-page .chat-privacy-toggle.chat-privacy-icon-only{width:42px!important;height:42px!important;min-width:42px!important}.cchat-active-page .cchat-conversation{height:100dvh!important;width:100vw!important;margin-inline:calc(50% - 50vw)!important;border-radius:0!important}.cchat-active-page .cchat-compose{width:100vw!important;max-width:100vw!important;margin-inline:calc(50% - 50vw)!important;border-radius:0!important;padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important}.cchat-private-line-form{grid-template-columns:38px minmax(0,1fr) 42px!important;gap:6px!important}.cchat-private-mini-fields{grid-template-columns:minmax(0,1fr) 42px!important;gap:5px!important}.cchat-private-mini-fields select{height:31px!important;font-size:10.5px!important}.cchat-date-trigger{width:36px!important;height:31px!important}.cchat-date-panel{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(62px + var(--chat-keyboard-offset,0px))!important;width:auto!important;max-height:48dvh!important}.cchat-date-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cchat-private-message-details{max-width:196px!important}.cchat-private-message-body{grid-template-columns:1fr auto!important}.cchat-private-envelope .cchat-task-sealed-author{width:40px!important;min-width:40px!important}.cchat-private-envelope .cchat-task-sealed-author img,.cchat-private-envelope .cchat-task-sealed-author span{width:36px!important;height:36px!important}.cchat-private-recipient-mini{width:31px!important;min-width:31px!important}.cchat-private-recipient-mini img,.cchat-private-recipient-mini span{width:20px!important;height:20px!important}}

/* v60: requested group/private-chat fixes without changing main UX */
.cchat-quick-actions{align-items:flex-start!important}.cchat-quick-actions .cchat-create-action,.cchat-quick-actions .cchat-task-action{min-width:148px!important}.cchat-quick-actions .cchat-create-action b,.cchat-quick-actions .cchat-task-action b{white-space:nowrap!important}
.cchat-icon-action.cchat-delete-room-btn{position:relative!important;width:36px!important;height:36px!important;border:1px solid #efe7fb!important;border-radius:14px!important;background:linear-gradient(180deg,#fff,#faf7ff)!important;box-shadow:0 8px 20px rgba(36,24,60,.07)!important;color:#7c3aed!important;display:grid!important;place-items:center!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important}.cchat-icon-action.cchat-delete-room-btn:hover{transform:translateY(-1px)!important;box-shadow:0 12px 26px rgba(124,58,237,.16)!important}.cchat-icon-action.cchat-delete-room-btn span{position:relative;display:block;width:18px;height:18px}.cchat-icon-action.cchat-delete-room-btn.is-direct-delete span:before{content:'';position:absolute;left:4px;right:4px;top:5px;bottom:2px;border:2px solid currentColor;border-top:0;border-radius:2px}.cchat-icon-action.cchat-delete-room-btn.is-direct-delete span:after{content:'';position:absolute;left:3px;right:3px;top:2px;height:2px;background:currentColor;border-radius:2px;box-shadow:4px -2px 0 -1px currentColor}.cchat-icon-action.cchat-delete-room-btn.is-group-leave span:before{content:'';position:absolute;left:1px;top:4px;width:10px;height:10px;border:2px solid currentColor;border-radius:4px;opacity:.9}.cchat-icon-action.cchat-delete-room-btn.is-group-leave span:after{content:'';position:absolute;right:0;top:7px;width:13px;height:2px;background:currentColor;border-radius:999px;box-shadow:-1px -4px 0 -1px currentColor,-1px 4px 0 -1px currentColor;transform:translateX(1px)}.cchat-group-member-list form button.danger{border:0!important;border-radius:999px!important;background:#fff1f2!important;color:#e11d48!important;font-weight:1000!important;padding:7px 10px!important;box-shadow:inset 0 0 0 1px #fecdd3!important}.cchat-group-member-list form button.danger:before{content:'×';display:inline-grid;place-items:center;width:15px;height:15px;margin-inline-end:4px;border-radius:50%;background:#e11d48;color:#fff;font-size:12px;line-height:15px}.cchat-private-mode-tools{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}.cchat-private-mode-tools span{min-width:0;flex:1 1 220px}.cchat-private-report-btn,.cchat-task-report-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;border:0!important;border-radius:999px!important;padding:9px 13px!important;background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;font-size:12px!important;font-weight:1000!important;box-shadow:0 12px 26px rgba(109,40,217,.20)!important;white-space:nowrap!important}.cchat-private-report-btn:before,.cchat-task-report-link:before{content:'📊';font-size:14px}.cchat-private-waiting-note{margin:8px 10px 10px!important;border-radius:18px!important;background:#fff8e6!important;border:1px solid #fde68a!important;color:#92400e!important;font-weight:1000!important}.cchat-report-subtitle{font-size:15px;margin:18px 0 10px;font-weight:1000;color:#28213a}.cchat-report-members,.cchat-report-tasks{display:grid;gap:8px}.cchat-report-members article{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:10px;border:1px solid #eee9f8;border-radius:18px;background:#fff}.cchat-report-members article span{grid-row:1/3;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-weight:1000}.cchat-report-members article img{width:100%;height:100%;object-fit:cover}.cchat-report-members article b,.cchat-report-members article small{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-report-members article small{color:#8b8498;font-size:11px;direction:ltr;text-align:start}.cchat-report-tasks article{display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:8px;align-items:center;padding:10px;border:1px solid #eee9f8;border-radius:18px;background:#fff}.cchat-report-tasks article div{min-width:0}.cchat-report-tasks article b,.cchat-report-tasks article small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-report-tasks article small{direction:ltr;color:#8b8498}.cchat-report-tasks article span{text-align:center;color:#8b5cf6;font-weight:1000}.cchat-report-tasks article em{grid-column:1/-1;font-style:normal;font-size:11px;color:#756f84;border-top:1px dashed #eee9f8;padding-top:6px}.cchat-assignment-room .cchat-conversation{width:100%!important;max-width:100%!important}.cchat-assignment-room .cchat-private-line-form{justify-self:stretch!important;align-self:end!important;inset-inline:0!important;left:auto!important;right:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important;margin-inline:0!important;width:100%!important;max-width:100%!important;min-width:0!important}.cchat-private-line-form .cchat-compose-main,.cchat-private-line-form .cchat-private-compose-main{min-width:0!important;width:100%!important;max-width:100%!important}.cchat-private-line-form .cchat-private-mini-fields,.cchat-private-line-form textarea[name=body]{min-width:0!important;width:100%!important;max-width:100%!important}
@media(max-width:760px){.cchat-inbox-page .cchat-quick-actions{display:grid!important;grid-template-columns:1fr 42px 1fr!important;align-items:start!important;width:100%!important}.cchat-inbox-page .cchat-quick-actions .cchat-action-pop{min-width:0!important;width:100%!important}.cchat-inbox-page .cchat-quick-actions .cchat-rect-action{width:100%!important;min-width:0!important}.cchat-active-page.cchat-assignment-room{width:100vw!important;max-width:100vw!important;margin:0!important;padding-left:0!important;padding-right:0!important;overflow-x:hidden!important}.cchat-active-page.cchat-assignment-room .cchat-conversation{width:100vw!important;max-width:100vw!important;margin:0!important;border-radius:0!important}.cchat-active-page.cchat-assignment-room .cchat-private-line-form{position:sticky!important;bottom:var(--chat-keyboard-offset,0px)!important;left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;margin:0!important;margin-inline:0!important;border-radius:0!important;box-sizing:border-box!important;grid-template-columns:40px minmax(0,1fr) 42px!important;padding-left:8px!important;padding-right:8px!important}.cchat-private-mode-tools{border-radius:0!important;margin:0!important}.cchat-private-report-btn{width:100%!important}.cchat-report-tasks article{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important}.cchat-report-page{padding-inline:8px!important}}

/* v61: corrected private-group flow + polished private-message cards */
.cchat-assignment-room .cchat-message:has(.cchat-private-envelope){max-width:96%!important;width:auto!important;align-self:center!important;margin:8px auto!important;background:transparent!important;box-shadow:none!important;padding:0!important;animation:cchatPrivateDrop .34s cubic-bezier(.2,.8,.2,1) both!important}
.cchat-private-envelope{position:relative!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) 54px!important;align-items:center!important;gap:8px!important;width:min(560px,100%)!important;margin:2px auto!important;padding:8px!important;border:1px solid rgba(139,92,246,.18)!important;border-radius:24px!important;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,245,255,.98))!important;box-shadow:0 18px 42px rgba(40,25,70,.11)!important;overflow:visible!important;isolation:isolate!important}
.cchat-private-envelope:before{content:'';position:absolute;inset:2px;border-radius:22px;background:radial-gradient(circle at 20% 0%,rgba(139,92,246,.16),transparent 42%),radial-gradient(circle at 90% 100%,rgba(14,165,233,.13),transparent 38%);z-index:-1;pointer-events:none}.cchat-private-envelope:after{content:'';position:absolute;top:50%;left:54px;right:54px;height:2px;background:linear-gradient(90deg,rgba(139,92,246,.18),rgba(139,92,246,.42),rgba(20,184,166,.22));transform:translateY(-50%);z-index:-1}.cchat-private-envelope.is-required-private{border-color:rgba(245,158,11,.42)!important;box-shadow:0 18px 46px rgba(245,158,11,.18),0 0 0 4px rgba(245,158,11,.08)!important;animation:cchatPrivatePulse 1.8s ease-in-out infinite!important}.cchat-private-side{display:grid!important;place-items:center!important;gap:3px!important;min-width:0!important}.cchat-private-side small{max-width:52px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9.5px!important;color:#7b728b!important;direction:ltr!important}.cchat-private-from:after{content:'فرستنده';font-size:8.5px;color:#9b91aa}.cchat-private-to:after{content:'گیرنده';font-size:8.5px;color:#9b91aa}.cchat-private-envelope .cchat-task-sealed-author,.cchat-private-envelope .cchat-private-recipient-mini{width:42px!important;height:42px!important;min-width:42px!important;border-radius:16px!important;padding:0!important;background:linear-gradient(135deg,#7c3aed,#06b6d4)!important;box-shadow:0 10px 22px rgba(76,29,149,.18)!important;display:grid!important;place-items:center!important;overflow:hidden!important}.cchat-private-envelope .cchat-private-recipient-mini{background:linear-gradient(135deg,#10b981,#22c55e)!important}.cchat-private-envelope .cchat-task-sealed-author img,.cchat-private-envelope .cchat-private-recipient-mini img,.cchat-private-envelope .cchat-task-sealed-author span,.cchat-private-envelope .cchat-private-recipient-mini span{width:100%!important;height:100%!important;border-radius:16px!important;object-fit:cover!important;display:grid!important;place-items:center!important;color:#fff!important;font-weight:1000!important}.cchat-private-message-details{width:100%!important;max-width:100%!important;min-width:0!important;border:0!important;border-radius:20px!important;background:#fff!important;box-shadow:inset 0 0 0 1px rgba(237,233,254,.9),0 8px 22px rgba(17,24,39,.05)!important;overflow:hidden!important}.cchat-private-message-details>summary{min-height:44px!important;padding:9px 11px!important;display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;cursor:pointer!important;list-style:none!important}.cchat-private-message-details>summary::-webkit-details-marker{display:none!important}.cchat-private-lock{width:26px!important;height:26px!important;border-radius:11px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#ede9fe,#cffafe)!important;color:#6d28d9!important;box-shadow:0 8px 18px rgba(109,40,217,.15)!important}.cchat-private-message-details>summary b{font-size:12.5px!important;font-weight:1000!important;color:#2d2540!important;white-space:nowrap!important}.cchat-private-message-details>summary em{font-style:normal!important;justify-self:start!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;color:#6d28d9!important;background:#f4f0ff!important;border-radius:999px!important;padding:3px 8px!important}.cchat-private-message-details>summary time{font-size:9.5px!important;color:#8b8498!important;white-space:nowrap!important}.cchat-private-message-body{display:block!important;padding:0 11px 11px!important}.cchat-private-message-body p{margin:0 0 9px!important;padding:10px 12px!important;border-radius:16px!important;background:linear-gradient(180deg,#fbfaff,#fff)!important;border:1px solid #f0eafd!important;color:#30263f!important;font-size:12.5px!important;font-weight:850!important;line-height:1.85!important;box-shadow:0 8px 18px rgba(72,43,120,.05)!important}.cchat-private-message-body.is-hidden-private p{color:#7c708b!important;background:#fafafa!important;text-align:center!important}.cchat-private-message-actions{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}.cchat-private-message-actions small{font-size:10px!important;color:#7c708b!important;background:#faf7ff!important;border-radius:999px!important;padding:6px 8px!important}.cchat-private-reply-small,.cchat-private-file,.cchat-private-ok-small{min-height:28px!important;border:0!important;border-radius:999px!important;color:#fff!important;font-size:10.5px!important;font-weight:1000!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;box-shadow:0 8px 16px rgba(109,40,217,.16)!important;transition:transform .15s ease,filter .15s ease!important}.cchat-private-reply-small{background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important}.cchat-private-file{background:linear-gradient(135deg,#0ea5e9,#06b6d4)!important}.cchat-private-ok-form{display:inline!important;margin:0!important}.cchat-private-ok-small{background:linear-gradient(135deg,#16a34a,#22c55e)!important;box-shadow:0 8px 16px rgba(22,163,74,.16)!important}.cchat-private-reply-small:hover,.cchat-private-file:hover,.cchat-private-ok-small:hover{transform:translateY(-1px)!important;filter:saturate(1.08)!important}.cchat-private-line-form[data-required-private-task]:before{content:'برای ادامه، اول باید به پیام خصوصی بازشده پاسخ بدهید یا آن را اوکی کنید.';grid-column:1/-1;font-size:11px;font-weight:1000;color:#92400e;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:7px 10px;animation:cchatPrivateDrop .28s ease both}
@keyframes cchatPrivateDrop{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes cchatPrivatePulse{0%,100%{box-shadow:0 18px 46px rgba(245,158,11,.14),0 0 0 4px rgba(245,158,11,.06)}50%{box-shadow:0 18px 52px rgba(245,158,11,.24),0 0 0 7px rgba(245,158,11,.09)}}
.cchat-report-filter{display:grid!important;grid-template-columns:1fr 1fr auto!important;gap:10px!important;align-items:end!important;margin:12px 0!important}.cchat-report-filter label{display:grid!important;gap:5px!important;font-size:12px!important;font-weight:900!important;color:#40364f!important}.cchat-report-filter input{height:38px!important;border-radius:14px!important;border:1px solid #e7def8!important;padding:0 10px!important;background:#fff!important}.cchat-report-filter button{height:38px!important;border:0!important;border-radius:14px!important;padding:0 14px!important;background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;font-weight:1000!important}.cchat-report-selected-range{margin:8px 0 12px!important;padding:9px 11px!important;border-radius:16px!important;background:#f8f5ff!important;border:1px solid #eee7ff!important;color:#574b69!important;font-size:12px!important;font-weight:900!important}.cchat-report-tasks article{transition:transform .15s ease,box-shadow .15s ease!important}.cchat-report-tasks article:hover{transform:translateY(-1px)!important;box-shadow:0 12px 28px rgba(31,21,55,.08)!important}
@media(max-width:760px){.cchat-private-envelope{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:5px!important;width:calc(100vw - 14px)!important;border-radius:20px!important;padding:6px!important}.cchat-private-envelope:after{left:44px;right:44px}.cchat-private-envelope .cchat-task-sealed-author,.cchat-private-envelope .cchat-private-recipient-mini{width:34px!important;height:34px!important;min-width:34px!important;border-radius:13px!important}.cchat-private-side small{max-width:42px!important;font-size:8.5px!important}.cchat-private-from:after,.cchat-private-to:after{font-size:7.5px}.cchat-private-message-details>summary{grid-template-columns:auto minmax(0,auto) minmax(0,1fr)!important;gap:5px!important;padding:8px!important}.cchat-private-message-details>summary time{grid-column:2/-1!important;justify-self:start!important}.cchat-private-message-body{padding:0 8px 9px!important}.cchat-private-message-body p{font-size:12px!important;padding:9px!important}.cchat-private-message-actions{gap:5px!important}.cchat-private-reply-small,.cchat-private-file,.cchat-private-ok-small{min-height:27px!important;font-size:10px!important;padding:0 8px!important}.cchat-report-filter{grid-template-columns:1fr!important}.cchat-report-filter button{width:100%!important}}

/* v62: corrected private-group workflow, alarm-first queue, richer manager report */
.cchat-alarm-focus{position:sticky;top:58px;z-index:34;margin:8px 8px 6px;padding:10px;border:1px solid rgba(124,58,237,.18);border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(246,241,255,.96));box-shadow:0 14px 38px rgba(67,56,202,.12);display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;animation:privateAlarmIn .35s ease both}.cchat-alarm-focus div{display:grid;gap:2px;min-width:0}.cchat-alarm-focus b{font-size:13px;color:#4c1d95}.cchat-alarm-focus span{font-size:11px;color:#6b6276;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-alarm-focus button{border:0;border-radius:14px;padding:9px 12px;background:#4f46e5;color:#fff;font-weight:1000;box-shadow:0 8px 18px rgba(79,70,229,.22)}.cchat-alarm-focus form{margin:0}.cchat-alarm-focus .is-ok{background:#16a34a;box-shadow:0 8px 18px rgba(22,163,74,.18)}.cchat-upcoming-alarms{margin:0 8px 6px;border:1px solid #ece7ff;border-radius:18px;background:#fff;overflow:hidden}.cchat-upcoming-alarms summary{cursor:pointer;padding:9px 11px;font-size:12px;font-weight:1000;list-style:none;display:flex;justify-content:space-between}.cchat-upcoming-alarms summary::-webkit-details-marker{display:none}.cchat-upcoming-alarms summary b{background:#f1ecff;color:#5b21b6;border-radius:999px;padding:2px 8px}.cchat-upcoming-alarms button{width:100%;border:0;border-top:1px solid #f4f0ff;background:#fff;padding:9px 11px;text-align:start;display:grid;grid-template-columns:112px 1fr;gap:8px;align-items:center;font-family:var(--app-font)}.cchat-upcoming-alarms button span{font-size:10px;color:#7c3aed}.cchat-upcoming-alarms button em{font-style:normal;font-size:12px;color:#373044;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-private-envelope{position:relative;animation:privatePacketIn .28s ease both;transform-origin:center}.cchat-private-envelope.is-required-private{animation:privatePacketIn .28s ease both,privateRequiredPulse 1.8s ease-in-out infinite}.cchat-private-envelope.has-alarm .cchat-task-sealed-box{border-color:#fde68a;background:linear-gradient(135deg,#fff,#fffbeb)}.cchat-private-envelope.is-followup .cchat-task-sealed-box{border-color:#bbf7d0;background:linear-gradient(135deg,#fff,#f0fdf4)}.cchat-private-side label{font-size:8px;font-weight:1000;color:#8b7b9f;background:#fff;border:1px solid #efe7ff;border-radius:999px;padding:1px 5px;margin-bottom:2px}.cchat-private-envelope .cchat-task-sealed-box{flex:1;max-width:min(520px,calc(100vw - 118px));border-radius:21px;padding:0;overflow:hidden;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);box-shadow:0 16px 35px rgba(17,24,39,.08),inset 0 1px 0 rgba(255,255,255,.72)}.cchat-private-envelope .cchat-task-sealed-box summary{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center;padding:10px 12px;background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(16,185,129,.06));list-style:none}.cchat-private-envelope .cchat-task-sealed-box summary::-webkit-details-marker{display:none}.cchat-private-envelope .cchat-private-lock{width:28px;height:28px;border-radius:12px;background:#fff;display:grid;place-items:center;box-shadow:0 8px 16px rgba(91,33,182,.08)}.cchat-private-envelope .cchat-task-sealed-box summary b{font-size:12px;color:#332a44;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cchat-private-envelope .cchat-task-sealed-box summary em{font-size:10px;color:#6d28d9;background:#fff;border-radius:999px;padding:3px 7px}.cchat-private-envelope .cchat-task-sealed-box summary time{grid-column:1 / -1;justify-self:start;font-size:10px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:999px;padding:3px 8px}.cchat-private-message-body{padding:10px 12px}.cchat-private-message-body p{margin:0;color:#332a44;font-size:13px;line-height:1.9}.cchat-private-message-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:10px}.cchat-private-message-actions .cchat-private-alarm-note{width:100%;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:12px;padding:6px 8px;font-weight:900}.cchat-private-reply-small,.cchat-private-ok-small{border:0;border-radius:13px;padding:8px 11px;font-weight:1000;font-size:11px}.cchat-private-reply-small{background:#4f46e5;color:#fff}.cchat-private-ok-small{background:#16a34a;color:#fff}.cchat-private-ok-form{margin:0}.cchat-private-to .cchat-private-recipient-mini img,.cchat-private-to .cchat-private-recipient-mini span{background:#dcfce7;color:#166534}.cchat-private-from .cchat-task-sealed-author img,.cchat-private-from .cchat-task-sealed-author span{background:#ede9fe;color:#5b21b6}@keyframes privatePacketIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes privateRequiredPulse{0%,100%{filter:none}50%{filter:drop-shadow(0 0 12px rgba(124,58,237,.22))}}@keyframes privateAlarmIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.cchat-manager-report-page{max-width:1180px}.cchat-manager-report-head{background:linear-gradient(135deg,#f7f2ff,#eefdf6);border:1px solid #ebe6ff;border-radius:22px;padding:12px}.cchat-manager-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}.cchat-manager-kpis article{background:#fff;border:1px solid #eee8ff;border-radius:18px;padding:12px;box-shadow:0 10px 24px rgba(17,24,39,.04)}.cchat-manager-kpis span{display:block;font-size:11px;color:#746b85;font-weight:900}.cchat-manager-kpis b{display:block;font-size:24px;color:#4c1d95;margin-top:2px}.cchat-manager-stats-grid article.has-waiting{border-color:#fde68a;background:#fffbeb}.cchat-manager-table-wrap{overflow:auto;border:1px solid #eee8ff;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(17,24,39,.05)}.cchat-manager-table{width:100%;border-collapse:collapse;min-width:760px;font-size:12px}.cchat-manager-table th{background:#f8f5ff;color:#4c1d95;text-align:start;padding:11px;font-weight:1000;position:sticky;top:0}.cchat-manager-table td{border-top:1px solid #f2eefb;padding:10px;vertical-align:top;color:#332a44}.cchat-manager-table td b,.cchat-manager-table td small{display:block}.cchat-manager-table td small{color:#887e99;font-size:10px}.cchat-manager-table td span{display:inline-flex;border-radius:999px;background:#eef2ff;color:#3730a3;padding:4px 8px;font-weight:1000;font-size:10px}.cchat-manager-table td em{display:inline-flex;border-radius:999px;background:#f1f5f9;color:#334155;padding:4px 8px;font-style:normal;font-weight:1000;font-size:10px}.cchat-manager-table tr.is-open td{background:rgba(255,251,235,.28)}.cchat-manager-table tr.has-alarm td:first-child{border-inline-start:4px solid #f59e0b}.cchat-manager-members article{transition:.18s ease}.cchat-manager-members article:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(17,24,39,.06)}
@media(max-width:760px){.cchat-alarm-focus{top:54px;margin-inline:4px;grid-template-columns:1fr}.cchat-alarm-focus button{width:100%}.cchat-upcoming-alarms{margin-inline:4px}.cchat-upcoming-alarms button{grid-template-columns:1fr}.cchat-private-envelope{gap:4px!important}.cchat-private-side label{display:none}.cchat-private-envelope .cchat-task-sealed-box{max-width:calc(100vw - 92px)}.cchat-private-message-actions{display:grid;grid-template-columns:1fr}.cchat-private-ok-form,.cchat-private-ok-form button{width:100%}.cchat-manager-kpis{grid-template-columns:1fr}.cchat-manager-table{min-width:720px}}

/* v63: private-group-only UX refinements requested by client */
.cchat-action-pop[open]{position:fixed!important;inset:0!important;z-index:3000!important;background:#fff!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}.cchat-action-pop[open]>.cchat-rect-action{height:56px!important;border-radius:0!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #eee8fb!important;background:#fff!important;justify-content:center!important}.cchat-action-pop[open]>.cchat-group-form{height:100%!important;min-height:0!important;overflow:auto!important;padding:14px 14px calc(86px + env(safe-area-inset-bottom) + var(--chat-keyboard-offset,0px))!important;margin:0!important;display:grid!important;align-content:start!important;gap:12px!important}.cchat-create-actions{position:fixed!important;left:0!important;right:0!important;bottom:var(--chat-keyboard-offset,0px)!important;z-index:3010!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #eee8fb!important;backdrop-filter:blur(14px)!important}.cchat-create-actions .btn{height:44px!important;border-radius:16px!important}.cchat-create-cancel{background:#f8f5ff!important;color:#5b21b6!important;border:1px solid #e7dcff!important}.cchat-action-pop[open] .cchat-group-members{max-height:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.cchat-action-pop[open] .cchat-group-desc-input{min-height:72px!important}.cchat-active-page .cchat-chat-header{position:sticky!important;top:0!important;z-index:120!important}.cchat-active-page .cchat-compose{position:sticky!important;bottom:var(--chat-keyboard-offset,0px)!important;z-index:125!important}.cchat-members-trigger{border:0!important;background:transparent!important;color:#8e879d!important;font:inherit!important;font-weight:900!important;padding:0!important;cursor:pointer!important}.cchat-members-trigger:hover{color:#6d28d9!important}.cchat-group-avatar-settings{border:0!important;position:relative!important;cursor:default!important}.cchat-group-avatar-settings.can-open-settings{cursor:pointer!important}.cchat-gear-badge{position:absolute!important;right:-3px!important;bottom:-3px!important;width:19px!important;height:19px!important;border-radius:50%!important;background:#fff!important;color:#6d28d9!important;border:1px solid #ddd6fe!important;box-shadow:0 4px 10px rgba(67,56,202,.18)!important;font-size:11px!important;display:grid!important;place-items:center!important;line-height:1!important}.cchat-group-info-panel{padding:0!important;border-bottom:0!important;background:transparent!important}.cchat-group-management-panel{margin:0!important;border:0!important;background:transparent!important;padding:0!important}.cchat-group-management-panel:not([open]){display:none!important}.cchat-panel-hidden-summary{height:0!important;min-height:0!important;overflow:hidden!important;padding:0!important;margin:0!important;border:0!important;list-style:none!important}.cchat-panel-hidden-summary::-webkit-details-marker{display:none!important}.cchat-group-panel-inner{display:grid!important;gap:10px!important;padding:10px!important;background:linear-gradient(180deg,#fff,#fbfaff)!important;border-bottom:1px solid #eee8fb!important;max-height:48dvh!important;overflow:auto!important}.cchat-group-panel-section{border:1px solid #eee8fb!important;border-radius:18px!important;background:#fff!important;padding:10px!important;box-shadow:0 8px 22px rgba(17,24,39,.035)!important}.cchat-group-panel-section h3{margin:0 0 9px!important;font-size:13px!important;color:#3b2f4c!important;font-weight:1000!important}.cchat-settings-split{display:grid!important;gap:10px!important}.cchat-settings-split fieldset{border:1px solid #eee8fb!important;border-radius:16px!important;padding:10px!important;margin:0!important;display:grid!important;gap:8px!important}.cchat-settings-split legend{font-size:12px!important;font-weight:1000!important;color:#6d28d9!important;padding:0 5px!important}.cchat-settings-split input:not([type=checkbox]):not([type=radio]),.cchat-settings-split textarea,.cchat-report-filter-compact select{width:100%!important;border:1px solid #e7def8!important;border-radius:14px!important;min-height:38px!important;padding:8px 10px!important;background:#fff!important;font-family:var(--app-font)!important}.cchat-settings-split label{display:flex!important;align-items:center!important;gap:7px!important;font-size:12px!important;font-weight:900!important;color:#443852!important}.cchat-settings-split button[type=submit]{height:42px!important;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;font-weight:1000!important}.cchat-task-report-link{margin-top:8px!important;width:100%!important}.cchat-jalali-picker{display:grid!important;grid-template-columns:38px 38px!important;gap:5px!important;width:81px!important;min-width:81px!important}.cchat-time-picker{position:relative!important;width:38px!important;height:32px!important;border-radius:999px!important;border:1px solid #ded6ed!important;background:#fff!important;box-shadow:0 7px 16px rgba(78,44,130,.08)!important;display:grid!important;place-items:center!important;cursor:pointer!important;overflow:hidden!important}.cchat-time-picker input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important}.cchat-time-picker span{font-size:15px!important;pointer-events:none!important}.cchat-private-mini-fields{grid-template-columns:minmax(100px,1fr) 81px!important}.cchat-date-panel{inset-inline-end:0!important}.cchat-clean-report-page{max-width:1280px!important}.cchat-report-head-compact{display:flex!important;align-items:center!important;gap:12px!important;justify-content:flex-start!important}.cchat-report-filter-compact{grid-template-columns:repeat(3,minmax(150px,1fr)) auto auto!important;align-items:end!important}.cchat-export-link{height:38px!important;border-radius:14px!important;background:#ecfdf5!important;color:#047857!important;border:1px solid #bbf7d0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 13px!important;font-size:12px!important;font-weight:1000!important;white-space:nowrap!important}.cchat-work-table{min-width:1060px!important}.cchat-work-table td:nth-child(9){min-width:220px!important}.cchat-work-table td span{white-space:nowrap!important}@media(max-width:760px){.cchat-action-pop[open] .cchat-group-members{grid-template-columns:1fr!important}.cchat-action-pop[open]>.cchat-group-form{padding-inline:10px!important}.cchat-report-filter-compact{grid-template-columns:1fr!important}.cchat-export-link{width:100%!important}.cchat-group-panel-inner{max-height:52dvh!important;padding:8px!important}.cchat-private-mini-fields{grid-template-columns:minmax(0,1fr) 81px!important}.cchat-date-panel{position:fixed!important;left:8px!important;right:8px!important;bottom:calc(58px + var(--chat-keyboard-offset,0px))!important;width:auto!important}}

/* v64: precise private group mobile fixes - no visual/function changes outside chat */
:root{--chat-keyboard-offset:0px;--chat-header-h:58px;}
body.cchat-create-open{overflow:hidden!important;touch-action:none!important;}
.cchat-action-pop[open]{height:100dvh!important;max-height:100dvh!important;}
.cchat-action-pop[open]>.cchat-group-form{height:calc(100dvh - 56px)!important;max-height:calc(100dvh - 56px)!important;overflow-y:auto!important;padding-bottom:calc(96px + env(safe-area-inset-bottom) + var(--chat-keyboard-offset,0px))!important;overscroll-behavior:contain!important;}
.cchat-action-pop[open] .cchat-create-actions{position:fixed!important;left:0!important;right:0!important;bottom:calc(var(--chat-keyboard-offset,0px))!important;z-index:4002!important;transform:translateZ(0)!important;}
@supports (height:100svh){.cchat-action-pop[open]{height:100svh!important;max-height:100svh!important}.cchat-action-pop[open]>.cchat-group-form{height:calc(100svh - 56px)!important;max-height:calc(100svh - 56px)!important}}
@supports (height:100dvh){.cchat-action-pop[open]{height:100dvh!important;max-height:100dvh!important}.cchat-action-pop[open]>.cchat-group-form{height:calc(100dvh - 56px)!important;max-height:calc(100dvh - 56px)!important}}

.container.cchat-page.cchat-active-page{top:0!important;bottom:auto!important;height:100svh!important;min-height:100svh!important;}
@supports(height:100dvh){.container.cchat-page.cchat-active-page{height:100dvh!important;min-height:100dvh!important}}
.cchat-active-page .cchat-conversation{grid-template-rows:var(--chat-header-h,58px) minmax(0,1fr) auto!important;}
.cchat-active-page .cchat-chat-header{position:fixed!important;top:0!important;left:0!important;right:0!important;height:var(--chat-header-h,58px)!important;min-height:var(--chat-header-h,58px)!important;z-index:500!important;transform:none!important;will-change:auto!important;}
.cchat-active-page .cchat-messages{padding-top:calc(12px + env(safe-area-inset-top))!important;}
.cchat-active-page .cchat-compose{position:fixed!important;left:0!important;right:0!important;bottom:calc(var(--chat-keyboard-offset,0px))!important;z-index:490!important;transform:translateZ(0)!important;}
.cchat-active-page .cchat-conversation::before{content:"";display:block;height:var(--chat-header-h,58px);grid-row:1;}
.cchat-active-page .cchat-messages{grid-row:2!important;}
.cchat-active-page .cchat-compose{grid-row:3!important;}
.cchat-active-page .cchat-messages{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important;}

.cchat-group-panel-inner{position:fixed!important;left:8px!important;right:8px!important;top:calc(var(--chat-header-h,58px) + 8px)!important;bottom:calc(72px + var(--chat-keyboard-offset,0px))!important;z-index:480!important;max-height:none!important;overflow-y:auto!important;border:1px solid #eee8fb!important;border-radius:22px!important;box-shadow:0 24px 70px rgba(31,24,51,.22)!important;}
.cchat-group-management-panel:not([open]) .cchat-group-panel-inner{display:none!important;}
.cchat-group-management-panel[data-panel-focus="members"] [data-group-settings-section],
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-panel-section:not([data-group-members-section]){display:none!important;}
.cchat-group-management-panel[data-panel-focus="settings"] [data-group-members-section],
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-group-panel-section:not([data-group-settings-section]){display:none!important;}
.cchat-group-management-panel[open]::before{content:"";position:fixed;inset:0;z-index:470;background:rgba(23,18,38,.28);backdrop-filter:blur(3px);}
.cchat-group-panel-inner::before{content:"";position:sticky;top:0;display:block;height:4px;width:46px;margin:0 auto 8px;border-radius:999px;background:#ded6ed;z-index:1;}
.cchat-group-avatar-settings.can-open-settings,.cchat-members-trigger{pointer-events:auto!important;}
.cchat-group-avatar-settings.can-open-settings:active,.cchat-members-trigger:active{transform:scale(.97);}

.cchat-assignment-room .cchat-message [data-edit-message],
.cchat-assignment-room .cchat-message [data-delete-message]{display:none!important;}

/* v65: root-level fixes for create-group keyboard and group modal sheets */
:root{--chat-vvh:100dvh;--chat-vvtop:0px;}
body.cchat-create-open,
body.cchat-group-sheet-open{overflow:hidden!important;overscroll-behavior:none!important;touch-action:none!important;}
html,body{max-width:100%!important;overflow-x:hidden!important;}
.cchat-inbox-page .cchat-action-pop[open]{position:fixed!important;z-index:7000!important;left:0!important;right:0!important;top:var(--chat-vvtop,0px)!important;height:var(--chat-vvh,100dvh)!important;max-height:var(--chat-vvh,100dvh)!important;width:100vw!important;max-width:100vw!important;margin:0!important;padding:0!important;border-radius:0!important;background:#fff!important;display:grid!important;grid-template-rows:56px minmax(0,1fr)!important;overflow:hidden!important;box-shadow:none!important;transform:none!important;}
.cchat-inbox-page .cchat-action-pop[open] > summary{grid-row:1!important;height:56px!important;min-height:56px!important;width:100%!important;border-radius:0!important;border:0!important;border-bottom:1px solid #eee8fb!important;background:linear-gradient(180deg,#fff,#faf7ff)!important;box-shadow:none!important;color:#43246c!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;z-index:2!important;}
.cchat-inbox-page .cchat-action-pop[open] > .cchat-group-form{grid-row:2!important;height:100%!important;min-height:0!important;max-height:none!important;width:100%!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:hidden!important;padding:0!important;margin:0!important;background:#fff!important;}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-scroll{min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;padding:12px 12px 16px!important;display:grid!important;align-content:start!important;gap:12px!important;}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:2!important;width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #eee8fb!important;box-shadow:0 -12px 28px rgba(31,24,51,.08)!important;backdrop-filter:blur(14px)!important;transform:none!important;}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions .btn{height:46px!important;border-radius:16px!important;font-size:13px!important;font-weight:1000!important;}
.cchat-inbox-page .cchat-action-pop[open] .cchat-group-members{max-height:none!important;overflow:visible!important;}
@supports(height:100svh){.cchat-inbox-page .cchat-action-pop[open]{height:var(--chat-vvh,100svh)!important;max-height:var(--chat-vvh,100svh)!important}}

.cchat-group-management-panel[open]{position:fixed!important;inset:0!important;z-index:7600!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:hidden!important;max-width:100vw!important;touch-action:none!important;}
.cchat-group-management-panel[open]::before{content:""!important;position:fixed!important;inset:0!important;z-index:0!important;background:rgba(18,14,30,.42)!important;backdrop-filter:blur(6px)!important;}
.cchat-group-management-panel[open] .cchat-panel-hidden-summary{display:none!important;}
.cchat-group-management-panel[open] .cchat-group-panel-inner{position:absolute!important;z-index:1!important;left:10px!important;right:10px!important;top:calc(var(--chat-vvtop,0px) + 10px + env(safe-area-inset-top))!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:calc(100vw - 20px)!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border:1px solid rgba(238,232,251,.96)!important;border-radius:24px!important;background:linear-gradient(180deg,#fff,#fbfaff)!important;box-shadow:0 28px 90px rgba(20,14,44,.32)!important;touch-action:pan-y!important;overscroll-behavior:contain!important;}
.cchat-group-sheet-head{flex:0 0 auto!important;min-height:56px!important;padding:10px 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;border-bottom:1px solid #eee8fb!important;background:rgba(255,255,255,.98)!important;position:sticky!important;top:0!important;z-index:3!important;}
.cchat-group-sheet-head b{font-size:15px!important;font-weight:1000!important;color:#33213f!important;}
.cchat-group-sheet-head button{width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:#f6f0ff!important;color:#6d28d9!important;font-size:24px!important;line-height:1!important;font-weight:1000!important;cursor:pointer!important;display:grid!important;place-items:center!important;}
.cchat-group-sheet-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;padding:10px!important;display:grid!important;align-content:start!important;gap:10px!important;max-width:100%!important;}
.cchat-group-sheet-footer{flex:0 0 auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;border-top:1px solid #eee8fb!important;background:rgba(255,255,255,.98)!important;box-shadow:0 -12px 28px rgba(31,24,51,.08)!important;}
.cchat-group-sheet-footer button{height:46px!important;border-radius:16px!important;font-weight:1000!important;font-size:13px!important;cursor:pointer!important;}
.cchat-sheet-cancel{background:#f8f5ff!important;color:#5b21b6!important;border:1px solid #e7dcff!important;}
.cchat-sheet-save{background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;border:0!important;box-shadow:0 10px 24px rgba(109,40,217,.22)!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-sheet-save{display:none!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-sheet-footer{grid-template-columns:1fr!important;}
.cchat-group-management-panel[data-panel-focus="members"] [data-group-settings-section],
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-panel-section:not([data-group-members-section]){display:none!important;}
.cchat-group-management-panel[data-panel-focus="settings"] [data-group-members-section],
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-group-panel-section:not([data-group-settings-section]){display:none!important;}
.cchat-group-panel-section{max-width:100%!important;overflow-x:hidden!important;}
.cchat-group-member-list,.cchat-settings-split{max-width:100%!important;overflow-x:hidden!important;}
.cchat-group-member-list > div{max-width:100%!important;min-width:0!important;}
.cchat-group-member-list form{min-width:0!important;}
@media(max-width:760px){
  .cchat-group-management-panel[open] .cchat-group-panel-inner{left:8px!important;right:8px!important;top:calc(var(--chat-vvtop,0px) + 8px + env(safe-area-inset-top))!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 16px)!important;border-radius:22px!important;}
  .cchat-group-sheet-body{padding:8px!important;}
  .cchat-group-sheet-footer{padding:9px 10px calc(10px + env(safe-area-inset-bottom))!important;}
}
.cchat-group-management-panel[open] .cchat-group-panel-inner::before{display:none!important;content:none!important;}

/* v66: definitive mobile fixes for group creation and group members/settings sheets */
.cchat-inbox-page .cchat-action-pop[open]{
  position:fixed!important;
  left:0!important;right:0!important;
  top:var(--chat-vvtop,0px)!important;
  width:100vw!important;max-width:100vw!important;
  height:var(--chat-vvh,100dvh)!important;max-height:var(--chat-vvh,100dvh)!important;
  margin:0!important;padding:0!important;
  z-index:9000!important;background:#fff!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  transform:none!important;inset-inline-start:auto!important;
}
.cchat-inbox-page .cchat-action-pop[open] > summary{
  flex:0 0 56px!important;height:56px!important;min-height:56px!important;width:100%!important;
  border-radius:0!important;border:0!important;border-bottom:1px solid #eee8fb!important;
  background:linear-gradient(180deg,#fff,#faf7ff)!important;box-shadow:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#43246c!important;position:relative!important;z-index:2!important;transform:none!important;
}
.cchat-inbox-page .cchat-action-pop[open] > .cchat-group-form{
  position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
  inset:auto!important;inset-inline-start:auto!important;transform:none!important;
  flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;
  width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;align-content:normal!important;gap:0!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-scroll{
  flex:1 1 auto!important;min-height:0!important;height:auto!important;
  overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;display:grid!important;align-content:start!important;gap:12px!important;
  padding:12px 12px 18px!important;max-width:100%!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions{
  position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;
  flex:0 0 auto!important;width:100%!important;z-index:3!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  background:rgba(255,255,255,.99)!important;border-top:1px solid #eee8fb!important;
  box-shadow:0 -10px 26px rgba(31,24,51,.10)!important;backdrop-filter:blur(14px)!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions .btn{
  display:flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;height:48px!important;
  border-radius:16px!important;font-size:13px!important;font-weight:1000!important;white-space:nowrap!important;
}
body.cchat-create-open{overflow:hidden!important;overscroll-behavior:none!important;}

.cchat-group-management-panel[open]{position:static!important;display:block!important;}
.cchat-group-management-panel[open] .cchat-group-panel-inner{
  position:fixed!important;
  left:8px!important;right:8px!important;
  top:calc(var(--chat-vvtop,0px) + 8px + env(safe-area-inset-top))!important;
  bottom:calc(8px + env(safe-area-inset-bottom))!important;
  width:auto!important;max-width:calc(100vw - 16px)!important;height:auto!important;max-height:none!important;
  margin:0!important;padding:0!important;z-index:9500!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  border:1px solid rgba(238,232,251,.98)!important;border-radius:24px!important;
  background:linear-gradient(180deg,#fff,#fbfaff)!important;box-shadow:0 28px 90px rgba(20,14,44,.32)!important;
  touch-action:pan-y!important;overscroll-behavior:contain!important;transform:none!important;
}
.cchat-group-management-panel[open] .cchat-group-sheet-head{
  flex:0 0 56px!important;min-height:56px!important;height:56px!important;padding:10px 12px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  border-bottom:1px solid #eee8fb!important;background:rgba(255,255,255,.99)!important;position:relative!important;top:auto!important;z-index:3!important;
}
.cchat-group-management-panel[open] .cchat-group-sheet-body{
  flex:1 1 auto!important;min-height:0!important;max-width:100%!important;
  overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
  padding:10px!important;display:grid!important;align-content:start!important;gap:10px!important;
}
.cchat-group-management-panel[open] .cchat-group-sheet-footer{
  flex:0 0 auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  border-top:1px solid #eee8fb!important;background:rgba(255,255,255,.99)!important;
  box-shadow:0 -10px 26px rgba(31,24,51,.10)!important;z-index:3!important;
}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-sheet-footer{grid-template-columns:1fr!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-sheet-save{display:none!important;}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-sheet-save{display:flex!important;}
.cchat-group-sheet-footer button,.cchat-group-sheet-footer .cchat-sheet-save,.cchat-group-sheet-footer .cchat-sheet-cancel{
  min-height:48px!important;height:48px!important;border-radius:16px!important;border:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:13px!important;font-weight:1000!important;cursor:pointer!important;text-decoration:none!important;
}
.cchat-sheet-cancel{background:#f8f5ff!important;color:#5b21b6!important;border:1px solid #e7dcff!important;}
.cchat-sheet-save{background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;}
.cchat-group-management-panel[open] .cchat-group-panel-section{max-width:100%!important;overflow-x:hidden!important;border-radius:18px!important;}
.cchat-group-management-panel[open] .cchat-group-member-list{max-width:100%!important;overflow-x:hidden!important;display:grid!important;gap:8px!important;}
.cchat-group-management-panel[open] .cchat-group-member-list>div{max-width:100%!important;min-width:0!important;grid-template-columns:34px minmax(0,1fr) auto!important;}
.cchat-settings-split,.cchat-settings-split fieldset{max-width:100%!important;min-width:0!important;overflow-x:hidden!important;}
.cchat-permission-fieldset{display:grid!important;gap:8px!important;}
.cchat-permission-row{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;width:100%!important;min-width:0!important;padding:8px 9px!important;border:1px solid #f0eafd!important;border-radius:14px!important;background:#fff!important;}
.cchat-permission-row input[type="checkbox"]{width:18px!important;height:18px!important;margin:0!important;accent-color:#6d28d9!important;position:static!important;opacity:1!important;pointer-events:auto!important;}
.cchat-permission-row span{display:block!important;color:#3f334c!important;font-size:12.5px!important;font-weight:950!important;line-height:1.7!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-width:0!important;}
body.cchat-group-sheet-open{overflow:hidden!important;overscroll-behavior:none!important;}

/* v67: make group settings/profile and members entry clear, and move invite/add-member controls into settings */
.cchat-group-avatar-settings.can-open-settings{
  outline:0!important;
  border:2px solid rgba(109,40,217,.18)!important;
  box-shadow:0 8px 20px rgba(109,40,217,.12)!important;
  background:#fff!important;
}
.cchat-group-avatar-settings.can-open-settings::after{
  content:"تنظیمات";
  position:absolute!important;
  right:calc(100% + 6px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  font-size:10px!important;
  font-weight:1000!important;
  color:#6d28d9!important;
  background:#f4edff!important;
  border:1px solid #e8dcff!important;
  border-radius:999px!important;
  padding:3px 7px!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}
.cchat-members-trigger{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:28px!important;
  padding:4px 10px!important;
  border:1px solid #e8dcff!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#fff,#f8f4ff)!important;
  color:#5b21b6!important;
  box-shadow:0 7px 16px rgba(109,40,217,.10)!important;
  font-size:12px!important;
  font-weight:1000!important;
  cursor:pointer!important;
}
.cchat-members-trigger b{font-weight:1000!important;color:#3b1976!important;}
.cchat-members-trigger:hover{background:#f1e8ff!important;color:#4c1d95!important;}
.cchat-settings-invite-box{
  display:grid!important;
  gap:10px!important;
  margin:0 0 10px!important;
  padding:10px!important;
  border:1px solid #e8dcff!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fbf8ff,#fff)!important;
  box-shadow:0 10px 24px rgba(109,40,217,.06)!important;
}
.cchat-settings-invite-box h4{
  margin:0!important;
  color:#4c1d95!important;
  font-size:13px!important;
  font-weight:1000!important;
}
.cchat-group-link-row,.cchat-add-member-settings label{
  display:grid!important;
  gap:6px!important;
  color:#493b5a!important;
  font-size:12px!important;
  font-weight:1000!important;
}
.cchat-group-link-row>div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}
.cchat-group-link-row input,.cchat-add-member-settings select{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  border:1px solid #e4d8f6!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:0 10px!important;
  color:#33213f!important;
  font-family:var(--app-font)!important;
  font-size:12px!important;
}
.cchat-group-link-row button,.cchat-inline-invite-form button,.cchat-add-member-settings button{
  min-height:42px!important;
  border:0!important;
  border-radius:14px!important;
  padding:0 12px!important;
  font-weight:1000!important;
  font-size:12px!important;
  cursor:pointer!important;
}
.cchat-group-link-row button{
  color:#fff!important;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;
}
.cchat-inline-invite-form button{
  width:100%!important;
  color:#5b21b6!important;
  background:#f4edff!important;
  border:1px solid #e7dcff!important;
}
.cchat-add-member-settings{
  display:grid!important;
  gap:8px!important;
  margin:0!important;
}
.cchat-add-member-settings button{
  width:100%!important;
  color:#065f46!important;
  background:#ecfdf5!important;
  border:1px solid #bbf7d0!important;
}
@media(max-width:520px){
  .cchat-group-avatar-settings.can-open-settings::after{display:none!important;}
  .cchat-members-trigger{font-size:11px!important;padding-inline:8px!important;}
  .cchat-group-link-row>div{grid-template-columns:1fr!important;}
}


/* v68: final robust group profile/members modal controls (template-level JS fallback) */
.cchat-group-avatar-settings.can-open-settings{
  overflow:visible!important;
  min-width:46px!important;
  min-height:46px!important;
  touch-action:manipulation!important;
}
.cchat-group-settings-label{
  position:absolute!important;
  right:calc(100% + 6px)!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:3!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  border:1px solid #e6d8ff!important;
  background:#f6efff!important;
  color:#5b21b6!important;
  font-size:10.5px!important;
  font-weight:1000!important;
  line-height:1!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}
.cchat-members-trigger{
  min-height:34px!important;
  padding:6px 12px!important;
  border:1px solid #d8c8ff!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#ffffff,#f2eaff)!important;
  color:#4c1d95!important;
  box-shadow:0 9px 20px rgba(109,40,217,.16)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}
.cchat-members-trigger em{font-style:normal!important;font-size:11px!important;font-weight:1000!important;color:#5b21b6!important;white-space:nowrap!important;}
.cchat-members-trigger b{min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:999px!important;background:#6d28d9!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:11px!important;}
.cchat-group-management-panel[data-force-open="1"],
.cchat-group-management-panel[open]{
  position:fixed!important;
  inset:0!important;
  z-index:99998!important;
  display:block!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:100vw!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:rgba(18,14,30,.44)!important;
  overflow:hidden!important;
  overscroll-behavior:contain!important;
  touch-action:none!important;
}
.cchat-group-management-panel[data-force-open="1"]::before,
.cchat-group-management-panel[open]::before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  z-index:0!important;
  background:rgba(18,14,30,.44)!important;
  backdrop-filter:blur(5px)!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-panel-inner,
.cchat-group-management-panel[open] .cchat-group-panel-inner{
  position:fixed!important;
  left:10px!important;
  right:10px!important;
  top:calc(var(--chat-vvtop,0px) + 10px + env(safe-area-inset-top))!important;
  bottom:calc(10px + env(safe-area-inset-bottom))!important;
  width:auto!important;
  max-width:calc(100vw - 20px)!important;
  height:auto!important;
  max-height:none!important;
  z-index:99999!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:24px!important;
  border:1px solid rgba(238,232,251,.98)!important;
  background:linear-gradient(180deg,#fff,#fbfaff)!important;
  box-shadow:0 30px 90px rgba(20,14,44,.35)!important;
  transform:none!important;
  contain:layout style!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-head,
.cchat-group-management-panel[open] .cchat-group-sheet-head{
  flex:0 0 56px!important;
  min-height:56px!important;
  height:56px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:10px 12px!important;
  background:#fff!important;
  border-bottom:1px solid #eee8fb!important;
  z-index:2!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-body,
.cchat-group-management-panel[open] .cchat-group-sheet-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  padding:10px!important;
  display:grid!important;
  gap:10px!important;
  align-content:start!important;
  max-width:100%!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-footer,
.cchat-group-management-panel[open] .cchat-group-sheet-footer{
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  background:#fff!important;
  border-top:1px solid #eee8fb!important;
  box-shadow:0 -10px 28px rgba(31,24,51,.10)!important;
  z-index:2!important;
}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-sheet-footer{grid-template-columns:1fr!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-sheet-save{display:none!important;}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-sheet-save{display:flex!important;}
.cchat-group-management-panel[data-panel-focus="members"] [data-group-settings-section],
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-panel-section:not([data-group-members-section]){display:none!important;}
.cchat-group-management-panel[data-panel-focus="settings"] [data-group-members-section],
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-group-panel-section:not([data-group-settings-section]){display:none!important;}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-panel-section,
.cchat-group-management-panel[open] .cchat-group-panel-section{max-width:100%!important;overflow-x:hidden!important;}
.cchat-settings-invite-box,
.cchat-group-link-row,
.cchat-add-member-settings,
.cchat-add-member-settings label{max-width:100%!important;min-width:0!important;overflow-x:hidden!important;}
.cchat-group-link-row div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;}
.cchat-group-link-row input{min-width:0!important;width:100%!important;direction:ltr!important;text-align:left!important;}
.cchat-group-link-row button,.cchat-inline-invite-form button,.cchat-add-member-settings button{min-height:38px!important;border:0!important;border-radius:14px!important;background:#6d28d9!important;color:#fff!important;font-weight:1000!important;padding:0 12px!important;white-space:nowrap!important;}
.cchat-add-member-settings select{width:100%!important;min-width:0!important;border:1px solid #e7def8!important;border-radius:14px!important;min-height:40px!important;padding:0 9px!important;background:#fff!important;}
@media(max-width:760px){
  .cchat-group-settings-label{display:none!important;}
  .cchat-members-trigger{min-height:32px!important;padding:5px 10px!important;}
  .cchat-members-trigger em{font-size:10.5px!important;}
  .cchat-group-management-panel[data-force-open="1"] .cchat-group-panel-inner,
  .cchat-group-management-panel[open] .cchat-group-panel-inner{
    left:8px!important;right:8px!important;top:calc(var(--chat-vvtop,0px) + 8px + env(safe-area-inset-top))!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 16px)!important;border-radius:22px!important;
  }
}


/* v69: final fixes requested: visible group-create buttons, stable chat header, tidy members management */
:root{--chat-create-foot-h:76px;}
body.cchat-create-open{overflow:hidden!important;overscroll-behavior:none!important;}
.cchat-inbox-page .cchat-action-pop[open]{
  position:fixed!important;
  left:8px!important;right:8px!important;
  top:calc(var(--chat-vvtop,0px) + 8px + env(safe-area-inset-top))!important;
  bottom:calc(8px + env(safe-area-inset-bottom))!important;
  height:auto!important;max-height:none!important;width:auto!important;
  z-index:9000!important;margin:0!important;padding:0!important;border:0!important;border-radius:24px!important;
  background:#fff!important;box-shadow:0 28px 88px rgba(22,15,45,.34)!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;transform:none!important;touch-action:pan-y!important;
}
.cchat-inbox-page .cchat-action-pop[open]::before{content:"";position:fixed!important;inset:0!important;z-index:-1!important;background:rgba(22,15,45,.38)!important;backdrop-filter:blur(5px)!important;}
.cchat-inbox-page .cchat-action-pop[open]>.cchat-rect-action{
  flex:0 0 56px!important;height:56px!important;min-height:56px!important;border-radius:0!important;border:0!important;border-bottom:1px solid #eee8fb!important;
  background:linear-gradient(180deg,#fff,#fbfaff)!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;color:#4c1d95!important;
}
.cchat-inbox-page .cchat-action-pop[open]>.cchat-group-form{
  flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;
  overflow:hidden!important;padding:0!important;margin:0!important;background:#fff!important;align-content:stretch!important;gap:0!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-scroll{
  min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  padding:14px 12px 16px!important;display:grid!important;gap:11px!important;align-content:start!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions{
  position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;transform:none!important;z-index:2!important;
  flex:0 0 auto!important;width:100%!important;min-height:var(--chat-create-foot-h)!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.99)!important;border-top:1px solid #eee8fb!important;
  box-shadow:0 -12px 30px rgba(31,24,51,.10)!important;backdrop-filter:blur(14px)!important;visibility:visible!important;opacity:1!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions .btn{display:flex!important;align-items:center!important;justify-content:center!important;height:48px!important;min-height:48px!important;border-radius:16px!important;font-size:13px!important;font-weight:1000!important;visibility:visible!important;opacity:1!important;}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-cancel{background:#f8f5ff!important;color:#5b21b6!important;border:1px solid #e7dcff!important;}
.cchat-inbox-page .cchat-action-pop[open] .cchat-group-members{grid-template-columns:1fr!important;max-height:none!important;}
@media(min-width:700px){.cchat-inbox-page .cchat-action-pop[open]{left:50%!important;right:auto!important;width:min(620px,calc(100vw - 28px))!important;transform:translateX(-50%)!important}.cchat-inbox-page .cchat-action-pop[open] .cchat-group-members{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.cchat-active-page .cchat-chat-header{
  position:fixed!important;top:calc(var(--chat-vvtop,0px) + env(safe-area-inset-top))!important;left:0!important;right:0!important;
  height:var(--chat-header-h,58px)!important;min-height:var(--chat-header-h,58px)!important;z-index:900!important;transform:none!important;will-change:auto!important;
  border-radius:0!important;
}
.cchat-active-page .cchat-conversation{padding-top:var(--chat-header-h,58px)!important;}
.cchat-active-page .cchat-conversation::before{display:none!important;content:none!important;}
.cchat-active-page .cchat-messages{grid-row:2!important;padding-top:12px!important;}

.cchat-group-members-form{display:block!important;margin:0!important;max-width:100%!important;overflow:hidden!important;}
.cchat-group-member-list{display:grid!important;gap:9px!important;max-width:100%!important;overflow-x:hidden!important;}
.cchat-member-manage-row{
  display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;
  padding:10px!important;border:1px solid #eee8fb!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#fbfaff)!important;
  max-width:100%!important;overflow:hidden!important;
}
.cchat-member-avatar{width:40px!important;height:40px!important;border-radius:50%!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:linear-gradient(135deg,#6d28d9,#a78bfa)!important;color:#fff!important;font-weight:1000!important;grid-row:1 / span 2!important;}
.cchat-member-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;}
.cchat-member-main{min-width:0!important;display:grid!important;gap:2px!important;}
.cchat-member-main b{font-size:13px!important;font-weight:1000!important;color:#2d213d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.cchat-member-main small{font-size:11px!important;font-weight:800!important;color:#8c849b!important;direction:ltr!important;text-align:start!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.cchat-member-controls{grid-column:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:end!important;min-width:0!important;}
.cchat-member-controls label{display:grid!important;gap:4px!important;min-width:0!important;font-size:11px!important;font-weight:1000!important;color:#6d5a82!important;}
.cchat-member-controls select{width:100%!important;height:38px!important;min-width:0!important;border:1px solid #e5daf7!important;border-radius:13px!important;background:#fff!important;padding:0 9px!important;font-size:12px!important;font-weight:900!important;color:#3b2f4c!important;font-family:var(--app-font)!important;}
.cchat-member-remove{height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:0 10px!important;border:1px solid #fecdd3!important;border-radius:13px!important;background:#fff1f2!important;color:#be123c!important;}
.cchat-member-remove input{width:16px!important;height:16px!important;accent-color:#e11d48!important;}
.cchat-member-remove span{font-size:12px!important;font-weight:1000!important;}
.cchat-member-fixed-role{grid-column:2!important;justify-self:start!important;font-style:normal!important;border-radius:999px!important;padding:5px 9px!important;background:#f4edff!important;color:#5b21b6!important;font-size:11px!important;font-weight:1000!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-sheet-footer{grid-template-columns:1fr 1fr!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-settings-save{display:none!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-members-save{display:flex!important;}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-settings-save{display:flex!important;}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-members-save{display:none!important;}
.cchat-members-save{display:none!important;background:linear-gradient(135deg,#059669,#10b981)!important;color:#fff!important;}
@media(max-width:520px){.cchat-member-controls{grid-template-columns:1fr!important}.cchat-member-remove{width:100%!important}.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-sheet-footer{grid-template-columns:1fr 1fr!important}}

/* v70: only two final fixes - larger profile settings hit area and truly visible create buttons */
.cchat-chat-header .cchat-group-profile-zone,
.cchat-chat-header .cchat-group-avatar-settings.can-open-settings{
  cursor:pointer!important;
  -webkit-tap-highlight-color:rgba(109,40,217,.14)!important;
}
.cchat-chat-header .cchat-group-profile-zone{
  border-radius:16px!important;
  padding:5px 7px!important;
  margin-inline-start:-4px!important;
}
.cchat-chat-header .cchat-group-profile-zone:active,
.cchat-chat-header .cchat-group-avatar-settings.can-open-settings:active{background:rgba(109,40,217,.08)!important;}

body.cchat-create-open .ds-bottom-nav{display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.cchat-create-open .app-shell{padding-bottom:0!important;}
.cchat-inbox-page .cchat-action-pop[open]{
  position:fixed!important;
  inset:var(--chat-vvtop,0px) 0 0 0!important;
  width:100vw!important;
  height:calc(var(--chat-vvh,100vh) - var(--chat-vvtop,0px))!important;
  max-height:calc(var(--chat-vvh,100vh) - var(--chat-vvtop,0px))!important;
  min-height:320px!important;
  z-index:2147483000!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:56px minmax(0,1fr)!important;
  transform:none!important;
  box-shadow:none!important;
}
.cchat-inbox-page .cchat-action-pop[open]::before{display:none!important;content:none!important;}
.cchat-inbox-page .cchat-action-pop[open] > summary,
.cchat-inbox-page .cchat-action-pop[open] > .cchat-rect-action{
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:56px!important;
  height:56px!important;
  width:100%!important;
  padding:0 14px!important;
  border:0!important;
  border-bottom:1px solid #eee8fb!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#fff,#faf7ff)!important;
  color:#43246c!important;
  box-shadow:none!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:2!important;
}
.cchat-inbox-page .cchat-action-pop[open] > .cchat-group-form{
  grid-row:2!important;
  min-height:0!important;
  height:100%!important;
  max-height:none!important;
  width:100%!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) 78px!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
  gap:0!important;
  align-content:stretch!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-scroll{
  grid-row:1!important;
  min-height:0!important;
  height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  padding:14px 12px 18px!important;
  display:grid!important;
  gap:12px!important;
  align-content:start!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions{
  grid-row:2!important;
  position:relative!important;
  inset:auto!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  z-index:2147483001!important;
  width:100%!important;
  min-height:78px!important;
  height:78px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  background:#fff!important;
  border-top:1px solid #eee8fb!important;
  box-shadow:0 -14px 30px rgba(31,24,51,.14)!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  pointer-events:auto!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions .btn,
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  border-radius:16px!important;
  font-size:14px!important;
  font-weight:1000!important;
  line-height:1!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions button[type="submit"]{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 10px 22px rgba(109,40,217,.24)!important;
}
.cchat-inbox-page .cchat-action-pop[open] .cchat-create-actions .cchat-create-cancel{
  background:#f8f5ff!important;
  color:#5b21b6!important;
  border:1px solid #e7dcff!important;
  box-shadow:none!important;
}
@media(min-width:700px){
  .cchat-inbox-page .cchat-action-pop[open]{
    left:50%!important;right:auto!important;top:calc(var(--chat-vvtop,0px) + 18px)!important;bottom:auto!important;
    width:min(640px,calc(100vw - 28px))!important;height:min(720px,calc(var(--chat-vvh,100vh) - 36px))!important;max-height:calc(var(--chat-vvh,100vh) - 36px)!important;
    border-radius:26px!important;box-shadow:0 28px 88px rgba(22,15,45,.34)!important;transform:translateX(-50%)!important;
  }
  .cchat-inbox-page .cchat-action-pop[open]::after{content:"";position:fixed;inset:0;z-index:-1;background:rgba(22,15,45,.34);}
}

/* v71: exact group-room online chips, hold-to-react UX, LTR visual message alignment, pin permission */
.cchat-room-active-members{display:flex!important;align-items:center!important;gap:0!important;margin-top:3px!important;height:20px!important;direction:ltr!important;justify-content:flex-start!important;overflow:hidden!important;max-width:180px!important}
.cchat-room-active-members i,.cchat-room-active-members em{width:18px!important;height:18px!important;min-width:18px!important;border-radius:999px!important;display:grid!important;place-items:center!important;margin-inline-start:-4px!important;background:#ef4444!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 2px 7px rgba(239,68,68,.28)!important;font-size:9px!important;font-style:normal!important;font-weight:1000!important;line-height:1!important;overflow:hidden!important}
.cchat-room-active-members i:first-child,.cchat-room-active-members em:first-child{margin-inline-start:0!important}
.cchat-room-active-members img{width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;box-shadow:none!important;border-radius:inherit!important}
.cchat-room-active-members em{background:#fff!important;color:#ef4444!important;border-color:#fecdd3!important;padding:0 3px!important;width:auto!important;min-width:22px!important}
.cchat-room-row.is-group .cchat-room-main{gap:2px!important}
.cchat-room-row.is-group:has(.cchat-room-active-members){background:linear-gradient(90deg,rgba(255,241,242,.58),#fff 54%)!important}

/* Hide compose emoji picker controls in normal/direct/public group chat. Reactions are now message-hold based. */
.cchat-compose .cchat-emoji-btn,.cchat-compose .emoji-toggle,.cchat-compose .cchat-emoji-panel{display:none!important}
.cchat-compose:not(.cchat-private-line-form){grid-template-columns:38px minmax(0,1fr) 38px 38px 42px!important}
@media(max-width:760px){.cchat-compose:not(.cchat-private-line-form){grid-template-columns:36px minmax(0,1fr) 36px 36px 40px!important}}

/* Force visual chat alignment independent from RTL page direction. */
.cchat-messages{direction:ltr!important}
.cchat-message{direction:rtl!important}
.cchat-message.mine{align-self:flex-end!important;align-items:flex-end!important;margin-inline-start:auto!important;margin-inline-end:0!important;text-align:right!important}
.cchat-message.theirs:not(:has(.cchat-private-envelope)){align-self:flex-start!important;align-items:flex-start!important;margin-inline-end:auto!important;margin-inline-start:0!important;text-align:left!important;direction:ltr!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;column-gap:7px!important;max-width:min(88%,460px)!important}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar{grid-column:1!important;grid-row:1 / span 20!important;align-self:start!important;justify-self:start!important;width:30px!important;height:30px!important;border-radius:50%!important;margin-top:3px!important;box-shadow:0 4px 12px rgba(31,24,51,.10)!important}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) > :not(.cchat-message-avatar){grid-column:2!important;justify-self:start!important;direction:rtl!important;text-align:right!important}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-msg-menu{left:auto!important;right:-28px!important;inset-inline-start:auto!important;inset-inline-end:-28px!important}
.cchat-message.mine .cchat-reactions{justify-content:flex-end!important}
.cchat-message.theirs .cchat-reactions{justify-content:flex-start!important}
.cchat-assignment-room .cchat-message:has(.cchat-private-envelope){display:flex!important;direction:rtl!important;max-width:96%!important;margin-inline:auto!important}

/* Reaction display is summary-only; picker appears on long press/context menu. */
.cchat-reactions{display:flex!important;gap:4px!important;align-items:center!important;min-height:0!important;margin-top:1px!important;flex-wrap:wrap!important}
.cchat-reactions:empty{display:none!important}
.cchat-reactions button[data-react-message]{display:none!important}
.cchat-reactions span{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:20px!important;padding:0 6px!important;border-radius:999px!important;background:#fff!important;border:1px solid #eee8fb!important;box-shadow:0 4px 12px rgba(31,24,51,.06)!important;font-size:12px!important;line-height:1!important;cursor:pointer!important;direction:ltr!important}
.cchat-reaction-popover{position:fixed!important;z-index:2147483600!important;display:flex!important;gap:6px!important;align-items:center!important;padding:7px!important;border-radius:999px!important;background:rgba(255,255,255,.98)!important;border:1px solid #eee8fb!important;box-shadow:0 18px 48px rgba(31,24,51,.22)!important;backdrop-filter:blur(14px)!important;direction:ltr!important;transform:translate(-50%,-100%)!important}
.cchat-reaction-popover[hidden]{display:none!important}
.cchat-reaction-popover button{width:36px!important;height:36px!important;border:0!important;border-radius:999px!important;background:#f8f5ff!important;display:grid!important;place-items:center!important;font-size:19px!important;cursor:pointer!important;transition:transform .14s ease,background .14s ease!important}
.cchat-reaction-popover button:active{transform:scale(.92)!important;background:#ede9fe!important}
.cchat-message.is-reaction-target .cchat-bubble{outline:2px solid rgba(139,92,246,.30)!important;outline-offset:2px!important}

.cchat-pin-permission-row{display:grid!important;grid-template-columns:1fr minmax(120px,150px)!important;align-items:center!important;gap:8px!important}
.cchat-pin-permission-row select{height:38px!important;border:1px solid #e5daf7!important;border-radius:13px!important;background:#fff!important;padding:0 9px!important;font-size:12px!important;font-weight:900!important;color:#3b2f4c!important;font-family:var(--app-font)!important}
@media(max-width:520px){.cchat-pin-permission-row{grid-template-columns:1fr!important}.cchat-pin-permission-row select{width:100%!important}}
.cchat-reactions:not(:has(span)){display:none!important}
.cchat-message.theirs:not(:has(.cchat-private-envelope)){padding-inline-start:0!important}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar{position:relative!important;inset:auto!important;bottom:auto!important}
@media(max-width:760px){.cchat-message.theirs:not(:has(.cchat-private-envelope)){padding-inline-start:0!important}.cchat-message.theirs:not(:has(.cchat-private-envelope)) > :not(.cchat-message-avatar){margin-inline-start:0!important}}

/* v72: group header avatar must stay circular; settings sheet action buttons must always be visible */
.cchat-chat-header .cchat-group-avatar-settings,
.cchat-chat-header button.cchat-avatar.cchat-peer-avatar.cchat-group-avatar-settings{
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  max-height:46px!important;
  aspect-ratio:1/1!important;
  padding:0!important;
  margin-inline:4px!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  line-height:1!important;
  box-shadow:0 10px 22px rgba(124,58,237,.16)!important;
  flex:0 0 46px!important;
}
.cchat-chat-header .cchat-group-avatar-settings > img,
.cchat-chat-header button.cchat-avatar.cchat-peer-avatar.cchat-group-avatar-settings > img{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  object-fit:cover!important;
  border-radius:999px!important;
  display:block!important;
}
.cchat-chat-header .cchat-group-avatar-settings .cchat-group-settings-label{display:none!important;}
.cchat-chat-header .cchat-group-avatar-settings .cchat-gear-badge{
  position:absolute!important;
  right:-3px!important;
  bottom:-3px!important;
  z-index:3!important;
  display:grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6d28d9!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 4px 10px rgba(67,56,202,.20)!important;
  font-size:11px!important;
  line-height:1!important;
}
@media(max-width:760px){
  .cchat-chat-header .cchat-group-avatar-settings,
  .cchat-chat-header button.cchat-avatar.cchat-peer-avatar.cchat-group-avatar-settings{
    width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;flex-basis:42px!important;
  }
  .cchat-chat-header .cchat-group-avatar-settings > img,
  .cchat-chat-header button.cchat-avatar.cchat-peer-avatar.cchat-group-avatar-settings > img{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;
  }
}

.cchat-group-management-panel[data-force-open="1"],
.cchat-group-management-panel[open]{
  position:fixed!important;
  inset:0!important;
  z-index:2147482000!important;
  overflow:hidden!important;
  display:block!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-panel-inner,
.cchat-group-management-panel[open] .cchat-group-panel-inner{
  position:fixed!important;
  left:10px!important;
  right:10px!important;
  top:calc(var(--chat-vvtop,0px) + 10px + env(safe-area-inset-top))!important;
  bottom:calc(10px + env(safe-area-inset-bottom))!important;
  width:auto!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#fff!important;
  border-radius:24px!important;
  border:1px solid rgba(238,232,251,.98)!important;
  box-shadow:0 30px 90px rgba(20,14,44,.35)!important;
  z-index:2147482001!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-body,
.cchat-group-management-panel[open] .cchat-group-sheet-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:10px!important;
  padding-bottom:16px!important;
  -webkit-overflow-scrolling:touch!important;
}
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-footer,
.cchat-group-management-panel[open] .cchat-group-sheet-footer{
  flex:0 0 auto!important;
  position:relative!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  z-index:2147482002!important;
  display:grid!important;
  gap:10px!important;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;
  min-height:72px!important;
  background:#fff!important;
  border-top:1px solid #eee8fb!important;
  box-shadow:0 -12px 30px rgba(31,24,51,.12)!important;
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-group-sheet-footer{grid-template-columns:1fr 1fr!important;}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-sheet-cancel,
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-settings-save{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:48px!important;
  min-height:48px!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.cchat-group-management-panel[data-panel-focus="settings"] .cchat-members-save{display:none!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-group-sheet-footer{grid-template-columns:1fr 1fr!important;}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-sheet-cancel,
.cchat-group-management-panel[data-panel-focus="members"] .cchat-members-save{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:48px!important;
  min-height:48px!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.cchat-group-management-panel[data-panel-focus="members"] .cchat-settings-save{display:none!important;}
.cchat-group-sheet-footer .cchat-sheet-cancel{background:#f8f5ff!important;color:#5b21b6!important;border:1px solid #e7dcff!important;border-radius:16px!important;font-weight:1000!important;}
.cchat-group-sheet-footer .cchat-settings-save{background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;border:0!important;border-radius:16px!important;font-weight:1000!important;box-shadow:0 10px 24px rgba(109,40,217,.22)!important;}
.cchat-group-sheet-footer .cchat-members-save{background:linear-gradient(135deg,#059669,#10b981)!important;color:#fff!important;border:0!important;border-radius:16px!important;font-weight:1000!important;}
@media(max-width:760px){
  .cchat-group-management-panel[data-force-open="1"] .cchat-group-panel-inner,
  .cchat-group-management-panel[open] .cchat-group-panel-inner{left:8px!important;right:8px!important;top:calc(var(--chat-vvtop,0px) + 8px + env(safe-area-inset-top))!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;border-radius:22px!important;}
  .cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-footer,
  .cchat-group-management-panel[open] .cchat-group-sheet-footer{min-height:76px!important;padding:10px 10px calc(12px + env(safe-area-inset-bottom))!important;}
}

/* v73 group management refinements */
.cchat-add-member-v73{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;border:1px solid #efe7ff!important;border-radius:18px!important;background:#fff!important;padding:10px!important;}
.cchat-add-member-v73 label{display:grid!important;gap:6px!important;min-width:0!important;}
.cchat-add-member-v73 label span{font-size:12px!important;font-weight:1000!important;color:#4c3576!important;}
.cchat-add-member-v73 input[type="search"],.cchat-add-member-v73 select{width:100%!important;min-width:0!important;height:42px!important;border:1px solid #e7def8!important;border-radius:14px!important;background:#fff!important;padding:0 11px!important;font-size:12.5px!important;font-weight:850!important;color:#30233f!important;}
.cchat-add-member-v73 button{height:42px!important;border:0!important;border-radius:15px!important;background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;color:#fff!important;font-weight:1000!important;}
.cchat-field-hint{margin:2px 0 8px!important;color:#7b708f!important;font-size:11.5px!important;font-weight:800!important;line-height:1.8!important;}
.cchat-send-behavior-fieldset input{max-width:190px!important;}
.cchat-member-controls-v73{grid-column:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:7px!important;align-items:end!important;min-width:0!important;}
.cchat-member-mute,.cchat-member-remove{height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:0 9px!important;border-radius:13px!important;font-size:12px!important;font-weight:1000!important;white-space:nowrap!important;}
.cchat-member-mute{border:1px solid #fed7aa!important;background:#fff7ed!important;color:#c2410c!important;}
.cchat-member-mute input,.cchat-member-remove input{width:16px!important;height:16px!important;margin:0!important;position:static!important;opacity:1!important;pointer-events:auto!important;}
.cchat-member-mute input{accent-color:#f97316!important;}
.cchat-member-remove input{accent-color:#e11d48!important;}
.cchat-member-remove{border:1px solid #fecdd3!important;background:#fff1f2!important;color:#be123c!important;}
.cchat-icon-action.cchat-delete-room-btn.is-group-delete{color:#e11d48!important;border-color:#fecdd3!important;background:linear-gradient(180deg,#fff1f2,#fff)!important;}
.cchat-icon-action.cchat-delete-room-btn.is-group-delete span:before{content:'';position:absolute;left:4px;right:4px;top:5px;bottom:2px;border:2px solid currentColor;border-top:0;border-radius:2px;}
.cchat-icon-action.cchat-delete-room-btn.is-group-delete span:after{content:'';position:absolute;left:3px;right:3px;top:2px;height:2px;background:currentColor;border-radius:2px;box-shadow:4px -2px 0 -1px currentColor;}
@media(max-width:520px){.cchat-member-controls-v73{grid-template-columns:1fr 1fr!important}.cchat-member-role-select{grid-column:1 / -1!important}.cchat-member-mute,.cchat-member-remove{width:100%!important}.cchat-add-member-v73 input[type="search"],.cchat-add-member-v73 select{font-size:12px!important}}

/* v74 final chat/group fixes */
.cchat-system-notice{
  align-self:center!important;
  max-width:82%!important;
  margin:6px auto!important;
  display:flex!important;
  justify-content:center!important;
  pointer-events:none!important;
}
.cchat-system-notice span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:5px 12px!important;
  border-radius:999px!important;
  background:rgba(148,163,184,.13)!important;
  color:#8a8495!important;
  border:1px solid rgba(148,163,184,.16)!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1.7!important;
  text-align:center!important;
  box-shadow:none!important;
}
.cchat-reactions button[data-react-message]{display:none!important;}
.cchat-reactions{display:flex!important;gap:3px!important;align-items:center!important;flex-wrap:wrap!important;margin-top:2px!important;}
.cchat-reactions span{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:24px!important;height:22px!important;padding:0 6px!important;border-radius:999px!important;background:#fff!important;border:1px solid #eee8fb!important;box-shadow:0 5px 14px rgba(31,24,51,.06)!important;font-size:13px!important;line-height:1!important;}
.cchat-reply-alert{
  position:fixed!important;
  right:12px!important;
  bottom:calc(86px + env(safe-area-inset-bottom))!important;
  z-index:1500!important;
  border:0!important;
  border-radius:999px!important;
  padding:9px 13px!important;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(109,40,217,.28)!important;
  font-size:12px!important;
  font-weight:1000!important;
  cursor:pointer!important;
}
.cchat-reply-alert[hidden]{display:none!important;}
.cchat-reply-highlight{animation:cchatReplyPulse 1.7s ease both!important;}
@keyframes cchatReplyPulse{0%,100%{filter:none}20%,70%{filter:drop-shadow(0 0 0.6rem rgba(109,40,217,.35));transform:translateY(-1px)}}
.cchat-header-actions{gap:10px!important;margin-inline-start:8px!important;}
.cchat-icon-action.cchat-delete-room-btn{margin-inline-start:6px!important;}
.cchat-room-row.is-group[data-room-exit-url]{touch-action:manipulation!important;}
.cchat-room-row.is-group[data-room-exit-url]::after{content:'نگه‌دارید برای خروج';grid-column:2 / 4;justify-self:start;font-size:10px;color:#b8b0c4;line-height:1;opacity:0;max-height:0;transition:.16s ease;}
.cchat-room-row.is-group[data-room-exit-url]:active::after,.cchat-room-row.is-group[data-room-exit-url].is-longpress-ready::after{opacity:1;max-height:14px;}
.cchat-room-row.is-longpress-ready{background:#fff1f2!important;border-color:#fecdd3!important;}
body.cchat-group-sheet-open .cchat-compose{visibility:hidden!important;pointer-events:none!important;}
.cchat-group-management-panel[open] .cchat-group-panel-inner,
.cchat-group-management-panel[data-force-open="1"] .cchat-group-panel-inner{
  position:fixed!important;
  inset:0!important;
  z-index:2147482000!important;
  height:100dvh!important;
  max-height:100dvh!important;
  width:100vw!important;
  max-width:100vw!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  border-radius:0!important;
  transform:none!important;
}
.cchat-group-management-panel[open] .cchat-group-sheet-body,
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:12px!important;
}
.cchat-group-management-panel[open] .cchat-group-sheet-footer,
.cchat-group-management-panel[data-force-open="1"] .cchat-group-sheet-footer{
  position:sticky!important;
  bottom:0!important;
  z-index:2147482100!important;
  flex:0 0 auto!important;
  background:#fff!important;
  padding:10px 12px calc(14px + env(safe-area-inset-bottom))!important;
  box-shadow:0 -16px 32px rgba(31,24,51,.12)!important;
}

/* v76 chat cleanup: no header total counters, readers sheet, color tones */
.cchat-inbox-header .cchat-total-badge,.cchat-chat-header .cchat-header-unread{display:none!important}
:root{--chat-color-red:#ffe8e8;--chat-color-rose:#ffe4e6;--chat-color-violet:#ede9fe;--chat-color-indigo:#e0e7ff;--chat-color-sky:#e0f2fe;--chat-color-cyan:#cffafe;--chat-color-mint:#dcfce7;--chat-color-lime:#ecfccb;--chat-color-amber:#fef3c7;--chat-color-slate:#e2e8f0}
.c-red{background:var(--chat-color-red)!important}.c-rose{background:var(--chat-color-rose)!important}.c-violet{background:var(--chat-color-violet)!important}.c-indigo{background:var(--chat-color-indigo)!important}.c-sky{background:var(--chat-color-sky)!important}.c-cyan{background:var(--chat-color-cyan)!important}.c-mint{background:var(--chat-color-mint)!important}.c-lime{background:var(--chat-color-lime)!important}.c-amber{background:var(--chat-color-amber)!important}.c-slate{background:var(--chat-color-slate)!important}
.cchat-reader-sheet{position:fixed;inset:0;z-index:100001;display:grid;place-items:end center;background:rgba(20,16,32,.28);backdrop-filter:blur(8px)}
.cchat-reader-card{width:min(520px,calc(100% - 22px));max-height:min(70dvh,560px);display:flex;flex-direction:column;border-radius:26px 26px 0 0;background:#fff;box-shadow:0 -18px 60px rgba(20,16,32,.22);overflow:hidden;direction:rtl}
.cchat-reader-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #f0edf7;font-weight:1000}.cchat-reader-head button{border:0;background:#f5f2ff;color:#5b21b6;border-radius:14px;width:36px;height:36px;font-size:18px;font-weight:1000}
.cchat-reader-list{overflow:auto;padding:10px 12px 16px}.cchat-reader-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 6px;border-bottom:1px solid #f5f2fb}.cchat-reader-row b{font-size:13px}.cchat-reader-row small{display:block;color:#857c93;font-size:11px;font-weight:800}.cchat-reader-row time{font-size:11px;color:#16a34a;font-weight:1000}.cchat-reader-empty{padding:18px;text-align:center;color:#857c93;font-weight:900}
.cchat-settings-invite-box input[list]{padding-inline-end:12px}


/* v81 video countdown only; submit/page loaders fully removed for speed/stability */
.play-chip.duration-live,.review-duration-chip.duration-live{font-size:10.5px!important;letter-spacing:.2px!important;padding:3px 7px!important;animation:ds-video-countdown-blink .85s steps(2,start) infinite!important;background:rgba(17,24,39,.72)!important;color:#fff!important;backdrop-filter:blur(10px)!important}
@keyframes ds-video-countdown-blink{0%,55%{opacity:1;transform:scale(.96)}56%,100%{opacity:.46;transform:scale(.92)}}
.review-media-wrap{position:relative!important;border-radius:20px!important;overflow:hidden!important;background:#08070b!important}
.review-media-wrap .review-duration-chip{position:absolute!important;top:10px!important;left:10px!important;right:auto!important;z-index:7!important;direction:ltr!important}

/* v86: stable chat read ticks, group active avatars, group photo viewer, and photo-save feedback */
.read-tick.seen{color:#1d9bf0!important;text-shadow:0 0 8px rgba(29,155,240,.16)!important;}
.cchat-header-active-members{display:flex!important;align-items:center!important;gap:0!important;direction:ltr!important;margin-inline-start:-4px!important;margin-inline-end:4px!important;max-width:196px!important;min-width:0!important;overflow:hidden!important;flex:0 1 auto!important;z-index:3!important;}
.cchat-header-active-members[hidden]{display:none!important;}
.cchat-header-active-members i{width:20px!important;height:20px!important;min-width:20px!important;border-radius:999px!important;background:#ef4444!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 3px 9px rgba(239,68,68,.22)!important;display:grid!important;place-items:center!important;margin-inline-start:-5px!important;font-size:9px!important;font-style:normal!important;font-weight:1000!important;line-height:1!important;overflow:hidden!important;}
.cchat-header-active-members i:first-child{margin-inline-start:0!important;}
.cchat-header-active-members img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important;display:block!important;}
.cchat-group-photo-viewer{position:fixed!important;inset:0!important;z-index:120000!important;background:rgba(12,10,20,.82)!important;display:grid!important;place-items:center!important;padding:28px!important;backdrop-filter:blur(12px)!important;}
.cchat-group-photo-viewer[hidden]{display:none!important;}
.cchat-group-photo-viewer img{max-width:min(92vw,520px)!important;max-height:82vh!important;border-radius:24px!important;box-shadow:0 28px 80px rgba(0,0,0,.36)!important;background:#fff!important;object-fit:contain!important;}
.cchat-photo-viewer-close{position:fixed!important;top:calc(14px + env(safe-area-inset-top))!important;right:16px!important;width:42px!important;height:42px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;color:#111827!important;font-size:28px!important;line-height:1!important;display:grid!important;place-items:center!important;box-shadow:0 12px 30px rgba(0,0,0,.24)!important;z-index:120001!important;}
.cchat-photo-save-status{display:block!important;margin-top:6px!important;padding:8px 10px!important;border-radius:14px!important;background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;font-size:11px!important;font-weight:900!important;}
.cchat-photo-save-status[hidden]{display:none!important;}
.cchat-group-settings-form.is-saving-photo .cchat-photo-save-status{display:block!important;}
.cchat-group-settings-form.is-saving-photo input[type="file"]{opacity:.72!important;}
.cchat-group-settings-form.is-saving-photo ~ * .cchat-settings-save,
.cchat-group-management-panel.is-saving-photo .cchat-settings-save{position:relative!important;opacity:.84!important;pointer-events:none!important;}
.cchat-group-management-panel.is-saving-photo .cchat-settings-save::after{content:"";width:6px;height:6px;border-radius:50%;background:#fff;display:inline-block;margin-inline-start:7px;box-shadow:10px 0 0 rgba(255,255,255,.65);animation:cchatDots .72s infinite alternate;vertical-align:middle;}
@keyframes cchatDots{from{opacity:.35;transform:translateY(0)}to{opacity:1;transform:translateY(-2px)}}
@media(max-width:520px){.cchat-header-active-members{max-width:132px!important}.cchat-header-active-members i{width:18px!important;height:18px!important;min-width:18px!important}.cchat-group-photo-viewer{padding:18px!important}.cchat-group-photo-viewer img{border-radius:20px!important;max-width:94vw!important}}

/* v86: keep active group avatars beside the group profile, not inside the middle text. */
.cchat-room-row.is-group{grid-template-columns:50px auto minmax(0,1fr) auto!important;}
.cchat-room-row.is-group .cchat-room-active-members{grid-column:2!important;grid-row:1!important;margin-top:0!important;align-self:center!important;max-width:198px!important;}
.cchat-room-row.is-group .cchat-room-main{grid-column:3!important;}
.cchat-room-row.is-group .cchat-room-meta{grid-column:4!important;}
.cchat-room-row.is-group[data-room-exit-url]::after{display:none!important;content:none!important;}
@media(max-width:760px){.cchat-room-row.is-group{grid-template-columns:46px auto minmax(0,1fr) auto!important}.cchat-room-row.is-group .cchat-room-active-members{max-width:160px!important}}
@media(max-width:420px){.cchat-room-row.is-group .cchat-room-active-members{max-width:112px!important}}
.cchat-chat-header:has(.cchat-header-active-members){grid-template-columns:40px 46px auto minmax(0,1fr) auto!important;}
@media(max-width:760px){.cchat-chat-header:has(.cchat-header-active-members){grid-template-columns:36px 42px auto minmax(0,1fr) auto!important;}}


/* v87: restore stable chat header layout and group photo preview click */
.cchat-chat-header,
.cchat-chat-header:has(.cchat-header-active-members){
  grid-template-columns:40px 46px minmax(0,1fr) auto!important;
  align-items:center!important;
}
.cchat-group-avatar-btn,
.cchat-peer-avatar.cchat-group-avatar-btn{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  flex:0 0 46px!important;
  aspect-ratio:1/1!important;
  border-radius:999px!important;
  padding:0!important;
  border:0!important;
  overflow:visible!important;
  position:relative!important;
  cursor:pointer!important;
}
.cchat-group-avatar-btn > img,
.cchat-peer-avatar.cchat-group-avatar-btn > img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:999px!important;
  display:block!important;
  overflow:hidden!important;
}
.cchat-group-avatar-btn .cchat-gear-badge{
  position:absolute!important;
  inset-inline-end:-5px!important;
  bottom:-3px!important;
  width:19px!important;
  height:19px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6d28d9!important;
  display:grid!important;
  place-items:center!important;
  font-size:11px!important;
  line-height:1!important;
  box-shadow:0 5px 14px rgba(31,24,51,.16)!important;
  z-index:6!important;
}
.cchat-group-avatar-btn .cchat-group-settings-label{display:none!important;}
.cchat-peer-status small[data-peer-status-text]{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.cchat-header-active-members{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  direction:ltr!important;
  margin-inline-start:2px!important;
  margin-inline-end:0!important;
  max-width:168px!important;
  min-width:0!important;
  overflow:hidden!important;
  flex:0 1 auto!important;
}
.cchat-header-active-members[hidden]{display:none!important;}
.cchat-header-active-members i{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
}
.cchat-group-photo-viewer{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  background:rgba(12,10,25,.82)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:22px!important;
}
.cchat-group-photo-viewer[hidden]{display:none!important;}
.cchat-group-photo-viewer img{
  max-width:min(92vw,560px)!important;
  max-height:82vh!important;
  object-fit:contain!important;
  border-radius:24px!important;
  box-shadow:0 24px 80px rgba(0,0,0,.38)!important;
  background:#fff!important;
}
.cchat-photo-viewer-close{
  position:fixed!important;
  top:calc(18px + env(safe-area-inset-top))!important;
  inset-inline-end:18px!important;
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#1f172a!important;
  font-size:28px!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  z-index:2147483001!important;
}
@media(max-width:760px){
  .cchat-chat-header,
  .cchat-chat-header:has(.cchat-header-active-members),
  .cchat-active-page .cchat-chat-header,
  .cchat-active-page .cchat-chat-header:has(.cchat-header-active-members){
    grid-template-columns:34px 40px minmax(0,1fr) auto!important;
    gap:7px!important;
  }
  .cchat-group-avatar-btn,
  .cchat-peer-avatar.cchat-group-avatar-btn{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    flex-basis:40px!important;
  }
  .cchat-header-active-members{max-width:106px!important;}
  .cchat-header-active-members i{width:18px!important;height:18px!important;min-width:18px!important;}
}

/* v88: remove group-room online avatars from the chat header; keep them only in inbox rows. */
.cchat-chat-header .cchat-header-active-members,
.cchat-active-page .cchat-chat-header .cchat-header-active-members{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  max-width:0!important;
  min-width:0!important;
  overflow:hidden!important;
}
.cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-chat-header.is-group-chat-header,
.cchat-chat-header.is-group-chat-header:has(.cchat-header-active-members),
.cchat-active-page .cchat-chat-header.is-group-chat-header:has(.cchat-header-active-members){
  grid-template-columns:40px 46px minmax(0,1fr) auto!important;
  align-items:center!important;
}
.cchat-chat-header.is-group-chat-header .cchat-back{grid-column:1!important;grid-row:1!important;justify-self:center!important;}
.cchat-chat-header.is-group-chat-header .cchat-group-avatar-btn{grid-column:2!important;grid-row:1!important;justify-self:center!important;align-self:center!important;}
.cchat-chat-header.is-group-chat-header .cchat-peer-title{grid-column:3!important;grid-row:1!important;min-width:0!important;align-self:center!important;}
.cchat-chat-header.is-group-chat-header .cchat-header-actions{grid-column:4!important;grid-row:1!important;justify-self:end!important;align-self:center!important;margin-inline-start:8px!important;}
.cchat-chat-header.is-group-chat-header .cchat-peer-status small[data-peer-status-text]{display:flex!important;align-items:center!important;gap:6px!important;overflow:hidden!important;}
@media(max-width:760px){
  .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-chat-header.is-group-chat-header,
  .cchat-chat-header.is-group-chat-header:has(.cchat-header-active-members),
  .cchat-active-page .cchat-chat-header.is-group-chat-header:has(.cchat-header-active-members){grid-template-columns:34px 40px minmax(0,1fr) auto!important;gap:7px!important;}
  .cchat-chat-header.is-group-chat-header .cchat-header-actions{margin-inline-start:5px!important;}
}

/* v89: stable direct-chat header + clickable/larger profile avatars in private/group chat */
.cchat-chat-header:not(.is-group-chat-header),
.cchat-active-page .cchat-chat-header:not(.is-group-chat-header){
  grid-template-columns:40px 46px minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:center!important;
}
.cchat-chat-header:not(.is-group-chat-header) .cchat-back{grid-column:1!important;grid-row:1!important;justify-self:center!important;align-self:center!important;}
.cchat-chat-header:not(.is-group-chat-header) .cchat-peer-avatar{grid-column:2!important;grid-row:1!important;justify-self:center!important;align-self:center!important;width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;border-radius:999px!important;overflow:hidden!important;margin:0!important;}
.cchat-chat-header:not(.is-group-chat-header) .cchat-peer-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:999px!important;display:block!important;}
.cchat-chat-header:not(.is-group-chat-header) .cchat-peer-title{grid-column:3!important;grid-row:1!important;min-width:0!important;align-self:center!important;}
.cchat-chat-header:not(.is-group-chat-header) .cchat-header-actions{grid-column:4!important;grid-row:1!important;justify-self:end!important;align-self:center!important;}
.cchat-chat-header:not(.is-group-chat-header) .cchat-peer-title strong,
.cchat-chat-header:not(.is-group-chat-header) .cchat-peer-title small{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.cchat-message-avatar,
.cchat-member-avatar,
.cchat-private-profile-link,
.cchat-member-avatar{width:40px!important;height:40px!important;min-width:40px!important;border-radius:999px!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:linear-gradient(135deg,#ede9fe,#f5f3ff)!important;color:#6d28d9!important;font-weight:1000!important;}
.cchat-member-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important;display:block!important;}
.cchat-private-envelope .cchat-private-side{min-width:64px!important;width:64px!important;display:grid!important;justify-items:center!important;gap:3px!important;}
.cchat-private-envelope .cchat-task-sealed-author,
.cchat-private-envelope .cchat-private-recipient-mini,
.cchat-private-envelope .cchat-private-profile-link{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:#f3efff!important;
  color:#5b21b6!important;
  box-shadow:0 10px 22px rgba(91,33,182,.14)!important;
  border:2px solid #fff!important;
}
.cchat-private-envelope .cchat-task-sealed-author img,
.cchat-private-envelope .cchat-task-sealed-author span,
.cchat-private-envelope .cchat-private-recipient-mini img,
.cchat-private-envelope .cchat-private-recipient-mini span,
.cchat-private-envelope .cchat-private-profile-link img,
.cchat-private-envelope .cchat-private-profile-link span{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  border-radius:inherit!important;
  object-fit:cover!important;
  display:grid!important;
  place-items:center!important;
  font-size:18px!important;
  font-weight:1000!important;
  background:transparent!important;
}
.cchat-private-envelope .cchat-task-sealed-box{max-width:min(540px,calc(100vw - 150px))!important;}
.cchat-private-side small{max-width:62px!important;font-size:9.5px!important;text-align:center!important;direction:ltr!important;}
@media(max-width:760px){
  .cchat-chat-header:not(.is-group-chat-header),
  .cchat-active-page .cchat-chat-header:not(.is-group-chat-header){grid-template-columns:34px 40px minmax(0,1fr) auto!important;gap:7px!important;}
  .cchat-chat-header:not(.is-group-chat-header) .cchat-peer-avatar{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;}
  .cchat-private-envelope .cchat-private-side{min-width:54px!important;width:54px!important;}
  .cchat-private-envelope .cchat-task-sealed-author,
  .cchat-private-envelope .cchat-private-recipient-mini,
  .cchat-private-envelope .cchat-private-profile-link{width:44px!important;height:44px!important;min-width:44px!important;}
  .cchat-private-envelope .cchat-task-sealed-box{max-width:calc(100vw - 122px)!important;}
  .cchat-private-side small{max-width:54px!important;font-size:8.5px!important;}
}

/* v91: final header/avatar interaction cleanup. Keep header stable, keep group photo clickable, keep message avatars clickable. */
.cchat-chat-header,
.cchat-active-page .cchat-chat-header,
.cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-chat-header.is-group-chat-header{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  height:64px!important;
  min-height:64px!important;
  padding:8px 10px!important;
  overflow:visible!important;
  direction:rtl!important;
}
.cchat-chat-header .cchat-back,
.cchat-active-page .cchat-chat-header .cchat-back{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:center!important;
  align-self:center!important;
  position:relative!important;
  z-index:8!important;
}
.cchat-chat-header .cchat-header-main,
.cchat-active-page .cchat-chat-header .cchat-header-main{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  overflow:hidden!important;
  direction:rtl!important;
  position:relative!important;
  z-index:7!important;
}
.cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-chat-header .cchat-header-actions{
  grid-column:3!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  min-width:max-content!important;
  position:relative!important;
  z-index:9!important;
}
.cchat-header-main .cchat-peer-avatar,
.cchat-header-main .cchat-group-avatar-btn,
.cchat-header-main .cchat-peer-avatar-link,
.cchat-header-main .cchat-avatar{
  grid-column:auto!important;
  grid-row:auto!important;
  justify-self:auto!important;
  align-self:center!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  flex:0 0 46px!important;
  border-radius:999px!important;
  overflow:visible!important;
  margin:0!important;
  position:relative!important;
  z-index:10!important;
  pointer-events:auto!important;
}
.cchat-header-main .cchat-peer-avatar > img,
.cchat-header-main .cchat-group-avatar-btn > img,
.cchat-header-main .cchat-peer-avatar-link > img,
.cchat-header-main .cchat-avatar > img{
  width:100%!important;
  height:100%!important;
  border-radius:999px!important;
  object-fit:cover!important;
  display:block!important;
  pointer-events:none!important;
}
.cchat-header-main .cchat-peer-title,
.cchat-active-page .cchat-header-main .cchat-peer-title{
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  max-width:min(62vw,360px)!important;
  display:grid!important;
  gap:2px!important;
  align-self:center!important;
  text-align:right!important;
  position:relative!important;
  z-index:7!important;
}
.cchat-header-main .cchat-peer-title strong,
.cchat-header-main .cchat-peer-title small{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.cchat-header-main .cchat-group-avatar-btn.cchat-group-avatar-photo{cursor:zoom-in!important;}
.cchat-header-main .cchat-group-avatar-btn .cchat-gear-badge{
  pointer-events:auto!important;
  cursor:pointer!important;
  z-index:12!important;
}
.cchat-header-main .cchat-group-settings-label{display:none!important;}
@media(max-width:760px){
  .cchat-chat-header,
  .cchat-active-page .cchat-chat-header,
  .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-chat-header.is-group-chat-header{
    grid-template-columns:38px minmax(0,1fr) auto!important;
    height:58px!important;
    min-height:58px!important;
    padding:7px 8px!important;
    gap:6px!important;
  }
  .cchat-header-main .cchat-peer-avatar,
  .cchat-header-main .cchat-group-avatar-btn,
  .cchat-header-main .cchat-peer-avatar-link,
  .cchat-header-main .cchat-avatar{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    flex-basis:42px!important;
  }
  .cchat-header-main .cchat-peer-title{max-width:calc(100vw - 170px)!important;}
  .cchat-chat-header .cchat-header-actions button{width:32px!important;height:32px!important;}
}
/* Do not let the message three-dot menu cover sender profile avatars in group/direct messages. */
.cchat-message.theirs:not(:has(.cchat-private-envelope)){
  grid-template-columns:42px minmax(0,1fr)!important;
  column-gap:8px!important;
  overflow:visible!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar{
  grid-column:1!important;
  grid-row:1 / span 20!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  position:relative!important;
  z-index:20!important;
  pointer-events:auto!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-msg-menu{
  grid-column:2!important;
  grid-row:1!important;
  position:absolute!important;
  top:0!important;
  inset-inline-end:-30px!important;
  inset-inline-start:auto!important;
  z-index:6!important;
  pointer-events:auto!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar:hover,
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar:active{transform:scale(1.03);}
@media(max-width:760px){
  .cchat-message.theirs:not(:has(.cchat-private-envelope)){grid-template-columns:40px minmax(0,1fr)!important;}
  .cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar{width:36px!important;height:36px!important;min-width:36px!important;}
  .cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-msg-menu{inset-inline-end:-26px!important;}
}

/* v92: definitive chat header/avatar layout fix.
   This replaces the previous grid/RTL header experiments with one stable layout:
   back on the right, actions on the left, profile block centered. */
.cchat-panel.cchat-conversation .cchat-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation .cchat-chat-header,
.cchat-panel.cchat-conversation .cchat-chat-header.is-group-chat-header{
  position:sticky!important;
  top:calc(var(--chat-vvtop,0px) + env(safe-area-inset-top))!important;
  z-index:900!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  padding:8px 58px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  background:rgba(255,255,255,.98)!important;
  backdrop-filter:blur(14px)!important;
  border-bottom:1px solid #f0edf7!important;
  direction:rtl!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-back{
  position:absolute!important;
  right:10px!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:30!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions{
  position:absolute!important;
  left:10px!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:30!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  margin:0!important;
  min-width:0!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions button,
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions .cchat-icon-action{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  margin:0!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-main{
  position:relative!important;
  z-index:20!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  width:auto!important;
  max-width:calc(100vw - 132px)!important;
  min-width:0!important;
  margin:0 auto!important;
  overflow:visible!important;
  direction:rtl!important;
  text-align:right!important;
  flex:0 1 auto!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar{
  position:relative!important;
  z-index:24!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  flex:0 0 44px!important;
  aspect-ratio:1/1!important;
  border-radius:999px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  text-decoration:none!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar:not(.cchat-group-avatar-btn){
  overflow:hidden!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn{
  overflow:visible!important;
  border:0!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar > img,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link > img,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn > img,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar > img{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:44px!important;
  max-height:44px!important;
  border-radius:999px!important;
  object-fit:cover!important;
  display:block!important;
  pointer-events:none!important;
  overflow:hidden!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-photo{
  cursor:zoom-in!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn .cchat-gear-badge{
  position:absolute!important;
  left:-4px!important;
  right:auto!important;
  bottom:-4px!important;
  z-index:40!important;
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  min-height:21px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6d28d9!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 5px 14px rgba(49,34,99,.18)!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  font-size:11px!important;
  line-height:1!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-settings-label{display:none!important;}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title{
  position:relative!important;
  z-index:22!important;
  min-width:0!important;
  max-width:min(50vw,320px)!important;
  display:grid!important;
  gap:2px!important;
  align-self:center!important;
  text-align:right!important;
  overflow:hidden!important;
  margin:0!important;
  pointer-events:auto!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title strong,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title small{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
@media(max-width:520px){
  .cchat-panel.cchat-conversation .cchat-chat-header,
  .cchat-panel.cchat-conversation .cchat-chat-header.is-group-chat-header{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    padding:7px 50px!important;
  }
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-back{right:7px!important;width:34px!important;height:34px!important;min-width:34px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions{left:7px!important;gap:5px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions button,
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions .cchat-icon-action{width:32px!important;height:32px!important;min-width:32px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-main{gap:7px!important;max-width:calc(100vw - 112px)!important;}
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;flex-basis:40px!important;}
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar > img,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link > img,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn > img,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar > img{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;}
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title{max-width:calc(100vw - 168px)!important;}
}

/* v92: the message menu must never cover another user's profile avatar. */
.cchat-message.theirs:not(:has(.cchat-private-envelope)){
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  column-gap:8px!important;
  position:relative!important;
  overflow:visible!important;
  direction:ltr!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar{
  grid-column:1!important;
  grid-row:1 / span 20!important;
  justify-self:start!important;
  align-self:start!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  position:relative!important;
  z-index:40!important;
  pointer-events:auto!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  border-radius:inherit!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-msg-menu,
.cchat-message.theirs:not(:has(.cchat-private-envelope)) .msg-menu-btn{
  grid-column:2!important;
  grid-row:1!important;
  position:absolute!important;
  top:2px!important;
  right:-34px!important;
  left:auto!important;
  inset-inline-start:auto!important;
  inset-inline-end:auto!important;
  z-index:10!important;
  pointer-events:auto!important;
}
.cchat-message.theirs:not(:has(.cchat-private-envelope)) > :not(.cchat-message-avatar){
  grid-column:2!important;
}
@media(max-width:520px){
  .cchat-message.theirs:not(:has(.cchat-private-envelope)){grid-template-columns:40px minmax(0,1fr)!important;}
  .cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-message-avatar{width:36px!important;height:36px!important;min-width:36px!important;}
  .cchat-message.theirs:not(:has(.cchat-private-envelope)) .cchat-msg-menu,
  .cchat-message.theirs:not(:has(.cchat-private-envelope)) .msg-menu-btn{right:-30px!important;}
}


/* v93: compact final chat header fix ONLY.
   Keep the header small and keep the peer/group profile block centered.
   This override intentionally wins over older v91/v92 header experiments. */
:root{--chat-header-h:56px!important;}
.cchat-active-page .cchat-conversation{grid-template-rows:56px minmax(0,1fr) auto!important;}
.cchat-active-page .cchat-conversation::before{height:56px!important;}
.cchat-active-page .cchat-messages{padding-top:calc(8px + env(safe-area-inset-top))!important;}
.cchat-panel.cchat-conversation .cchat-chat-header,
.cchat-active-page .cchat-chat-header,
.cchat-panel.cchat-conversation .cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-chat-header.is-group-chat-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:900!important;
  width:100%!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  padding:0 52px!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:block!important;
  overflow:visible!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid #f0edf7!important;
  box-shadow:0 8px 22px rgba(31,24,51,.045)!important;
  backdrop-filter:blur(12px)!important;
  direction:rtl!important;
  transform:none!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-back,
.cchat-active-page .cchat-chat-header .cchat-back{
  position:absolute!important;
  right:8px!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:35!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-chat-header .cchat-header-actions{
  position:absolute!important;
  left:8px!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:35!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  margin:0!important;
  min-width:0!important;
  width:auto!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions button,
.cchat-active-page .cchat-chat-header .cchat-header-actions button,
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions .cchat-icon-action,
.cchat-active-page .cchat-chat-header .cchat-header-actions .cchat-icon-action{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  margin:0!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-main,
.cchat-active-page .cchat-chat-header .cchat-header-main{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:25!important;
  height:44px!important;
  width:auto!important;
  max-width:calc(100vw - 122px)!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  overflow:hidden!important;
  direction:rtl!important;
  text-align:right!important;
  flex:0 0 auto!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar,
.cchat-active-page .cchat-header-main .cchat-peer-avatar,
.cchat-active-page .cchat-header-main .cchat-peer-avatar-link,
.cchat-active-page .cchat-header-main .cchat-group-avatar-btn,
.cchat-active-page .cchat-header-main .cchat-avatar{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  flex:0 0 40px!important;
  aspect-ratio:1/1!important;
  border-radius:999px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  align-self:center!important;
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  text-decoration:none!important;
  pointer-events:auto!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn{
  overflow:visible!important;
  border:0!important;
  cursor:zoom-in!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar > img,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link > img,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn > img,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar > img,
.cchat-active-page .cchat-header-main .cchat-peer-avatar > img,
.cchat-active-page .cchat-header-main .cchat-peer-avatar-link > img,
.cchat-active-page .cchat-header-main .cchat-group-avatar-btn > img,
.cchat-active-page .cchat-header-main .cchat-avatar > img{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  border-radius:999px!important;
  object-fit:cover!important;
  display:block!important;
  pointer-events:none!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title,
.cchat-active-page .cchat-header-main .cchat-peer-title{
  min-width:0!important;
  max-width:calc(100vw - 178px)!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  gap:1px!important;
  overflow:hidden!important;
  text-align:right!important;
  pointer-events:auto!important;
  flex:0 1 auto!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title strong,
.cchat-active-page .cchat-header-main .cchat-peer-title strong,
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title small,
.cchat-active-page .cchat-header-main .cchat-peer-title small{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title strong,
.cchat-active-page .cchat-header-main .cchat-peer-title strong{font-size:13.5px!important;line-height:1.25!important;}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title small,
.cchat-active-page .cchat-header-main .cchat-peer-title small{font-size:10.5px!important;line-height:1.2!important;}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn .cchat-gear-badge,
.cchat-active-page .cchat-header-main .cchat-group-avatar-btn .cchat-gear-badge{
  position:absolute!important;
  left:-4px!important;
  right:auto!important;
  bottom:-4px!important;
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  min-height:19px!important;
  display:grid!important;
  place-items:center!important;
  z-index:45!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6d28d9!important;
  border:1px solid #ddd6fe!important;
  box-shadow:0 4px 12px rgba(49,34,99,.18)!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  font-size:10px!important;
  line-height:1!important;
}
.cchat-panel.cchat-conversation .cchat-header-main .cchat-group-settings-label,
.cchat-active-page .cchat-header-main .cchat-group-settings-label{display:none!important;}
@media(max-width:520px){
  :root{--chat-header-h:54px!important;}
  .cchat-active-page .cchat-conversation{grid-template-rows:54px minmax(0,1fr) auto!important;}
  .cchat-active-page .cchat-conversation::before{height:54px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header,
  .cchat-active-page .cchat-chat-header,
  .cchat-panel.cchat-conversation .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-chat-header.is-group-chat-header{height:54px!important;min-height:54px!important;max-height:54px!important;padding:0 46px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-back,
  .cchat-active-page .cchat-chat-header .cchat-back{right:6px!important;width:36px!important;height:36px!important;min-width:36px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions,
  .cchat-active-page .cchat-chat-header .cchat-header-actions{left:6px!important;gap:4px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions button,
  .cchat-active-page .cchat-chat-header .cchat-header-actions button,
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions .cchat-icon-action,
  .cchat-active-page .cchat-chat-header .cchat-header-actions .cchat-icon-action{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-main,
  .cchat-active-page .cchat-chat-header .cchat-header-main{height:40px!important;gap:6px!important;max-width:calc(100vw - 108px)!important;}
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar,
  .cchat-active-page .cchat-header-main .cchat-peer-avatar,
  .cchat-active-page .cchat-header-main .cchat-peer-avatar-link,
  .cchat-active-page .cchat-header-main .cchat-group-avatar-btn,
  .cchat-active-page .cchat-header-main .cchat-avatar,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar > img,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-avatar-link > img,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-group-avatar-btn > img,
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-avatar > img,
  .cchat-active-page .cchat-header-main .cchat-peer-avatar > img,
  .cchat-active-page .cchat-header-main .cchat-peer-avatar-link > img,
  .cchat-active-page .cchat-header-main .cchat-group-avatar-btn > img,
  .cchat-active-page .cchat-header-main .cchat-avatar > img{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important;}
  .cchat-panel.cchat-conversation .cchat-header-main .cchat-peer-title,
  .cchat-active-page .cchat-header-main .cchat-peer-title{max-width:calc(100vw - 160px)!important;}
}

/* v94: restore the chat header to the stable v76 layout only for room headers. */
.cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
  position:relative!important;
  height:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  display:grid!important;
  grid-template-columns:40px 46px minmax(0,1fr) auto!important;
  grid-template-areas:none!important;
  gap:9px!important;
  align-items:center!important;
  padding:9px 11px!important;
  border-bottom:1px solid #f0edf7!important;
  background:rgba(255,255,255,.98)!important;
  z-index:20!important;
  overflow:hidden!important;
  transform:none!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{
  position:static!important;
  grid-column:auto!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#f6f2ff!important;
  color:var(--primary)!important;
  font-size:30px!important;
  font-weight:1000!important;
  line-height:1!important;
  transform:none!important;
  inset:auto!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{
  position:relative!important;
  grid-column:auto!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  border:0!important;
  padding:0!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:0 10px 22px rgba(124,58,237,.16)!important;
  cursor:pointer!important;
  transform:none!important;
  inset:auto!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar > img,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link > img,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76 > img,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar > img,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link > img,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76 > img{
  width:100%!important;
  height:100%!important;
  border-radius:50%!important;
  object-fit:cover!important;
  display:block!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-photo{cursor:zoom-in!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title{
  position:static!important;
  grid-column:auto!important;
  min-width:0!important;
  max-width:none!important;
  display:grid!important;
  gap:2px!important;
  align-self:center!important;
  text-align:start!important;
  transform:none!important;
  inset:auto!important;
  overflow:hidden!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong{
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin:0!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small{
  font-size:11px!important;
  line-height:1.25!important;
  color:#8e879d!important;
  direction:ltr!important;
  text-align:start!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions{
  position:static!important;
  grid-column:auto!important;
  min-width:max-content!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  transform:none!important;
  inset:auto!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  border:0!important;
  border-radius:50%!important;
  background:#f8f5ff!important;
  cursor:pointer!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
  inset:auto!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-gear-badge{
  position:absolute!important;
  right:-4px!important;
  bottom:-4px!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:var(--primary)!important;
  font-size:12px!important;
  box-shadow:0 4px 10px rgba(0,0,0,.12)!important;
  z-index:2!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-settings-label{display:none!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  max-width:100%!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#8e879d!important;
  font-size:11px!important;
  font-weight:800!important;
  cursor:pointer!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger b{font-size:11px!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger em{font-style:normal!important;}
@media(max-width:760px){
  .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    grid-template-columns:36px 42px minmax(0,1fr) auto!important;
    gap:7px!important;
    padding:8px!important;
  }
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{
    width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;font-size:28px!important;
  }
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{
    width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;
  }
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{
    width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;
  }
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong{font-size:13.5px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small{font-size:10.5px!important;}
}

/* v95: restore stable v76-style room headers only.
   Back stays on the right, group/profile avatar beside it, title/members remain like v76,
   actions stay on the left. No centered/absolute header experiments here. */
.cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
  position:sticky!important;
  top:0!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  height:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  display:grid!important;
  grid-template-columns:40px 46px minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:center!important;
  justify-content:stretch!important;
  padding:9px 11px!important;
  margin:0!important;
  border-bottom:1px solid #f0edf7!important;
  background:rgba(255,255,255,.98)!important;
  z-index:200!important;
  overflow:hidden!important;
  transform:none!important;
  direction:rtl!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.cchat-active-page .cchat-conversation{grid-template-rows:auto minmax(0,1fr) auto!important;}
.cchat-active-page .cchat-conversation::before{display:none!important;content:none!important;height:0!important;}
.cchat-active-page .cchat-messages{padding-top:14px!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{
  position:static!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;
  width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;
  transform:none!important;margin:0!important;display:grid!important;place-items:center!important;
  border-radius:50%!important;background:#f6f2ff!important;color:var(--primary)!important;
  font-size:30px!important;font-weight:1000!important;line-height:1!important;justify-self:center!important;align-self:center!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{
  position:relative!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;
  width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;flex:0 0 46px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;overflow:hidden!important;
  display:grid!important;place-items:center!important;justify-self:center!important;align-self:center!important;
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#fff!important;
  text-decoration:none!important;box-shadow:0 10px 22px rgba(124,58,237,.16)!important;transform:none!important;
  pointer-events:auto!important;cursor:pointer!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar > img,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link > img,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76 > img,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar > img,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link > img,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76 > img{
  width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:cover!important;border-radius:50%!important;display:block!important;pointer-events:none!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-photo{cursor:zoom-in!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title{
  position:static!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;
  min-width:0!important;max-width:none!important;width:auto!important;display:grid!important;gap:2px!important;
  align-self:center!important;text-align:start!important;overflow:hidden!important;margin:0!important;padding:0!important;
  transform:none!important;pointer-events:auto!important;flex:none!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong{
  font-size:14px!important;line-height:1.25!important;font-weight:1000!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;max-width:100%!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small{
  font-size:11px!important;line-height:1.25!important;color:#8e879d!important;direction:ltr!important;text-align:start!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions{
  position:static!important;inset:auto!important;grid-column:auto!important;grid-row:auto!important;
  min-width:max-content!important;width:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:5px!important;transform:none!important;margin:0!important;justify-self:end!important;align-self:center!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{
  width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;margin:0!important;
  border:0!important;border-radius:50%!important;background:#f8f5ff!important;display:grid!important;place-items:center!important;cursor:pointer!important;
  transform:none!important;inset:auto!important;font-size:16px!important;color:var(--primary)!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-gear-badge,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-settings-label{display:none!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger{
  display:inline-flex!important;align-items:center!important;gap:4px!important;max-width:100%!important;padding:0!important;
  border:0!important;background:transparent!important;color:#8e879d!important;font-size:11px!important;font-weight:800!important;cursor:pointer!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger em{font-style:normal!important;}
@media(max-width:760px){
  .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
    height:58px!important;min-height:58px!important;max-height:58px!important;
    grid-template-columns:36px 42px minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important;
  }
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;font-size:28px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex-basis:42px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong{font-size:13.5px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small{font-size:10.5px!important;}
}

/* v96 profile story + compact profile header (requested-only) */
.profile-hero-story-v1{padding:14px!important;border:1px solid rgba(124,58,237,.18)!important;border-radius:28px!important;text-align:initial!important;box-shadow:0 14px 38px rgba(35,24,72,.09)!important;overflow:visible!important}
.profile-icon-actions{display:flex;justify-content:center;gap:10px;margin:-2px 0 12px;direction:ltr}
.profile-mini-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;position:relative;background:#fff;border:1px solid #eee7ff;color:#1f2333;box-shadow:0 9px 22px rgba(35,24,72,.08)}
.profile-mini-icon svg{width:21px;height:21px;stroke-width:2;fill:none;stroke:currentColor}
.profile-mini-icon span{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;line-height:17px;text-align:center;font-weight:950}
.profile-main-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:center;direction:ltr}
.profile-left-col{display:grid;justify-items:center;align-content:start;gap:6px;min-width:0}
.profile-avatar-wrap{width:96px;height:96px;border-radius:50%;position:relative;display:grid;place-items:center;background:#f6f0ff;border:3px solid #fff;box-shadow:0 0 0 1px #e9ddff,0 12px 28px rgba(35,24,72,.13);cursor:pointer}
.profile-avatar-wrap.has-story{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#ef4444,#dc2626,#fb7185) border-box;border:3px solid transparent;box-shadow:0 0 0 3px rgba(239,68,68,.16),0 14px 30px rgba(239,68,68,.18)}
.profile-avatar-img,.profile-avatar-fallback{width:86px!important;height:86px!important;border-radius:50%!important;object-fit:cover!important;display:grid;place-items:center;background:#eee7ff;color:#6d28d9;font-weight:950;font-size:30px}
.profile-story-plus{position:absolute;right:-2px;bottom:2px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ef4444;color:#fff;border:3px solid #fff;font-size:20px;font-weight:950;line-height:1;cursor:pointer;box-shadow:0 7px 16px rgba(239,68,68,.28)}
.profile-story-plus input{display:none!important}.profile-username{margin:0!important;max-width:108px;font-size:14px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;direction:ltr;color:#252238}.profile-edit-icon{font-size:12px!important;margin-inline-start:3px;color:#6d28d9}
.profile-caption-side{min-height:92px;border-radius:22px;background:#fbf9ff;border:1px solid #eee7ff;padding:12px;display:grid;align-content:center;justify-items:stretch;gap:7px;direction:rtl;max-width:100%;overflow:hidden}.profile-caption-side .profile-caption-text{margin:0!important;text-align:right!important;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;line-height:1.75!important;font-size:12.5px!important;font-weight:800!important;color:#4b4f63!important}.profile-caption-side .profile-caption-pencil{justify-self:end}.profile-caption-side .profile-caption-form textarea{min-height:86px!important;max-height:132px!important;resize:vertical!important}.profile-caption-side .public-caption{background:transparent!important;padding:0!important;color:#4b4f63!important}
.profile-story-modal[hidden]{display:none!important}.profile-story-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px}.profile-story-backdrop{position:absolute;inset:0;background:rgba(10,8,18,.48);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.profile-story-panel{position:relative;width:min(390px,92vw);height:min(690px,82vh);border-radius:28px;overflow:hidden;background:#08070c;box-shadow:0 24px 80px rgba(0,0,0,.45)}.profile-story-panel video{width:100%;height:100%;object-fit:cover;display:block;background:#000}.profile-story-close{position:absolute;top:12px;right:12px;z-index:3;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.42);color:#fff;font-size:24px;line-height:1;display:grid;place-items:center}.profile-story-viewers-btn{position:absolute;left:12px;bottom:12px;z-index:3;border:0;border-radius:999px;background:rgba(255,255,255,.9);color:#111827;padding:8px 12px;font:900 12px var(--app-font);box-shadow:0 10px 24px rgba(0,0,0,.2)}.profile-story-viewers{position:absolute;left:12px;right:12px;bottom:56px;z-index:4;max-height:210px;overflow:auto;border-radius:18px;background:rgba(255,255,255,.94);padding:8px;display:grid;gap:6px}.profile-story-viewers[hidden]{display:none!important}.profile-story-viewers div{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:850;color:#111827}.profile-story-viewers img,.profile-story-viewers i{width:28px;height:28px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#f1ecff;color:#6d28d9;font-style:normal}
.ds-bottom-nav.nav-six .nav-profile.has-profile-story img{border:2px solid #fff!important;box-shadow:0 0 0 3px #ef4444,0 8px 18px rgba(239,68,68,.24)!important}.brand-avatar.has-owner-story,.cchat-avatar.has-owner-story{box-shadow:0 0 0 3px #ef4444!important}
@media(max-width:420px){.profile-hero-story-v1{padding:12px!important}.profile-main-row{grid-template-columns:102px minmax(0,1fr);gap:10px}.profile-avatar-wrap{width:88px;height:88px}.profile-avatar-img,.profile-avatar-fallback{width:78px!important;height:78px!important}.profile-username{font-size:13px!important;max-width:100px}.profile-caption-side{padding:10px;min-height:86px}.profile-icon-actions{gap:8px}.profile-mini-icon{width:39px;height:39px}}

/* v97 profile fixes: direct chat icon, stronger wallet icon, story input, showcase strip, soft circular post slots */
.sr-file-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:.01!important}
.profile-mini-icon:first-child{color:#16a34a!important;background:linear-gradient(180deg,#fff,#f0fdf4)!important;border-color:#bbf7d0!important;box-shadow:0 10px 24px rgba(22,163,74,.16)!important}
.profile-mini-icon:first-child svg text{font-family:Arial,sans-serif!important;font-weight:900!important}
.profile-showcase-card{margin:12px 0 14px;padding:12px;border-radius:24px;background:linear-gradient(135deg,#fff,#fbf8ff 58%,#f4efff);border:1px solid rgba(124,58,237,.16);box-shadow:0 12px 32px rgba(35,24,72,.075);overflow:hidden}
.profile-showcase-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;direction:rtl}.profile-showcase-head b{display:block;color:#211b35;font-size:14px;font-weight:1000}.profile-showcase-head small{display:block;margin-top:2px;color:#8b82a6;font-size:11px;font-weight:800}.profile-showcase-upload{margin:0}.profile-showcase-add{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#7c3aed;color:#fff;font-size:22px;font-weight:950;box-shadow:0 10px 24px rgba(124,58,237,.25);border:3px solid #fff;cursor:pointer;position:relative;overflow:hidden}.profile-showcase-strip{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:2px 2px 8px;direction:rtl;-webkit-overflow-scrolling:touch}.profile-showcase-strip::-webkit-scrollbar{height:5px}.profile-showcase-strip::-webkit-scrollbar-thumb{background:#ddd6fe;border-radius:999px}.profile-showcase-item{flex:0 0 auto;width:76px;height:76px;border-radius:50%;border:3px solid #fff;padding:0;background:#efe9ff;box-shadow:0 10px 22px rgba(124,58,237,.13),0 0 0 1px #e9ddff;overflow:hidden;scroll-snap-align:start;cursor:pointer}.profile-showcase-item img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.profile-showcase-empty{min-height:58px;display:grid;place-items:center;width:100%;border:1px dashed #c4b5fd;border-radius:18px;color:#7c6aa6;font-size:12px;font-weight:900;background:rgba(255,255,255,.58);text-align:center;padding:10px}.profile-circle-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;direction:rtl!important}.profile-circle-placeholder{pointer-events:none}.profile-circle-placeholder .profile-circle-media{background:radial-gradient(circle at 35% 30%,#f7f2ff 0,#eee7ff 45%,#e5ddfb 100%)!important;border:3px solid #fff!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.12),0 10px 24px rgba(124,58,237,.08)!important}.profile-showcase-modal[hidden]{display:none!important}.profile-showcase-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}.profile-showcase-backdrop{position:absolute;inset:0;background:rgba(12,9,20,.52);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.profile-showcase-panel{position:relative;width:min(430px,94vw);height:min(650px,78vh);border-radius:26px;background:#0b0a12;display:grid;place-items:center;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.46)}.profile-showcase-panel img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block}.profile-showcase-close,.profile-showcase-prev,.profile-showcase-next{position:absolute;z-index:3;border:0;border-radius:50%;background:rgba(255,255,255,.88);color:#211b35;display:grid;place-items:center;font-weight:1000;box-shadow:0 8px 22px rgba(0,0,0,.18);cursor:pointer}.profile-showcase-close{top:12px;right:12px;width:36px;height:36px;font-size:24px}.profile-showcase-prev,.profile-showcase-next{top:50%;transform:translateY(-50%);width:42px;height:42px;font-size:28px}.profile-showcase-prev{left:12px}.profile-showcase-next{right:12px}.profile-story-upload-form{pointer-events:none}.profile-story-plus,.profile-story-plus *{pointer-events:auto}.profile-story-plus{z-index:5!important}
@media(max-width:420px){.profile-showcase-item{width:68px;height:68px}.profile-showcase-card{border-radius:20px;padding:10px}.profile-circle-grid{gap:10px!important}}

/* v98: softer organized showcase redesign + lighter post placeholders only */
.profile-showcase-card-v98{
  margin:12px 0 14px!important;
  padding:12px 10px 11px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfaff 100%)!important;
  border:1px solid rgba(124,58,237,.10)!important;
  box-shadow:0 10px 28px rgba(35,24,72,.055)!important;
  overflow:hidden!important;
}
.profile-showcase-title{
  direction:rtl!important;
  text-align:right!important;
  margin:0 4px 10px!important;
  color:#2d2740!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:1000!important;
}
.profile-showcase-card-v98 .profile-showcase-strip{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:3px 4px 9px!important;
  direction:rtl!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-snap-type:x proximity!important;
}
.profile-showcase-card-v98 .profile-showcase-upload{flex:0 0 auto!important;margin:0!important;display:block!important;order:-10!important}
.profile-showcase-card-v98 .profile-showcase-add,
.profile-showcase-card-v98 .profile-showcase-placeholder,
.profile-showcase-card-v98 .profile-showcase-item{
  flex:0 0 auto!important;
  width:70px!important;
  height:70px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  scroll-snap-align:start!important;
}
.profile-showcase-card-v98 .profile-showcase-add{
  position:relative!important;
  overflow:hidden!important;
  cursor:pointer!important;
  color:#9b8fbd!important;
  font-size:26px!important;
  font-weight:800!important;
  background:radial-gradient(circle at 50% 42%,#f7f6fb 0 28%,#eeebf5 29% 48%,#f7f5fb 49% 100%)!important;
  border:1px dashed rgba(124,58,237,.20)!important;
  box-shadow:inset 0 0 0 5px #fff,0 6px 16px rgba(35,24,72,.045)!important;
}
.profile-showcase-card-v98 .profile-showcase-item{
  border:1px solid rgba(124,58,237,.12)!important;
  background:#f4f1fb!important;
  box-shadow:inset 0 0 0 4px #fff,0 8px 18px rgba(35,24,72,.06)!important;
  overflow:hidden!important;
  cursor:pointer!important;
}
.profile-showcase-card-v98 .profile-showcase-item img{
  width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important;
}
.profile-showcase-card-v98 .profile-showcase-placeholder{
  background:radial-gradient(circle at 50% 43%,#ece9f4 0 25%,transparent 26%),linear-gradient(180deg,#f7f5fb,#f0edf7)!important;
  border:1px solid rgba(124,58,237,.075)!important;
  box-shadow:inset 0 0 0 5px #fff,0 6px 14px rgba(35,24,72,.035)!important;
  opacity:.74!important;
}
.profile-showcase-card-v98 .profile-showcase-placeholder i{
  width:22px!important;height:13px!important;border-radius:8px 8px 4px 4px!important;
  background:linear-gradient(135deg,#ded9ea,#eeeaf6)!important;
  position:relative!important;display:block!important;margin-top:16px!important;
}
.profile-showcase-card-v98 .profile-showcase-placeholder i:before{
  content:""!important;position:absolute!important;left:4px!important;top:-6px!important;width:9px!important;height:9px!important;border-radius:50%!important;background:#e6e1ef!important;
}
.profile-showcase-card-v98 .profile-showcase-head,
.profile-showcase-card-v98 .profile-showcase-empty{display:none!important}
.profile-circle-placeholder .profile-circle-media{
  background:radial-gradient(circle at 50% 40%,rgba(232,226,246,.55) 0 26%,transparent 27%),linear-gradient(180deg,rgba(246,244,251,.72),rgba(238,234,248,.68))!important;
  border:1px solid rgba(124,58,237,.045)!important;
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.82),0 5px 12px rgba(35,24,72,.025)!important;
  opacity:.44!important;
}
@media(max-width:420px){
  .profile-showcase-card-v98{border-radius:21px!important;padding:11px 8px 10px!important}
  .profile-showcase-card-v98 .profile-showcase-add,
  .profile-showcase-card-v98 .profile-showcase-placeholder,
  .profile-showcase-card-v98 .profile-showcase-item{width:64px!important;height:64px!important}
}

/* v99: stable story upload, full username, showcase meta, left-first posts, softer placeholders */
.profile-username-full{
  max-width:none!important;
  width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
  line-height:1.35!important;
}
.profile-showcase-card-v99{
  margin:12px 0 14px!important;
  padding:12px 10px 11px!important;
  border-radius:23px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(250,248,255,.92))!important;
  border:1px solid rgba(124,58,237,.12)!important;
  box-shadow:0 10px 28px rgba(47,31,91,.055)!important;
  overflow:hidden!important;
}
.profile-showcase-card-v99 .profile-showcase-title{font-size:13px!important;font-weight:1000!important;color:#302646!important;margin:0 4px 10px!important;text-align:right!important;direction:rtl!important}
html[lang="en"] .profile-showcase-card-v99 .profile-showcase-title{text-align:left!important;direction:ltr!important}
.profile-showcase-card-v99 .profile-showcase-strip{display:flex!important;align-items:flex-start!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 8px!important;direction:rtl!important;-webkit-overflow-scrolling:touch!important}
html[lang="en"] .profile-showcase-card-v99 .profile-showcase-strip{direction:ltr!important}
.profile-showcase-cell{flex:0 0 auto!important;width:74px!important;display:grid!important;justify-items:center!important;gap:5px!important}
.profile-showcase-card-v99 .profile-showcase-upload{flex:0 0 auto!important;order:-10!important;margin:0!important}
.profile-showcase-card-v99 .profile-showcase-add,.profile-showcase-card-v99 .profile-showcase-item,.profile-showcase-card-v99 .profile-showcase-placeholder{width:68px!important;height:68px!important;border-radius:50%!important}
.profile-showcase-card-v99 .profile-showcase-add{display:grid!important;place-items:center!important;background:linear-gradient(145deg,#f7f4ff,#eee9fb)!important;color:#9b8bbf!important;border:1px dashed rgba(124,58,237,.24)!important;box-shadow:inset 0 0 0 6px rgba(255,255,255,.55)!important;font-size:22px!important;font-weight:800!important}
.profile-showcase-card-v99 .profile-showcase-item{border:1px solid rgba(124,58,237,.16)!important;background:#f2eff8!important;box-shadow:0 6px 14px rgba(68,48,112,.065)!important;padding:0!important;overflow:hidden!important}
.profile-showcase-card-v99 .profile-showcase-item img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important}
.profile-showcase-card-v99 .profile-showcase-placeholder{display:grid!important;place-items:center!important;background:linear-gradient(145deg,#f8f7fb,#f0edf8)!important;border:1px solid rgba(124,58,237,.08)!important;box-shadow:inset 0 0 0 7px rgba(255,255,255,.55)!important;opacity:.8!important}
.profile-showcase-card-v99 .profile-showcase-placeholder i{width:20px!important;height:16px!important;border-radius:5px!important;border:1.5px solid #d8d1e8!important;position:relative!important;display:block!important}.profile-showcase-card-v99 .profile-showcase-placeholder i:before{content:'';position:absolute;right:3px;top:3px;width:4px;height:4px;border-radius:50%;background:#d8d1e8}
.profile-showcase-meta-form{display:grid!important;grid-template-columns:1fr 18px!important;gap:3px!important;width:74px!important;direction:rtl!important}.profile-showcase-meta-form input{grid-column:1/2!important;width:100%!important;height:18px!important;min-height:18px!important;padding:1px 5px!important;border-radius:7px!important;border:1px solid rgba(124,58,237,.12)!important;background:rgba(255,255,255,.84)!important;font:800 9.5px var(--app-font)!important;color:#40364f!important;text-align:center!important}.profile-showcase-meta-form button{grid-column:2/3!important;grid-row:1/3!important;width:18px!important;height:39px!important;border-radius:8px!important;border:0!important;background:#ede7ff!important;color:#7c3aed!important;font-size:10px!important;font-weight:1000!important;padding:0!important}.profile-showcase-mini-text{max-width:74px!important;text-align:center!important;display:grid!important;gap:1px!important}.profile-showcase-mini-text b,.profile-showcase-mini-text span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9.5px!important;line-height:1.25!important;color:#63577c!important}.profile-showcase-mini-text b{color:#392c55!important;font-weight:1000!important}
.profile-showcase-panel{background:#08070d!important}.profile-showcase-panel .profile-showcase-modal-caption{position:absolute!important;left:14px!important;right:14px!important;bottom:14px!important;z-index:4!important;border-radius:18px!important;padding:10px 12px!important;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.62))!important;color:#fff!important;text-shadow:0 1px 8px rgba(0,0,0,.5)!important;display:grid!important;gap:2px!important;direction:rtl!important}.profile-showcase-modal-caption:empty{display:none!important}.profile-showcase-modal-caption b{font-size:13px!important;font-weight:1000!important}.profile-showcase-modal-caption span{font-size:12px!important;font-weight:800!important;line-height:1.45!important}
.profile-circle-grid{direction:ltr!important}.profile-circle-grid .profile-circle-post{direction:rtl!important}.profile-circle-placeholder .profile-circle-media{background:radial-gradient(circle at 38% 30%,#fbf9ff 0,#f5f1fc 58%,#eee9f8 100%)!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.045),0 6px 16px rgba(124,58,237,.035)!important;opacity:.45!important}
.profile-story-upload-form.is-uploading .profile-story-plus{opacity:.7!important;pointer-events:none!important}.profile-story-upload-form.is-uploading .profile-story-plus:after{content:'…';position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.72);border-radius:50%;font-weight:1000;color:#7c3aed}
@media(max-width:420px){.profile-showcase-cell{width:68px!important}.profile-showcase-card-v99 .profile-showcase-add,.profile-showcase-card-v99 .profile-showcase-item,.profile-showcase-card-v99 .profile-showcase-placeholder{width:62px!important;height:62px!important}.profile-showcase-meta-form{width:68px!important}.profile-showcase-meta-form input{font-size:9px!important}}


/* v100: keep showcase add button reachable and make uploads feel lighter */
.profile-showcase-card-v99 .profile-showcase-strip{position:relative!important;padding-inline-start:2px!important;padding-inline-end:8px!important;scroll-padding-inline:12px!important}
.profile-showcase-card-v99 .profile-showcase-upload{position:sticky!important;inset-inline-start:0!important;z-index:8!important;background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(255,255,255,.45))!important;border-radius:999px!important;padding-inline-end:2px!important}
html[dir="rtl"] .profile-showcase-card-v99 .profile-showcase-upload,.rtl .profile-showcase-card-v99 .profile-showcase-upload{inset-inline-start:auto!important;inset-inline-end:0!important;background:linear-gradient(270deg,rgba(255,255,255,.94),rgba(255,255,255,.35))!important}
.profile-showcase-card-v99 .profile-showcase-add{cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:9!important}
.profile-showcase-card-v99 .profile-showcase-add input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;display:block!important}

/* v101: reliable showcase add button + lighter media placeholders */
.profile-showcase-card-v99{position:relative!important;padding-bottom:18px!important;overflow:visible!important}
.profile-showcase-card-v99 .profile-showcase-strip{padding-inline-end:56px!important;padding-inline-start:8px!important;scroll-padding-inline-end:70px!important;min-height:100px!important}
.profile-showcase-floating-upload{position:absolute!important;inset-inline-end:12px!important;top:42px!important;z-index:20!important;margin:0!important;display:block!important;background:rgba(255,255,255,.82)!important;border-radius:999px!important;box-shadow:0 6px 18px rgba(80,58,130,.08)!important}
html[lang="en"] .profile-showcase-floating-upload{inset-inline-end:12px!important;inset-inline-start:auto!important}
.profile-showcase-card-v99 .profile-showcase-floating-upload .profile-showcase-add{width:52px!important;height:52px!important;border-radius:50%!important;display:grid!important;place-items:center!important;cursor:pointer!important;position:relative!important;overflow:hidden!important;background:linear-gradient(145deg,#faf9fc,#f1eef8)!important;color:#8f82ae!important;border:1px dashed rgba(124,58,237,.25)!important;box-shadow:inset 0 0 0 6px rgba(255,255,255,.6),0 5px 14px rgba(82,62,120,.08)!important;font-size:22px!important;font-weight:800!important;line-height:1!important}
.profile-showcase-card-v99 .profile-showcase-floating-upload input[type="file"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;display:block!important;z-index:4!important}
.profile-showcase-card-v99 .profile-showcase-placeholder{opacity:.42!important;background:linear-gradient(145deg,#fbfafc,#f5f2fa)!important;border-color:rgba(124,58,237,.055)!important;box-shadow:inset 0 0 0 7px rgba(255,255,255,.72)!important}
.profile-circle-placeholder .profile-circle-media{opacity:.38!important;background:radial-gradient(circle at 35% 30%,#fbf9ff 0,#f5f1fc 55%,#eee9f8 100%)!important;box-shadow:inset 0 0 0 1px rgba(124,58,237,.05)!important}
@media(max-width:420px){.profile-showcase-floating-upload{top:40px!important;inset-inline-end:9px!important}.profile-showcase-card-v99 .profile-showcase-floating-upload .profile-showcase-add{width:48px!important;height:48px!important}.profile-showcase-card-v99 .profile-showcase-strip{padding-inline-end:54px!important}}


/* v102: move showcase add button to the top corner and stop it from taking extra space */
.profile-showcase-card-v99{position:relative!important;padding-bottom:10px!important;overflow:hidden!important}
.profile-showcase-card-v99 .profile-showcase-strip{padding-inline-end:8px!important;padding-inline-start:8px!important;scroll-padding-inline-end:12px!important;min-height:92px!important}
.profile-showcase-floating-upload{position:absolute!important;top:10px!important;inset-inline-end:12px!important;z-index:30!important;margin:0!important;background:transparent!important;box-shadow:none!important;border-radius:999px!important;width:32px!important;height:32px!important;padding:0!important;display:block!important}
html[lang="en"] .profile-showcase-floating-upload{inset-inline-end:12px!important;inset-inline-start:auto!important}
.profile-showcase-card-v99 .profile-showcase-floating-upload .profile-showcase-add{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:50%!important;background:linear-gradient(145deg,#8b5cf6,#6d28d9)!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 8px 20px rgba(109,40,217,.26)!important;font-size:20px!important;font-weight:900!important;line-height:1!important;display:grid!important;place-items:center!important;cursor:pointer!important;position:relative!important;overflow:hidden!important}
.profile-showcase-card-v99 .profile-showcase-floating-upload input[type="file"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;display:block!important;z-index:5!important}
.profile-showcase-card-v99 .profile-showcase-title{padding-inline-end:42px!important}
html[lang="en"] .profile-showcase-card-v99 .profile-showcase-title{padding-inline-end:42px!important;padding-inline-start:0!important}

/* v103: story upload progress text + compact showcase corner plus */
.profile-story-upload-form.is-uploading .profile-story-plus{width:58px!important;border-radius:999px!important;font-size:0!important;right:-16px!important;bottom:-2px!important}
.profile-story-upload-form.is-uploading .profile-story-plus:after{content:attr(data-uploading-text)!important;font-size:9px!important;line-height:1!important;white-space:nowrap;padding:0 4px!important;color:#6d28d9!important;background:rgba(255,255,255,.9)!important}
.profile-showcase-card-v99 .profile-showcase-floating-upload{top:8px!important;inset-inline-end:10px!important;width:30px!important;height:30px!important}
.profile-showcase-card-v99 .profile-showcase-floating-upload .profile-showcase-add{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:19px!important}

/* v104: story feature removed; profile action row kept as simple icons */
.profile-story-plus,.profile-story-upload-form,.profile-story-modal,.profile-story-viewers,.profile-story-viewers-btn{display:none!important}
.profile-icon-actions{display:flex;justify-content:center;gap:10px;margin:-2px 0 12px;direction:ltr}
.cchat-profile-cta{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:8px 12px 10px!important;padding:11px 14px!important;border-radius:18px!important;background:linear-gradient(135deg,#7c3aed,#a855f7)!important;color:#fff!important;font-weight:1000!important;font-size:13px!important;box-shadow:0 12px 28px rgba(124,58,237,.26)!important;text-decoration:none!important}
.cchat-profile-cta svg{width:18px!important;height:18px!important;stroke:#fff!important}
.required-star{color:#ef4444;font-weight:1000;margin-inline-start:3px}
.form-field label .required-star{vertical-align:middle}
.job-suggest-wrap{position:relative}
.job-suggest-box{display:none;position:absolute;z-index:50;left:0;right:0;top:calc(100% + 6px);max-height:220px;overflow:auto;background:#fff;border:1px solid rgba(124,58,237,.16);border-radius:16px;box-shadow:0 18px 44px rgba(40,25,80,.16);padding:6px}
.job-suggest-box.is-open{display:block}
.job-suggest-box button{width:100%;border:0;background:transparent;text-align:start;padding:9px 10px;border-radius:12px;font:800 12px var(--app-font);color:#29213c;cursor:pointer}
.job-suggest-box button:hover,.job-suggest-box button.is-active{background:#f3edff;color:#6d28d9}

/* v105 profile guide + admin guide media */
.profile-guide-icon{color:#6d28d9!important;background:linear-gradient(135deg,#faf5ff,#ede9fe)!important;border-color:rgba(109,40,217,.25)!important}
.profile-guide-modal[hidden]{display:none!important}.profile-guide-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px}.profile-guide-backdrop{position:absolute;inset:0;background:rgba(18,10,31,.45);backdrop-filter:blur(8px)}.profile-guide-panel{position:relative;width:min(94vw,420px);max-height:84vh;border-radius:28px;background:#fff;box-shadow:0 28px 80px rgba(28,18,48,.30);overflow:hidden}.profile-guide-close{position:absolute;z-index:3;top:10px;left:10px;width:36px;height:36px;border:0;border-radius:999px;background:rgba(255,255,255,.9);font:900 22px/1 var(--app-font);color:#6d28d9;box-shadow:0 8px 24px rgba(0,0,0,.12)}.profile-guide-scroller{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;direction:ltr}.profile-guide-slide{min-width:100%;height:min(74vh,640px);display:grid;place-items:center;scroll-snap-align:center;background:#08040f}.profile-guide-slide img,.profile-guide-slide video{max-width:100%;max-height:100%;object-fit:contain}.guide-modal-open{overflow:hidden}.guide-admin-list{max-height:280px;overflow:auto}.guide-admin-item{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:10px;padding:8px;border:1px solid rgba(124,58,237,.10);border-radius:14px;margin-top:8px;background:#fff}.guide-admin-item img,.guide-admin-item video{width:58px;height:58px;border-radius:12px;object-fit:cover;background:#eee}.guide-admin-item span{font-size:12px;font-weight:800}.guide-admin-item em{font-style:normal;font-size:11px;color:#ef4444}.profile-icon-actions.public-guide-actions{display:flex;justify-content:flex-end;margin-bottom:8px}

/* v106: always-visible profile guide icon */
.profile-guide-empty{background:linear-gradient(135deg,#faf5ff,#f3e8ff)!important;color:#6d28d9!important;font-weight:900;text-align:center;padding:28px;line-height:1.9}
.profile-icon-actions .profile-guide-icon{display:inline-grid!important;place-items:center!important}


/* v107: compact target filter dropdown with fixed apply button */
.target-service-pro .pretty-panel{position:absolute!important;top:52px!important;right:0!important;left:0!important;bottom:auto!important;max-height:none!important;height:auto!important;padding:8px 8px 54px!important;overflow:hidden!important;border-radius:16px!important;z-index:650!important;}
.target-service-pro .pretty-options{max-height:190px!important;overflow:auto!important;padding-bottom:4px!important;overscroll-behavior:contain!important;}
.target-service-pro .pretty-done{position:absolute!important;right:8px!important;left:8px!important;bottom:8px!important;height:38px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#8b5cf6,#6d28d9)!important;color:#fff!important;font-weight:950!important;box-shadow:0 10px 22px rgba(124,58,237,.22)!important;}
@media(max-width:760px){.target-service-pro .pretty-panel{position:absolute!important;right:0!important;left:0!important;top:50px!important;bottom:auto!important;max-height:none!important;width:auto!important}.target-service-pro .pretty-options{max-height:170px!important}}
/* v107: content upload preview/loading */
.clip-edit-card{border:1px solid #eadfff;background:#fbf8ff;border-radius:18px;padding:12px;display:grid;gap:9px}.clip-edit-card[hidden]{display:none!important}.clip-edit-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.clip-edit-head b{color:#4c1d95}.clip-edit-head span{font-size:12px;color:#6b7280}.clip-edit-card video{width:100%;max-height:330px;border-radius:16px;background:#000}.upload-busy{position:fixed;inset:0;z-index:9999;background:rgba(255,255,255,.72);backdrop-filter:blur(8px);display:grid;place-items:center}.upload-busy[hidden]{display:none!important}.upload-busy>div{min-width:230px;border:1px solid #eadfff;border-radius:22px;background:#fff;box-shadow:0 24px 80px rgba(76,29,149,.18);padding:20px;text-align:center;display:grid;gap:8px}.upload-busy span{width:38px;height:38px;margin:auto;border-radius:50%;border:4px solid #ede9fe;border-top-color:#7c3aed;animation:spin .85s linear infinite}.upload-busy b{color:#4c1d95}.upload-busy small{color:#6b7280}.btn.is-loading{opacity:.72;pointer-events:none}@keyframes spin{to{transform:rotate(360deg)}}

/* v108: review viewed sparkle + admin escalation + free hall polish */
.review-seen-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.review-eye-indicator{width:36px;height:36px;border-radius:999px;display:inline-grid;place-items:center;color:#a78bfa;background:rgba(167,139,250,.10);border:1px solid rgba(167,139,250,.18);transition:.2s}.review-eye-indicator svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.review-eye-indicator.is-seen{color:#7c3aed;background:linear-gradient(135deg,#f5f3ff,#ede9fe);box-shadow:0 0 0 3px rgba(124,58,237,.10)}.review-eye-indicator.is-sparkling{animation:reviewEyeSparkle 1.1s ease}@keyframes reviewEyeSparkle{0%,100%{transform:scale(1);filter:brightness(1)}35%{transform:scale(1.18);filter:brightness(1.55);box-shadow:0 0 0 6px rgba(124,58,237,.12),0 0 22px rgba(124,58,237,.45)}70%{transform:scale(.96)}}.free-hall-note{font-size:12px;font-weight:800;color:#7c3aed}.admin-escalation-list{display:grid;gap:12px}.admin-escalation-item{display:grid;grid-template-columns:140px 1fr;gap:14px;padding:12px;border:1px solid rgba(124,58,237,.12);border-radius:18px;background:#fff}.admin-escalation-media img,.admin-escalation-media video{width:140px;height:140px;object-fit:cover;border-radius:16px;background:#111}.admin-escalation-body{display:grid;gap:8px}.admin-escalation-body small{color:#6b7280}.admin-escalation-actions{display:grid;gap:8px}.admin-escalation-actions form{display:flex;gap:8px;flex-wrap:wrap}.admin-escalation-actions input{max-width:110px;border:1px solid rgba(124,58,237,.18);border-radius:12px;padding:8px}.danger-btn{background:#ef4444!important;color:#fff!important;border-color:#ef4444!important}@media(max-width:640px){.admin-escalation-item{grid-template-columns:1fr}.admin-escalation-media img,.admin-escalation-media video{width:100%;height:220px}}

/* v109: fixed headers and safe chat header action placement. Keep existing layout; only prevent overlap. */
.ds-topbar{
  position:sticky!important;
  top:0!important;
  z-index:950!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header,
.cchat-active-page .cchat-chat-header{
  position:sticky!important;
  top:0!important;
  z-index:960!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-back,
.cchat-active-page .cchat-chat-header .cchat-back{
  position:absolute!important;
  inset-inline-start:auto!important;
  inset-inline-end:10px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:70!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-chat-header .cchat-header-actions{
  position:absolute!important;
  inset-inline-start:10px!important;
  inset-inline-end:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:60!important;
  max-width:104px!important;
  overflow:visible!important;
}
.cchat-panel.cchat-conversation .cchat-chat-header .cchat-delete-room-btn,
.cchat-active-page .cchat-chat-header .cchat-delete-room-btn{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
}
@media(max-width:520px){
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-back,
  .cchat-active-page .cchat-chat-header .cchat-back{inset-inline-end:7px!important;}
  .cchat-panel.cchat-conversation .cchat-chat-header .cchat-header-actions,
  .cchat-active-page .cchat-chat-header .cchat-header-actions{inset-inline-start:7px!important;max-width:78px!important;}
}

/* v111 requested fixes: fixed main header + separated chat back/delete buttons */
.app-shell{
  padding-top:88px!important;
  overflow:visible!important;
}
.ds-topbar{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(100%,560px)!important;
  z-index:1000!important;
}
.app-shell:before{z-index:0!important}.container{z-index:1!important}
@media(min-width:1000px){.ds-topbar{top:22px!important;border-radius:42px 42px 0 0!important}}
.container.cchat-page.cchat-active-page{padding-top:0!important;z-index:1200!important}
.cchat-active-page .cchat-chat-header{
  display:grid!important;
  grid-template-columns:42px 46px minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:8px!important;
  position:sticky!important;
  top:0!important;
  z-index:35!important;
}
.cchat-active-page .cchat-back{
  grid-column:1!important;
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  margin:0!important;
}
.cchat-active-page .cchat-peer-avatar{grid-column:2!important;position:relative!important;inset:auto!important;margin:0!important}
.cchat-active-page .cchat-peer-title{grid-column:3!important;min-width:0!important}
.cchat-active-page .cchat-header-actions{
  grid-column:4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  position:relative!important;
  inset:auto!important;
  min-width:max-content!important;
  z-index:3!important;
}
.cchat-active-page .cchat-delete-room-btn,
.cchat-active-page .cchat-header-actions button{
  position:relative!important;
  inset:auto!important;
  margin:0!important;
  flex:0 0 auto!important;
}
@media(max-width:760px){
  .cchat-active-page .cchat-chat-header{grid-template-columns:36px 40px minmax(0,1fr) max-content!important;gap:7px!important;padding:7px 8px!important}
  .cchat-active-page .cchat-header-actions button{width:30px!important;height:30px!important}
}


/* v112: owner-only showcase delete control + chat/share polish */
.profile-showcase-image-wrap{position:relative!important;width:68px!important;height:68px!important;display:block!important}
.profile-showcase-image-wrap .profile-showcase-item{width:68px!important;height:68px!important}
.profile-showcase-delete-form{position:absolute!important;top:-6px!important;inset-inline-end:-6px!important;z-index:6!important;margin:0!important;padding:0!important}
.profile-showcase-delete-form button{width:22px!important;height:22px!important;border-radius:50%!important;border:2px solid #fff!important;background:rgba(239,68,68,.96)!important;color:#fff!important;display:grid!important;place-items:center!important;font:900 17px/1 var(--app-font)!important;box-shadow:0 5px 14px rgba(239,68,68,.28)!important;cursor:pointer!important;padding:0!important}
.profile-showcase-delete-form button:active{transform:scale(.94)!important}
@media(max-width:420px){.profile-showcase-image-wrap,.profile-showcase-image-wrap .profile-showcase-item{width:62px!important;height:62px!important}.profile-showcase-delete-form button{width:21px!important;height:21px!important}}

/* v113: home search suggestions + final non-overlapping chat headers */
.home-search{position:relative!important;align-items:start!important}
.home-search-field{position:relative!important;min-width:0!important;width:100%!important}
.home-search-field>input{width:100%!important}
.home-suggest-box{position:absolute!important;top:calc(100% + 6px)!important;left:0!important;right:0!important;z-index:1300!important;background:#fff!important;border:1px solid rgba(124,58,237,.16)!important;border-radius:16px!important;box-shadow:0 18px 45px rgba(15,23,42,.14)!important;overflow:hidden!important;max-height:230px!important;overflow-y:auto!important;padding:6px!important}
.home-suggest-box[hidden]{display:none!important}
.home-suggest-item{width:100%!important;border:0!important;background:transparent!important;text-align:start!important;padding:10px 11px!important;border-radius:12px!important;font:800 12.5px/1.4 var(--app-font)!important;color:#312e81!important;cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.home-suggest-item:hover,.home-suggest-item:focus{background:linear-gradient(135deg,#f5f3ff,#eef2ff)!important;outline:0!important}.home-suggest-item small{font-weight:800!important;color:#8b5cf6!important;white-space:nowrap!important}

.container.cchat-page.cchat-active-page .cchat-panel.cchat-conversation>.cchat-chat-header,
.container.cchat-page.cchat-active-page .cchat-chat-header{
  position:sticky!important;top:0!important;z-index:1200!important;
  display:grid!important;grid-template-columns:42px 46px minmax(0,1fr) auto!important;
  gap:8px!important;align-items:center!important;direction:ltr!important;
  padding:8px 10px!important;min-height:58px!important;overflow:visible!important;
}
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-back{
  grid-column:1!important;position:static!important;inset:auto!important;transform:none!important;
  width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;margin:0!important;z-index:2!important;
}
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-peer-avatar,
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-peer-avatar-link,
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-group-avatar-v76{
  grid-column:2!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;z-index:1!important;
}
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-peer-title{
  grid-column:3!important;direction:rtl!important;min-width:0!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;
}
body.ltr .container.cchat-page.cchat-active-page .cchat-chat-header .cchat-peer-title{direction:ltr!important}
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-header-actions{
  grid-column:4!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;
  gap:7px!important;min-width:max-content!important;max-width:none!important;width:auto!important;overflow:visible!important;z-index:3!important;direction:ltr!important;
}
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-header-actions button,
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-header-actions .cchat-icon-action,
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-delete-room-btn,
.container.cchat-page.cchat-active-page .cchat-chat-header .cchat-settings-room-btn{
  position:static!important;inset:auto!important;transform:none!important;margin:0!important;flex:0 0 auto!important;
  width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;display:grid!important;place-items:center!important;
}
@media(max-width:520px){
  .container.cchat-page.cchat-active-page .cchat-panel.cchat-conversation>.cchat-chat-header,
  .container.cchat-page.cchat-active-page .cchat-chat-header{grid-template-columns:36px 40px minmax(0,1fr) auto!important;gap:6px!important;padding:7px 8px!important;min-height:54px!important}
  .container.cchat-page.cchat-active-page .cchat-chat-header .cchat-back{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important}
  .container.cchat-page.cchat-active-page .cchat-chat-header .cchat-header-actions button,
  .container.cchat-page.cchat-active-page .cchat-chat-header .cchat-header-actions .cchat-icon-action,
  .container.cchat-page.cchat-active-page .cchat-chat-header .cchat-delete-room-btn,
  .container.cchat-page.cchat-active-page .cchat-chat-header .cchat-settings-room-btn{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important}
}

/* v114: requested-only polish for chat room header + home search suggestions. */
.cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  grid-template-columns:40px 46px minmax(0,1fr) max-content!important;
  gap:9px!important;
  padding:8px 10px!important;
  border-bottom:1px solid rgba(124,58,237,.12)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 8px 24px rgba(31,24,51,.06)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  overflow:hidden!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{
  background:#f4efff!important;
  color:#6d28d9!important;
  box-shadow:0 5px 14px rgba(109,40,217,.10)!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  box-shadow:0 0 0 3px #fff,0 9px 22px rgba(124,58,237,.16)!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title{
  text-align:right!important;
  direction:rtl!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong{
  font-size:14.5px!important;
  color:#221b34!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title small{
  direction:rtl!important;
  text-align:right!important;
  color:#8a8198!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions{
  direction:ltr!important;
  gap:6px!important;
  justify-content:flex-end!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{
  background:#f7f2ff!important;
  color:#6d28d9!important;
  box-shadow:0 5px 14px rgba(109,40,217,.08)!important;
}
@media(max-width:760px){
  .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    grid-template-columns:36px 42px minmax(0,1fr) max-content!important;
    gap:7px!important;
    padding:8px!important;
  }
}
.home-suggest-box{
  padding:7px!important;
  border-radius:18px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.home-suggest-item{
  min-height:48px!important;
  padding:7px 8px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:9px!important;
  text-align:right!important;
  direction:rtl!important;
}
.home-suggest-avatar{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#ede9fe,#f5f3ff)!important;
  color:#6d28d9!important;
  font-size:13px!important;
  font-weight:1000!important;
  box-shadow:0 0 0 2px #fff,0 5px 14px rgba(109,40,217,.12)!important;
}
.home-suggest-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.home-suggest-copy{
  min-width:0!important;
  display:grid!important;
  gap:2px!important;
  overflow:hidden!important;
}
.home-suggest-copy b{
  min-width:0!important;
  max-width:100%!important;
  color:#30233f!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  font-weight:900!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.home-suggest-copy small{
  justify-self:start!important;
  color:#8b5cf6!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

/* v115: locked fixes requested only - clean chat header + full-width home search suggestions */
.cchat-panel.cchat-conversation > .cchat-profile-cta,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-profile-cta{
  display:none!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
  position:sticky!important;
  top:0!important;
  z-index:1600!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) max-content!important;
  align-items:center!important;
  column-gap:8px!important;
  height:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  direction:ltr!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid rgba(124,58,237,.12)!important;
  box-shadow:0 10px 24px rgba(45,18,88,.08)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{
  grid-column:1!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:#f5f0ff!important;
  color:#6d28d9!important;
  font-size:28px!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 6px 16px rgba(109,40,217,.10)!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main{
  grid-column:2!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  display:flex!important;
  flex-direction:row-reverse!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  overflow:hidden!important;
  direction:rtl!important;
  text-align:right!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions{
  grid-column:3!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  min-width:max-content!important;
  width:auto!important;
  max-width:none!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  overflow:visible!important;
  direction:ltr!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-group-avatar-v76,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar-link,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-group-avatar-v76{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  flex:0 0 46px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#7c3aed,#d946ef)!important;
  color:#fff!important;
  box-shadow:0 0 0 3px #fff,0 9px 20px rgba(124,58,237,.18)!important;
  z-index:2!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar img,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar-link img,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-group-avatar-v76 img{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  object-fit:cover!important;
  display:block!important;
  border-radius:inherit!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-title,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-title{
  min-width:0!important;
  max-width:100%!important;
  display:grid!important;
  gap:3px!important;
  align-items:center!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  text-align:right!important;
  direction:rtl!important;
  overflow:hidden!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-title strong{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:950!important;
  color:#20132f!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-status,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-status small{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#8a8198!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger{
  max-width:100%!important;
  min-width:0!important;
  height:24px!important;
  padding:2px 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  border-radius:999px!important;
  background:#f5f0ff!important;
  color:#6d28d9!important;
  overflow:hidden!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger em{
  max-width:86px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-style:normal!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:#f7f2ff!important;
  color:#6d28d9!important;
  border:0!important;
  box-shadow:0 6px 16px rgba(109,40,217,.10)!important;
}
@media(max-width:520px){
  .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
    grid-template-columns:40px minmax(0,1fr) max-content!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    padding:7px 8px!important;
    column-gap:6px!important;
  }
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main{gap:7px!important;justify-content:center!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-avatar-link,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-group-avatar-v76{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex-basis:42px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions{gap:5px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main .cchat-peer-title strong{font-size:14px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-members-trigger em{max-width:70px!important;}
}

.home-search .home-suggest-box{
  min-width:min(360px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
}
.home-suggest-item{
  grid-template-columns:38px minmax(0,1fr)!important;
  min-height:54px!important;
  gap:10px!important;
}
.home-suggest-avatar{width:38px!important;height:38px!important;min-width:38px!important;}
.home-suggest-copy b{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  font-size:13px!important;
  line-height:1.45!important;
  word-break:break-word!important;
}
@media(max-width:760px){
  .home-search{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    align-items:stretch!important;
    overflow:visible!important;
  }
  .home-search-field,
  .home-search-field > input{width:100%!important;min-width:0!important;}
  .home-search .home-suggest-box{
    left:0!important;
    right:0!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    max-height:280px!important;
  }
  .home-suggest-copy small{justify-self:start!important;}
}

/* v120: Android-safe chat header, group create search, profile buttons, immediate badge polish */
html, body{max-width:100%;overflow-x:hidden!important;}
.cchat-action-pop,.cchat-action-pop[open],.cchat-action-pop summary,.cchat-group-form,.cchat-create-scroll{max-width:100%!important;box-sizing:border-box!important;}
.cchat-quick-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important;max-width:100%!important;overflow:visible!important;}
.cchat-rect-action{width:100%!important;min-width:0!important;padding:0 10px!important;box-sizing:border-box!important;}
.cchat-rect-action b{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:1.25!important;font-size:12px!important;word-break:normal!important;}
html[lang="en"] .cchat-rect-action b, body:lang(en) .cchat-rect-action b{font-size:11px!important;line-height:1.18!important;}
.cchat-color-picker{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;display:flex!important;flex-wrap:nowrap!important;gap:7px!important;padding:8px 4px!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;}
.cchat-color-picker label{flex:0 0 auto!important;}
.cchat-group-member-search{margin:8px 0!important;}
.cchat-group-member-search input{width:100%!important;min-height:38px!important;}
.cchat-group-members label[hidden]{display:none!important;}
.cchat-user-strip{display:flex!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 8px!important;-webkit-overflow-scrolling:touch!important;}
.cchat-user-chip-wrap{flex:0 0 94px!important;max-width:98px!important;display:grid!important;justify-items:center!important;gap:5px!important;text-align:center!important;}
.cchat-user-chip-wrap[hidden]{display:none!important;}
.cchat-user-start{width:100%!important;display:grid!important;justify-items:center!important;gap:4px!important;color:var(--ink)!important;text-decoration:none!important;min-width:0!important;}
.cchat-user-start b,.cchat-user-start small{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.cchat-user-profile-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:26px!important;padding:4px 6px!important;border-radius:999px!important;background:#f6f2ff!important;color:var(--primary)!important;border:1px solid #eadfff!important;font-size:10px!important;font-weight:1000!important;text-decoration:none!important;line-height:1.15!important;box-sizing:border-box!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
.cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{
  direction:rtl!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-areas:"back main actions"!important;height:64px!important;min-height:64px!important;max-height:64px!important;gap:8px!important;padding:8px 10px!important;align-items:center!important;overflow:hidden!important;position:sticky!important;top:0!important;background:#fff!important;z-index:300!important;
}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-back{grid-area:back!important;justify-self:center!important;align-self:center!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main{grid-area:main!important;display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;justify-content:center!important;min-width:0!important;max-width:100%!important;height:auto!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{justify-self:center!important;align-self:center!important;grid-column:1!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title{grid-column:2!important;min-width:0!important;max-width:100%!important;text-align:start!important;}
.cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions,
.cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:max-content!important;}
.cchat-header-actions .cchat-settings-room-btn{order:1!important}.cchat-header-actions .cchat-delete-room-btn{order:2!important}.cchat-header-actions [data-block-room]{order:3!important}
.cchat-header-member-stack{display:flex!important;align-items:center!important;gap:0!important;margin-top:2px!important;height:18px!important;overflow:hidden!important;direction:ltr!important;}
.cchat-header-member-stack button{width:18px!important;height:18px!important;min-width:18px!important;border-radius:50%!important;border:2px solid #fff!important;margin-left:-5px!important;padding:0!important;display:grid!important;place-items:center!important;overflow:hidden!important;background:#eee7ff!important;color:var(--primary)!important;font-size:8px!important;font-weight:1000!important;box-shadow:0 2px 8px rgba(24,18,43,.10)!important;}
.cchat-header-member-stack button:first-child{margin-left:0!important;}
.cchat-header-member-stack button.is-active{width:23px!important;height:23px!important;min-width:23px!important;z-index:3!important;box-shadow:0 0 0 2px #d9f99d,0 3px 10px rgba(22,163,74,.18)!important;}
.cchat-header-member-stack img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important;}
@media(max-width:760px){
  .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header,
  .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header,
  .cchat-active-page .cchat-panel.cchat-conversation > .cchat-chat-header.is-group-chat-header{height:60px!important;min-height:60px!important;max-height:60px!important;grid-template-columns:36px minmax(0,1fr) auto!important;gap:6px!important;padding:7px 8px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-main{grid-template-columns:42px minmax(0,1fr)!important;gap:6px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-avatar-link,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-group-avatar-v76{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions button,
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-header-actions .cchat-icon-action{width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;}
  .cchat-panel.cchat-conversation > .cchat-chat-header .cchat-peer-title strong{font-size:12.8px!important;}
  .cchat-members-trigger em{display:none!important;}
}

/* v121 premium purple chat header redesign based on target mockup */
.cchat-conversation{background:#fbf8ff!important;}
.cchat-chat-header.cchat-premium-header{
  position:sticky!important;top:0!important;z-index:220!important;
  min-height:132px!important;height:132px!important;
  display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;gap:12px!important;
  padding:24px 18px 22px!important;
  border:0!important;border-bottom:0!important;
  border-radius:0 0 30px 30px!important;
  overflow:hidden!important;
  color:#fff!important;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,255,255,.18),transparent 32%),
    radial-gradient(circle at 8% 18%,rgba(255,255,255,.12),transparent 28%),
    linear-gradient(135deg,#4b008f 0%,#6d16ca 45%,#4f05a9 100%)!important;
  box-shadow:0 16px 34px rgba(91,24,171,.28),0 3px 0 rgba(255,255,255,.2) inset!important;
}
.cchat-chat-header.cchat-premium-header:before,
.cchat-chat-header.cchat-premium-header:after{content:"";position:absolute;pointer-events:none;inset:auto -10% -18% -10%;height:92px;border-radius:50%;background:rgba(255,255,255,.08);transform:rotate(-4deg)}
.cchat-chat-header.cchat-premium-header:after{inset:18% -18% auto -20%;height:100px;background:rgba(255,255,255,.055);transform:rotate(6deg)}
.cchat-premium-back{position:relative!important;z-index:2!important;width:46px!important;height:46px!important;border-radius:18px!important;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important;font-size:38px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 12px 22px rgba(28,0,70,.18)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;}
.cchat-premium-identity{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important;direction:rtl!important;}
.cchat-premium-avatar{position:relative!important;display:block!important;width:68px!important;height:68px!important;min-width:68px!important;border-radius:50%!important;border:3px solid rgba(255,255,255,.88)!important;background:rgba(255,255,255,.16)!important;box-shadow:0 14px 28px rgba(21,0,64,.26),0 0 0 4px rgba(255,255,255,.08)!important;overflow:visible!important;color:#fff!important;}
.cchat-premium-avatar .main-avatar{width:100%!important;height:100%!important;border-radius:50%!important;display:grid!important;place-items:center!important;object-fit:cover!important;overflow:hidden!important;background:linear-gradient(135deg,#7c3aed,#a78bfa)!important;font-weight:1000!important;font-size:24px!important;}
.cchat-premium-avatar .mini-avatar{position:absolute!important;width:28px!important;height:28px!important;border-radius:50%!important;border:2px solid #fff!important;background:linear-gradient(135deg,#8b5cf6,#ec4899)!important;display:grid!important;place-items:center!important;overflow:hidden!important;color:#fff!important;font-style:normal!important;font-size:10px!important;font-weight:1000!important;box-shadow:0 7px 14px rgba(31,0,68,.24)!important;}
.cchat-premium-avatar .mini-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;}
.cchat-premium-avatar .mini-1{right:-8px!important;bottom:4px!important;}
.cchat-premium-avatar .mini-2{right:15px!important;bottom:-9px!important;}
.cchat-premium-titlebox{min-width:0!important;color:#fff!important;text-align:right!important;display:grid!important;gap:3px!important;}
.cchat-premium-titlebox strong{font-size:22px!important;line-height:1.25!important;font-weight:1000!important;color:#fff!important;text-shadow:0 2px 10px rgba(32,0,80,.18)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important;}
.cchat-premium-titlebox small{font-size:13px!important;line-height:1.35!important;color:rgba(255,255,255,.9)!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;direction:rtl!important;}
.cchat-premium-titlebox .cchat-status-dot{display:inline-block!important;width:9px!important;height:9px!important;border-radius:50%!important;background:#31e66a!important;margin:0 6px!important;box-shadow:0 0 0 4px rgba(49,230,106,.13)!important;vertical-align:middle!important;}
.cchat-premium-actions{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;gap:4px!important;padding:6px!important;border-radius:28px!important;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.045),0 12px 26px rgba(34,0,86,.18)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;direction:ltr!important;}
.cchat-premium-icon,.cchat-premium-actions a.cchat-premium-icon{width:39px!important;height:39px!important;min-width:39px!important;border:0!important;border-radius:18px!important;background:transparent!important;color:#fff!important;display:grid!important;place-items:center!important;font:900 20px/1 var(--app-font)!important;text-decoration:none!important;cursor:pointer!important;box-shadow:none!important;padding:0!important;}
.cchat-premium-icon:hover,.cchat-premium-actions a.cchat-premium-icon:hover{background:rgba(255,255,255,.13)!important;}
.cchat-premium-actions .cchat-delete-room-btn{font-size:25px!important;}
.cchat-premium-actions .cchat-settings-room-btn{font-size:18px!important;}
.cchat-profile-cta{margin:10px 14px 0!important;border-radius:22px!important;background:#fff!important;border:1px solid rgba(124,58,237,.12)!important;box-shadow:0 12px 28px rgba(52,27,93,.07)!important;}
.cchat-pinned-message{margin:14px 16px 0!important;border-radius:22px!important;border:1px solid rgba(124,58,237,.12)!important;background:rgba(255,255,255,.92)!important;box-shadow:0 10px 24px rgba(52,27,93,.07)!important;color:#2f2940!important;display:flex!important;align-items:center!important;gap:10px!important;padding:13px 14px!important;}
.cchat-pinned-message b{color:#6d28d9!important;font-size:13px!important;white-space:nowrap!important;}
.cchat-pinned-message span{font-size:13px!important;font-weight:850!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.cchat-pinned-message form{margin-inline-start:auto!important;}
.cchat-messages{background:
  radial-gradient(circle at 20% 22%,rgba(124,58,237,.035),transparent 22%),
  radial-gradient(circle at 78% 70%,rgba(167,139,250,.045),transparent 26%),
  linear-gradient(180deg,#fff 0%,#fbf8ff 100%)!important;
}
.cchat-messages:before{content:"✈︎  ◇  🧭  ⛰  ⛺  ☼  ◌  📷";position:absolute;inset:170px 18px auto 18px;opacity:.035;color:#4c1d95;font-size:48px;letter-spacing:34px;line-height:2.3;pointer-events:none;white-space:normal;}
.cchat-bubble{border-radius:24px!important;background:#fff!important;box-shadow:0 10px 28px rgba(44,32,82,.08)!important;border-color:rgba(124,58,237,.08)!important;}
.cchat-message.mine .cchat-bubble{background:linear-gradient(135deg,#fbf7ff,#f1e8ff)!important;border-color:#e7d8ff!important;}
.cchat-compose{border-radius:30px 30px 0 0!important;margin:0!important;background:rgba(255,255,255,.96)!important;box-shadow:0 -10px 28px rgba(58,32,105,.09)!important;border-top:1px solid rgba(124,58,237,.1)!important;}
.cchat-attach,.cchat-emoji-btn,.cchat-send{box-shadow:0 9px 18px rgba(124,58,237,.14)!important;}
.cchat-compose textarea{background:#fff!important;border-color:#e9e1f7!important;box-shadow:inset 0 1px 4px rgba(31,24,51,.04)!important;}
@media(max-width:760px){
  .cchat-chat-header.cchat-premium-header{height:124px!important;min-height:124px!important;grid-template-columns:42px minmax(0,1fr) auto!important;padding:22px 14px 19px!important;border-radius:0 0 26px 26px!important;gap:9px!important;}
  .cchat-premium-back{width:42px!important;height:42px!important;border-radius:16px!important;font-size:34px!important;}
  .cchat-premium-avatar{width:60px!important;height:60px!important;min-width:60px!important;}
  .cchat-premium-avatar .mini-avatar{width:24px!important;height:24px!important;}
  .cchat-premium-titlebox strong{font-size:19px!important;}
  .cchat-premium-titlebox small{font-size:12px!important;}
  .cchat-premium-actions{border-radius:24px!important;padding:5px!important;gap:2px!important;}
  .cchat-premium-icon,.cchat-premium-actions a.cchat-premium-icon{width:34px!important;height:34px!important;min-width:34px!important;border-radius:15px!important;font-size:17px!important;}
  .cchat-premium-actions .cchat-delete-room-btn{font-size:22px!important;}
}
@media(max-width:420px){
  .cchat-chat-header.cchat-premium-header{grid-template-columns:38px minmax(0,1fr) auto!important;padding-inline:10px!important;gap:7px!important;}
  .cchat-premium-actions{max-width:124px!important;overflow:hidden!important;}
  .cchat-premium-icon,.cchat-premium-actions a.cchat-premium-icon{width:30px!important;min-width:30px!important;height:32px!important;font-size:16px!important;}
  .cchat-premium-avatar{width:54px!important;height:54px!important;min-width:54px!important;}
  .cchat-premium-titlebox strong{font-size:17px!important;}
}
.cchat-messages{position:relative!important;}
.cchat-message,.cchat-date-separator,.cchat-unread-divider{position:relative!important;z-index:1!important;}

/* v128 exact mockup-style fixed graphic chat header: iPhone/Safari safe and scroll-stable */
:root{--cchat-mockup-header-h:118px;--cchat-mockup-shell-w:560px;}
body:has(.cchat-active-page),
html:has(.cchat-active-page){overflow:hidden!important;overscroll-behavior:none!important;}
body:has(.cchat-active-page) .ds-topbar,
body:has(.cchat-active-page) .site-header,
body:has(.cchat-active-page) .mobile-header,
body:has(.cchat-active-page) .global-header,
body:has(.cchat-active-page) .ds-bottom-nav{display:none!important;}
.container.cchat-page.cchat-active-page{padding:0!important;margin:0 auto!important;max-width:var(--cchat-mockup-shell-w)!important;width:100%!important;height:100dvh!important;overflow:hidden!important;position:relative!important;background:#faf9ff!important;}
.cchat-panel.cchat-conversation{height:100dvh!important;min-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;position:relative!important;padding-top:calc(var(--cchat-mockup-header-h) + env(safe-area-inset-top))!important;display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr) auto!important;background:linear-gradient(180deg,#fff 0%,#fbf9ff 45%,#fff 100%)!important;}
.cchat-chat-header.cchat-mockup-header{position:fixed!important;top:0!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;z-index:100000!important;width:min(100vw,var(--cchat-mockup-shell-w))!important;height:calc(var(--cchat-mockup-header-h) + env(safe-area-inset-top))!important;min-height:calc(var(--cchat-mockup-header-h) + env(safe-area-inset-top))!important;padding:calc(env(safe-area-inset-top) + 12px) 16px 17px!important;margin:0!important;border:0!important;border-radius:0 0 34px 34px!important;display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;direction:rtl!important;overflow:hidden!important;background:linear-gradient(112deg,#5410b8 0%,#6d28d9 36%,#9d32e6 70%,#ec4899 100%)!important;box-shadow:0 18px 38px rgba(88,24,168,.27),0 2px 0 rgba(255,255,255,.16) inset!important;isolation:isolate!important;}
.cchat-chat-header.cchat-mockup-header:before{content:""!important;position:absolute!important;inset:0!important;z-index:0!important;background:radial-gradient(circle at 10% 8%,rgba(255,255,255,.62) 0 3%,transparent 12%),radial-gradient(circle at 88% 14%,rgba(255,255,255,.18),transparent 30%),linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0) 48%)!important;pointer-events:none!important;}
.cchat-chat-header.cchat-mockup-header:after{content:""!important;position:absolute!important;z-index:0!important;left:-14%!important;right:-14%!important;bottom:-66px!important;height:118px!important;border-radius:50%!important;background:rgba(255,255,255,.10)!important;transform:rotate(-3deg)!important;pointer-events:none!important;box-shadow:0 -42px 70px rgba(255,255,255,.045)!important;}
.cchat-mockup-glow{position:absolute!important;z-index:0!important;inset:10px 12px auto!important;height:42px!important;border-radius:999px!important;background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,.03))!important;filter:blur(.2px)!important;opacity:.7!important;pointer-events:none!important;}
.cchat-mockup-back{position:relative!important;z-index:2!important;width:52px!important;height:52px!important;min-width:52px!important;border-radius:21px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.24)!important;color:#fff!important;text-decoration:none!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 12px 26px rgba(40,0,95,.18)!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;}
.cchat-mockup-back span{display:block!important;font-size:44px!important;line-height:.8!important;font-weight:900!important;transform:translateY(-1px)!important;}
.cchat-mockup-identity{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;gap:14px!important;min-width:0!important;direction:rtl!important;}
.cchat-mockup-avatar{position:relative!important;width:72px!important;height:72px!important;min-width:72px!important;border-radius:24px!important;border:3px solid rgba(255,255,255,.94)!important;background:linear-gradient(135deg,#fff,rgba(255,255,255,.62))!important;display:grid!important;place-items:center!important;padding:0!important;overflow:visible!important;box-shadow:0 16px 32px rgba(42,0,95,.26),0 0 0 6px rgba(255,255,255,.09)!important;color:#6d28d9!important;text-decoration:none!important;}
.cchat-mockup-avatar-main{width:100%!important;height:100%!important;border-radius:21px!important;display:grid!important;place-items:center!important;object-fit:cover!important;overflow:hidden!important;background:linear-gradient(135deg,#7c3aed,#c084fc)!important;color:#fff!important;font-size:28px!important;font-weight:1000!important;}
.cchat-mockup-direct-avatar{border-radius:50%!important}.cchat-mockup-direct-avatar .cchat-mockup-avatar-main{border-radius:50%!important;}
.cchat-mockup-avatar-stack{position:absolute!important;right:-13px!important;bottom:-9px!important;display:flex!important;align-items:center!important;direction:ltr!important;z-index:3!important;}
.cchat-mockup-avatar-stack i{width:28px!important;height:28px!important;border-radius:50%!important;border:2px solid #fff!important;background:linear-gradient(135deg,#8b5cf6,#ec4899)!important;color:#fff!important;display:grid!important;place-items:center!important;overflow:hidden!important;margin-left:-8px!important;font-style:normal!important;font-size:10px!important;font-weight:1000!important;box-shadow:0 8px 16px rgba(39,0,93,.24)!important;}
.cchat-mockup-avatar-stack img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.cchat-mockup-titlebox{min-width:0!important;display:grid!important;gap:5px!important;text-align:right!important;color:#fff!important;}
.cchat-mockup-titlebox strong{display:block!important;max-width:180px!important;color:#fff!important;font-size:23px!important;line-height:1.18!important;font-weight:1000!important;letter-spacing:-.35px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-shadow:0 2px 12px rgba(28,0,70,.22)!important;}
.cchat-mockup-titlebox small{display:flex!important;align-items:center!important;gap:7px!important;max-width:190px!important;color:rgba(255,255,255,.95)!important;font-size:13.5px!important;line-height:1.3!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.cchat-mockup-titlebox small b{font:inherit!important;color:#fff!important;}.cchat-mockup-titlebox small i{width:9px!important;height:9px!important;min-width:9px!important;border-radius:50%!important;background:#29e56e!important;box-shadow:0 0 0 4px rgba(41,229,110,.16)!important;display:inline-block!important;}
.cchat-mockup-actions{position:relative!important;z-index:2!important;display:flex!important;align-items:center!important;gap:5px!important;padding:7px!important;border-radius:32px!important;background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.24)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 14px 30px rgba(42,0,98,.18)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;direction:ltr!important;}
.cchat-mockup-action,.cchat-mockup-actions a.cchat-mockup-action,.cchat-mockup-more>summary.cchat-mockup-action{width:43px!important;height:43px!important;min-width:43px!important;border:0!important;border-radius:19px!important;background:transparent!important;color:#fff!important;display:grid!important;place-items:center!important;font:1000 22px/1 var(--app-font)!important;text-decoration:none!important;cursor:pointer!important;list-style:none!important;box-shadow:none!important;padding:0!important;appearance:none!important;-webkit-appearance:none!important;}
.cchat-mockup-action:hover,.cchat-mockup-more[open]>summary{background:rgba(255,255,255,.16)!important;}
.cchat-mockup-more{position:relative!important;display:block!important;}.cchat-mockup-more>summary::-webkit-details-marker{display:none!important;}.cchat-mockup-more>summary{outline:none!important;}
.cchat-mockup-menu{position:fixed!important;top:calc(var(--cchat-mockup-header-h) + env(safe-area-inset-top) - 4px)!important;left:50%!important;transform:translateX(-50%)!important;width:min(320px,calc(100vw - 32px))!important;display:grid!important;gap:7px!important;padding:10px!important;border-radius:22px!important;background:rgba(255,255,255,.98)!important;border:1px solid rgba(226,223,239,.98)!important;box-shadow:0 24px 70px rgba(26,0,73,.2)!important;direction:rtl!important;z-index:100002!important;}
.cchat-mockup-menu a,.cchat-mockup-menu button{width:100%!important;min-height:42px!important;border:0!important;border-radius:15px!important;background:#f8f5ff!important;color:#43226f!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;padding:0 13px!important;font:900 13px/1.4 var(--app-font)!important;text-decoration:none!important;cursor:pointer!important;}.cchat-mockup-menu .is-danger{background:#fff1f2!important;color:#be123c!important;}
.cchat-profile-cta{margin-top:8px!important;}
.cchat-panel.cchat-conversation>.cchat-messages{min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;}
.cchat-panel.cchat-conversation>.cchat-group-info,.cchat-panel.cchat-conversation>.cchat-alarm-focus,.cchat-panel.cchat-conversation>.cchat-upcoming-alarms,.cchat-panel.cchat-conversation>.cchat-profile-cta,.cchat-panel.cchat-conversation>.cchat-pinned-message{position:relative!important;z-index:3!important;}
@media(max-width:760px){:root{--cchat-mockup-header-h:104px;}.cchat-panel.cchat-conversation{padding-top:calc(var(--cchat-mockup-header-h) + env(safe-area-inset-top))!important;}.cchat-chat-header.cchat-mockup-header{grid-template-columns:48px minmax(0,1fr) auto!important;gap:10px!important;padding:calc(env(safe-area-inset-top) + 10px) 12px 14px!important;border-radius:0 0 28px 28px!important}.cchat-mockup-back{width:46px!important;height:46px!important;min-width:46px!important;border-radius:18px!important}.cchat-mockup-back span{font-size:39px!important}.cchat-mockup-avatar{width:62px!important;height:62px!important;min-width:62px!important;border-radius:21px!important}.cchat-mockup-avatar-main{border-radius:18px!important}.cchat-mockup-direct-avatar .cchat-mockup-avatar-main{border-radius:50%!important}.cchat-mockup-avatar-stack i{width:24px!important;height:24px!important;margin-left:-7px!important}.cchat-mockup-titlebox strong{font-size:19px!important;max-width:150px!important}.cchat-mockup-titlebox small{font-size:12px!important;max-width:158px!important}.cchat-mockup-actions{gap:3px!important;padding:5px!important;border-radius:27px!important}.cchat-mockup-action,.cchat-mockup-actions a.cchat-mockup-action,.cchat-mockup-more>summary.cchat-mockup-action{width:37px!important;height:37px!important;min-width:37px!important;border-radius:16px!important;font-size:19px!important}.cchat-mockup-menu{top:calc(var(--cchat-mockup-header-h) + env(safe-area-inset-top) - 2px)!important}}
@media(max-width:430px){:root{--cchat-mockup-header-h:98px;}.cchat-chat-header.cchat-mockup-header{grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px!important;padding-left:9px!important;padding-right:9px!important}.cchat-mockup-back{width:42px!important;height:42px!important;min-width:42px!important}.cchat-mockup-avatar{width:56px!important;height:56px!important;min-width:56px!important}.cchat-mockup-titlebox strong{font-size:17px!important;max-width:118px!important}.cchat-mockup-titlebox small{font-size:11px!important;max-width:124px!important}.cchat-mockup-actions{max-width:168px!important;overflow:visible!important}.cchat-mockup-action,.cchat-mockup-actions a.cchat-mockup-action,.cchat-mockup-more>summary.cchat-mockup-action{width:34px!important;height:34px!important;min-width:34px!important;font-size:17px!important}.cchat-mockup-avatar-stack{right:-10px!important;bottom:-7px!important}.cchat-mockup-avatar-stack i{width:22px!important;height:22px!important}}
@media(max-width:374px){.cchat-mockup-titlebox strong{max-width:96px!important;font-size:16px!important}.cchat-mockup-titlebox small{max-width:98px!important}.cchat-mockup-actions{max-width:140px!important}.cchat-mockup-action,.cchat-mockup-actions a.cchat-mockup-action,.cchat-mockup-more>summary.cchat-mockup-action{width:30px!important;min-width:30px!important;height:32px!important;font-size:15px!important}}

/* v131 REAL FIX: chat header must stay at very top, not middle */
body:has(.cchat-active-page),
html:has(.cchat-active-page){
  overflow-x:hidden!important;
}

.cchat-active-page{
  padding-top:0!important;
  margin-top:0!important;
}

.cchat-active-page .cchat-conversation{
  position:relative!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  display:block!important;
  background:#fff!important;
}

.cchat-active-page .cchat-chat-header,
.cchat-active-page .cchat-real-premium-header,
.cchat-active-page .cchat-inline-final-header{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(560px,100vw)!important;
  height:74px!important;
  min-height:74px!important;
  z-index:99999!important;
  margin:0!important;
  padding:8px 10px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  border-radius:0 0 24px 24px!important;
  border:0!important;
  border-bottom:1px solid rgba(230,220,255,.92)!important;
  background:rgba(255,255,255,.98)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  box-shadow:0 12px 30px rgba(39,28,78,.16)!important;
}

/* hide old broken extra avatar/main wrappers if they push layout */
.cchat-active-page .cchat-header-main{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  overflow:hidden!important;
}

.cchat-active-page .cchat-back{
  grid-column:1!important;
  grid-row:1!important;
  width:40px!important;
  height:40px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#f2ecff!important;
  color:#6d28d9!important;
  font-size:28px!important;
  line-height:1!important;
  box-shadow:0 8px 20px rgba(109,40,217,.12)!important;
}

.cchat-active-page .cchat-peer-avatar,
.cchat-active-page .cchat-avatar.cchat-peer-avatar{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  margin:0!important;
  box-shadow:0 8px 22px rgba(124,58,237,.18)!important;
}

.cchat-active-page .cchat-peer-title{
  min-width:0!important;
  max-width:170px!important;
  display:grid!important;
  gap:1px!important;
  text-align:center!important;
  justify-items:center!important;
  overflow:hidden!important;
}

.cchat-active-page .cchat-peer-title strong{
  max-width:165px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:16px!important;
  font-weight:1000!important;
  line-height:1.25!important;
}

.cchat-active-page .cchat-peer-title small,
.cchat-active-page [data-peer-status-text]{
  max-width:165px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11px!important;
  line-height:1.25!important;
  color:#7b728d!important;
}

.cchat-active-page .cchat-header-actions{
  grid-column:3!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  min-width:max-content!important;
  margin:0!important;
  padding:3px!important;
  border-radius:999px!important;
  background:#f7f3ff!important;
  box-shadow:inset 0 0 0 1px rgba(124,58,237,.08)!important;
}

.cchat-active-page .cchat-header-actions button,
.cchat-active-page .cchat-icon-action,
.cchat-active-page [data-open-group-settings],
.cchat-active-page [data-delete-room],
.cchat-active-page [data-block-room]{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:50%!important;
  border:0!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#6d28d9!important;
  box-shadow:0 5px 14px rgba(88,56,150,.12)!important;
  font-size:15px!important;
  padding:0!important;
}

/* content starts below fixed header */
.cchat-active-page .cchat-messages{
  position:absolute!important;
  top:74px!important;
  left:0!important;
  right:0!important;
  bottom:62px!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow-y:auto!important;
  padding-top:14px!important;
  padding-bottom:18px!important;
}

/* compose fixed at bottom */
.cchat-active-page .cchat-compose,
.cchat-active-page .chat-blocked-note{
  position:fixed!important;
  left:50%!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  width:min(560px,100vw)!important;
  z-index:99998!important;
  margin:0!important;
  border-radius:18px 18px 0 0!important;
}

/* panels below the header */
.cchat-active-page .cchat-profile-cta,
.cchat-active-page .cchat-group-info,
.cchat-active-page .cchat-pinned-message,
.cchat-active-page .cchat-alarm-focus,
.cchat-active-page .cchat-upcoming-alarms{
  margin-top:78px!important;
}

@media(max-width:560px){
  .cchat-active-page .cchat-chat-header,
  .cchat-active-page .cchat-real-premium-header,
  .cchat-active-page .cchat-inline-final-header{
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100vw!important;
    height:70px!important;
    min-height:70px!important;
    padding:7px 8px!important;
    border-radius:0 0 22px 22px!important;
  }

  .cchat-active-page .cchat-messages{
    top:70px!important;
    bottom:60px!important;
  }

  .cchat-active-page .cchat-compose,
  .cchat-active-page .chat-blocked-note{
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100vw!important;
  }

  .cchat-active-page .cchat-peer-title{
    max-width:145px!important;
  }

  .cchat-active-page .cchat-peer-title strong{
    max-width:140px!important;
    font-size:15px!important;
  }

  .cchat-active-page .cchat-peer-title small,
  .cchat-active-page [data-peer-status-text]{
    max-width:140px!important;
    font-size:10.5px!important;
  }
}

@media(max-width:390px){
  .cchat-active-page .cchat-chat-header,
  .cchat-active-page .cchat-real-premium-header,
  .cchat-active-page .cchat-inline-final-header{
    grid-template-columns:38px minmax(0,1fr) auto!important;
    gap:5px!important;
  }

  .cchat-active-page .cchat-back{
    width:36px!important;
    height:36px!important;
  }

  .cchat-active-page .cchat-peer-avatar{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }

  .cchat-active-page .cchat-peer-title{
    max-width:112px!important;
  }

  .cchat-active-page .cchat-peer-title strong{
    max-width:108px!important;
    font-size:14px!important;
  }

  .cchat-active-page .cchat-peer-title small,
  .cchat-active-page [data-peer-status-text]{
    max-width:108px!important;
    font-size:10px!important;
  }

  .cchat-active-page .cchat-header-actions button,
  .cchat-active-page .cchat-icon-action{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }
}

/* v132 FIX: group members/status must not appear above fixed chat header */
.cchat-active-page .cchat-chat-header,
.cchat-active-page .cchat-real-premium-header,
.cchat-active-page .cchat-inline-final-header{
  z-index:999999!important;
}

/* every group/status/member panel must stay below header */
.cchat-active-page .cchat-group-info,
.cchat-active-page .cchat-group-info-panel,
.cchat-active-page .cchat-group-management-panel,
.cchat-active-page .cchat-profile-cta,
.cchat-active-page .cchat-pinned-message,
.cchat-active-page .cchat-alarm-focus,
.cchat-active-page .cchat-upcoming-alarms{
  position:relative!important;
  z-index:50!important;
  margin-top:0!important;
}

/* do not let group members/status reserve space above header */
.cchat-active-page .cchat-group-info-panel:not(:has(.cchat-group-management-panel[open])),
.cchat-active-page .cchat-group-info:not(:has(.cchat-group-management-panel[open])){
  display:none!important;
}

/* if group panel opens, it starts under header */
.cchat-active-page .cchat-group-management-panel[open]{
  position:fixed!important;
  top:74px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(560px,100vw)!important;
  max-height:calc(100dvh - 140px)!important;
  overflow:auto!important;
  z-index:99990!important;
  background:#fff!important;
  border-radius:0 0 24px 24px!important;
  box-shadow:0 18px 45px rgba(31,24,51,.16)!important;
}

/* status inside header should stay inside header only */
.cchat-active-page .cchat-peer-status,
.cchat-active-page [data-peer-status],
.cchat-active-page [data-peer-status-text],
.cchat-active-page .cchat-members-trigger{
  position:static!important;
  z-index:auto!important;
  max-width:100%!important;
  overflow:hidden!important;
}

/* active member avatars in room list or group area must not float over header */
.cchat-active-page .cchat-room-active-members,
.cchat-active-page .cchat-online-stack,
.cchat-active-page .cchat-current-online-members,
.cchat-active-page .cchat-group-online-members{
  z-index:1!important;
}

/* messages must begin directly below the fixed header */
.cchat-active-page .cchat-messages{
  top:74px!important;
  z-index:1!important;
}

/* direct profile button should not push itself above header */
.cchat-active-page .cchat-profile-cta{
  position:fixed!important;
  top:76px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(540px,calc(100vw - 20px))!important;
  z-index:80!important;
}

/* when profile CTA exists, give messages extra top space */
.cchat-active-page:has(.cchat-profile-cta) .cchat-messages{
  top:126px!important;
}

@media(max-width:560px){
  .cchat-active-page .cchat-group-management-panel[open]{
    top:70px!important;
    left:0!important;
    right:0!important;
    transform:none!important;
    width:100vw!important;
    max-height:calc(100dvh - 132px)!important;
  }

  .cchat-active-page .cchat-messages{
    top:70px!important;
  }

  .cchat-active-page .cchat-profile-cta{
    top:72px!important;
    left:10px!important;
    right:10px!important;
    transform:none!important;
    width:auto!important;
  }

  .cchat-active-page:has(.cchat-profile-cta) .cchat-messages{
    top:122px!important;
  }
}

/* v133 ROOT FIX: active chat page must show ONLY conversation, not inbox/search/member blocks above header */

/* وقتی داخل روم هستیم، کل container باید تمام صفحه باشد */
html body .container.cchat-page.cchat-active-page{
  padding:0!important;
  margin:0 auto!important;
  width:100%!important;
  max-width:560px!important;
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
  background:#fff!important;
}

/* در صفحه چت، بخش‌های اینباکس/جستجو/ساخت گروه/لیست کاربران نباید اصلا دیده شوند */
html body .cchat-active-page > .cchat-inbox-header,
html body .cchat-active-page > .cchat-quick-actions,
html body .cchat-active-page > .cchat-action-pop,
html body .cchat-active-page > .cchat-searchbar,
html body .cchat-active-page > .cchat-user-strip,
html body .cchat-active-page > .cchat-section-title,
html body .cchat-active-page > .chat-request-list,
html body .cchat-active-page > .cchat-room-list,
html body .cchat-active-page > .cchat-empty{
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}

/* خود مکالمه باید کل ارتفاع را بگیرد */
html body .cchat-active-page .cchat-conversation{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(560px,100vw)!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  z-index:5000!important;
}

/* هدر واقعی: همیشه بالا، ثابت و روی همه چیز */
html body .cchat-active-page .cchat-chat-header{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:100%!important;
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  flex:0 0 76px!important;
  z-index:999999!important;

  display:grid!important;
  grid-template-columns:42px 56px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;

  padding:10px 12px!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(226,223,239,.85)!important;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.95), transparent 26%),
    linear-gradient(135deg,#ffffff 0%,#f7f2ff 44%,#efe7ff 100%)!important;
  box-shadow:0 10px 28px rgba(67,56,202,.12)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}

/* دکمه برگشت */
html body .cchat-active-page .cchat-back{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#6d28d9!important;
  box-shadow:0 8px 20px rgba(109,40,217,.14)!important;
  font-size:28px!important;
  line-height:1!important;
  z-index:2!important;
}

/* عکس پروفایل / گروه وسط و تمیز */
html body .cchat-active-page .cchat-peer-avatar{
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  border-radius:22px!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#7c3aed,#ec4899)!important;
  color:#fff!important;
  font-weight:1000!important;
  font-size:21px!important;
  box-shadow:0 12px 28px rgba(124,58,237,.22)!important;
}

html body .cchat-active-page .cchat-peer-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:22px!important;
  display:block!important;
}

/* عنوان */
html body .cchat-active-page .cchat-peer-title{
  min-width:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:3px!important;
}

html body .cchat-active-page .cchat-peer-title strong{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:17px!important;
  line-height:1.2!important;
  font-weight:1000!important;
  color:#221933!important;
  text-align:start!important;
}

html body .cchat-active-page .cchat-peer-title small,
html body .cchat-active-page .cchat-peer-status{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11px!important;
  line-height:1.3!important;
  color:#7c728a!important;
  text-align:start!important;
}

/* دکمه‌های سمت راست مرتب و گرافیکی */
html body .cchat-active-page .cchat-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:max-content!important;
  max-width:150px!important;
  overflow:hidden!important;
  padding:4px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(124,58,237,.12)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8),0 8px 20px rgba(76,29,149,.08)!important;
}

html body .cchat-active-page .cchat-header-actions button,
html body .cchat-active-page .cchat-header-actions a,
html body .cchat-active-page .cchat-icon-action{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
  color:#6d28d9!important;
  box-shadow:0 7px 16px rgba(109,40,217,.12)!important;
  font-size:17px!important;
  line-height:1!important;
}

/* آیکون حذف اگر خالی است، با سطل واقعی پر شود */
html body .cchat-active-page .cchat-delete-room-btn span::before{
  content:"🗑"!important;
  font-size:15px!important;
}

/* اگر دکمه تنظیمات گروه وجود دارد، واضح باشد */
html body .cchat-active-page .cchat-settings-room-btn{
  font-size:17px!important;
}

/* پیام‌ها دقیقا زیر هدر */
html body .cchat-active-page .cchat-messages{
  position:relative!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  padding:14px 12px 18px!important;
  margin:0!important;
  z-index:1!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfaff 100%)!important;
  -webkit-overflow-scrolling:touch!important;
}

/* کامپوز پایین ثابت درون فلکس */
html body .cchat-active-page .cchat-compose,
html body .cchat-active-page .chat-blocked-note{
  position:relative!important;
  bottom:auto!important;
  flex:0 0 auto!important;
  z-index:20!important;
  margin:0!important;
}

/* هر چیزی مربوط به اعضا/پنل گروه نباید بالای هدر دیده شود */
html body .cchat-active-page .cchat-group-info,
html body .cchat-active-page .cchat-group-info-panel,
html body .cchat-active-page .cchat-group-management-panel,
html body .cchat-active-page .cchat-pinned-message,
html body .cchat-active-page .cchat-alarm-focus,
html body .cchat-active-page .cchat-upcoming-alarms,
html body .cchat-active-page .cchat-profile-cta{
  flex:0 0 auto!important;
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  z-index:10!important;
  margin:0!important;
}

/* پنل مدیریت گروه فقط وقتی باز شود، پایین هدر به صورت شیت بیاید */
html body .cchat-active-page .cchat-group-management-panel:not([open]){
  display:none!important;
}

html body .cchat-active-page .cchat-group-management-panel[open]{
  position:absolute!important;
  top:76px!important;
  left:0!important;
  right:0!important;
  bottom:auto!important;
  transform:none!important;
  width:100%!important;
  max-height:calc(100dvh - 150px)!important;
  overflow:auto!important;
  z-index:999998!important;
  background:#fff!important;
  border-radius:0 0 24px 24px!important;
  box-shadow:0 22px 60px rgba(31,24,51,.18)!important;
}

/* موبایل کوچک */
@media(max-width:430px){
  html body .cchat-active-page .cchat-chat-header{
    height:70px!important;
    min-height:70px!important;
    max-height:70px!important;
    flex-basis:70px!important;
    grid-template-columns:38px 50px minmax(0,1fr) auto!important;
    gap:7px!important;
    padding:9px 8px!important;
  }

  html body .cchat-active-page .cchat-back{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:14px!important;
  }

  html body .cchat-active-page .cchat-peer-avatar{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    border-radius:19px!important;
  }

  html body .cchat-active-page .cchat-peer-avatar img{
    border-radius:19px!important;
  }

  html body .cchat-active-page .cchat-peer-title strong{
    font-size:15px!important;
  }

  html body .cchat-active-page .cchat-peer-title small,
  html body .cchat-active-page .cchat-peer-status{
    font-size:10px!important;
  }

  html body .cchat-active-page .cchat-header-actions{
    gap:3px!important;
    padding:3px!important;
    max-width:120px!important;
  }

  html body .cchat-active-page .cchat-header-actions button,
  html body .cchat-active-page .cchat-header-actions a,
  html body .cchat-active-page .cchat-icon-action{
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    font-size:14px!important;
  }

  html body .cchat-active-page .cchat-group-management-panel[open]{
    top:70px!important;
    max-height:calc(100dvh - 136px)!important;
  }
}


/* v134 DEEP FIX: stable premium chat header with group menu */
html body .cchat-active-page{
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}

html body .cchat-active-page .cchat-conversation{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  border-radius:0!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  overflow:hidden!important;
  background:#fff!important;
}

html body .cchat-active-page .cchat-chat-header.cchat-v134-header{
  position:sticky!important;
  top:0!important;
  z-index:500!important;
  height:82px!important;
  min-height:82px!important;
  padding:12px 10px 10px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:9px!important;
  background:
    radial-gradient(circle at 18% 15%, rgba(167,139,250,.30), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(236,72,153,.18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,245,255,.96))!important;
  border:0!important;
  border-bottom:1px solid rgba(226,223,239,.95)!important;
  box-shadow:0 14px 34px rgba(37,25,86,.10)!important;
  backdrop-filter:blur(22px)!important;
  -webkit-backdrop-filter:blur(22px)!important;
}

html body .cchat-v134-back{
  width:40px!important;
  height:40px!important;
  border-radius:17px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#6d28d9!important;
  font-size:34px!important;
  line-height:1!important;
  font-weight:1000!important;
  box-shadow:0 10px 24px rgba(80,52,164,.12)!important;
  border:1px solid rgba(124,58,237,.10)!important;
}

html body .cchat-v134-main{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
}

html body .cchat-v134-avatar{
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  border-radius:22px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border:3px solid #fff!important;
  background:linear-gradient(135deg,#7c3aed,#ec4899)!important;
  color:#fff!important;
  font-weight:1000!important;
  box-shadow:0 13px 28px rgba(124,58,237,.24)!important;
  padding:0!important;
}

html body .cchat-v134-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:18px!important;
}

html body .cchat-v134-avatar span{
  font-size:22px!important;
}

html body .cchat-v134-titlebox{
  min-width:0!important;
  display:grid!important;
  gap:5px!important;
  justify-items:start!important;
}

html body .cchat-v134-titlebox strong{
  max-width:170px!important;
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#171327!important;
  font-size:17px!important;
  font-weight:1000!important;
  letter-spacing:-.3px!important;
  line-height:1.25!important;
}

html body .cchat-v134-titlebox small{
  max-width:170px!important;
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#7d728f!important;
  font-size:11px!important;
  font-weight:900!important;
  direction:ltr!important;
}

html body .cchat-v134-member-line{
  max-width:180px!important;
  height:24px!important;
  border:0!important;
  background:rgba(255,255,255,.72)!important;
  color:#6d28d9!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  border-radius:999px!important;
  padding:2px 8px 2px 4px!important;
  box-shadow:inset 0 0 0 1px rgba(124,58,237,.10)!important;
  cursor:pointer!important;
}

html body .cchat-v134-mini-avatars{
  display:flex!important;
  align-items:center!important;
  direction:ltr!important;
}

html body .cchat-v134-mini-avatars i{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  margin-left:-5px!important;
  border:2px solid #fff!important;
  background:#8b5cf6!important;
  color:#fff!important;
  font-style:normal!important;
  font-size:8px!important;
  font-weight:1000!important;
}

html body .cchat-v134-mini-avatars i:first-child{
  margin-left:0!important;
}

html body .cchat-v134-mini-avatars img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

html body .cchat-v134-member-line em{
  font-style:normal!important;
  font-size:10px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
}

html body .cchat-v134-actions{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
}

html body .cchat-v134-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border:0!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:#5b21b6!important;
  font-size:20px!important;
  font-weight:1000!important;
  box-shadow:0 10px 24px rgba(80,52,164,.12)!important;
  border:1px solid rgba(124,58,237,.10)!important;
  cursor:pointer!important;
}

html body .cchat-v134-more{
  font-size:28px!important;
  line-height:0!important;
  padding-bottom:8px!important;
}

html body .cchat-v134-menu{
  position:absolute!important;
  top:48px!important;
  inset-inline-end:0!important;
  z-index:900!important;
  width:190px!important;
  padding:8px!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(226,223,239,.95)!important;
  box-shadow:0 20px 55px rgba(31,24,51,.22)!important;
  display:grid!important;
  gap:6px!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}

html body .cchat-v134-menu[hidden]{
  display:none!important;
}

html body .cchat-v134-menu button,
html body .cchat-v134-menu a{
  width:100%!important;
  min-height:38px!important;
  border:0!important;
  border-radius:14px!important;
  background:#f8f5ff!important;
  color:#35224f!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  padding:8px 10px!important;
  font:900 12px var(--app-font)!important;
  cursor:pointer!important;
  text-align:right!important;
}

html body .cchat-v134-menu .is-danger{
  background:#fff1f2!important;
  color:#be123c!important;
}

html body .cchat-active-page .cchat-messages{
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
  padding-top:12px!important;
}

html body .cchat-active-page .cchat-compose{
  position:sticky!important;
  bottom:0!important;
  z-index:450!important;
}

html body .cchat-active-page .cchat-group-management-panel[open]{
  position:fixed!important;
  top:86px!important;
  left:8px!important;
  right:8px!important;
  bottom:auto!important;
  z-index:850!important;
  max-height:calc(100dvh - 154px)!important;
  overflow:auto!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(17,24,39,.25)!important;
}

@media(max-width:430px){
  html body .cchat-active-page .cchat-chat-header.cchat-v134-header{
    height:78px!important;
    min-height:78px!important;
    padding:10px 8px 9px!important;
    grid-template-columns:38px minmax(0,1fr) auto!important;
    gap:6px!important;
  }

  html body .cchat-v134-back{
    width:36px!important;
    height:36px!important;
    border-radius:15px!important;
  }

  html body .cchat-v134-avatar{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    border-radius:20px!important;
  }

  html body .cchat-v134-titlebox strong{
    max-width:126px!important;
    font-size:15px!important;
  }

  html body .cchat-v134-titlebox small{
    max-width:126px!important;
    font-size:10px!important;
  }

  html body .cchat-v134-member-line{
    max-width:134px!important;
  }

  html body .cchat-v134-icon{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border-radius:14px!important;
    font-size:17px!important;
  }

  html body .cchat-v134-more{
    font-size:25px!important;
  }

  html body .cchat-v134-menu{
    width:178px!important;
    top:42px!important;
  }
}

@media(max-width:370px){
  html body .cchat-v134-titlebox strong{
    max-width:104px!important;
  }

  html body .cchat-v134-titlebox small,
  html body .cchat-v134-member-line{
    max-width:108px!important;
  }
}

/* v135 FINAL POSITION FIX: lock chat header layout physically, not RTL-inline */
html body .cchat-active-page .cchat-chat-header.cchat-v134-header{
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:9999!important;
  width:100%!important;
  height:78px!important;
  min-height:78px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  grid-template-areas:"back center actions"!important;
  align-items:center!important;
  gap:0!important;
  padding:10px 8px!important;
  overflow:visible!important;
  direction:ltr!important;
}

html body .cchat-active-page .cchat-v134-back{
  grid-area:back!important;
  justify-self:start!important;
  align-self:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  margin:0!important;
  position:relative!important;
  left:0!important;
  right:auto!important;
  top:auto!important;
}

html body .cchat-active-page .cchat-v134-main{
  grid-area:center!important;
  justify-self:center!important;
  align-self:center!important;
  width:min(100%,230px)!important;
  max-width:230px!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  overflow:hidden!important;
  direction:rtl!important;
}

html body .cchat-active-page .cchat-v134-avatar{
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  max-width:50px!important;
  border-radius:19px!important;
  margin:0!important;
}

html body .cchat-active-page .cchat-v134-avatar img{
  border-radius:16px!important;
}

html body .cchat-active-page .cchat-v134-titlebox{
  min-width:0!important;
  max-width:150px!important;
  overflow:hidden!important;
  text-align:right!important;
  justify-items:start!important;
}

html body .cchat-active-page .cchat-v134-titlebox strong{
  max-width:150px!important;
  font-size:15px!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

html body .cchat-active-page .cchat-v134-titlebox small,
html body .cchat-active-page .cchat-v134-member-line{
  max-width:150px!important;
  font-size:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

html body .cchat-active-page .cchat-v134-actions{
  grid-area:actions!important;
  justify-self:end!important;
  align-self:center!important;
  position:relative!important;
  right:0!important;
  left:auto!important;
  top:auto!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  direction:ltr!important;
}

/* hide extra profile icon inside header so right side never gets crowded */
html body .cchat-active-page .cchat-v134-actions > a.cchat-v134-icon{
  display:none!important;
}

html body .cchat-active-page .cchat-v134-more{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  border-radius:16px!important;
  margin:0!important;
  padding:0 0 8px 0!important;
  font-size:29px!important;
  line-height:1!important;
  position:relative!important;
  right:auto!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
}

html body .cchat-active-page .cchat-v134-menu{
  position:absolute!important;
  top:48px!important;
  right:0!important;
  left:auto!important;
  inset-inline-start:auto!important;
  inset-inline-end:auto!important;
  z-index:10000!important;
  width:190px!important;
  max-width:calc(100vw - 18px)!important;
  direction:rtl!important;
  transform:none!important;
}

html body .cchat-active-page .cchat-v134-menu[hidden]{
  display:none!important;
}

/* keep group members/settings panel below header, never above it */
html body .cchat-active-page .cchat-group-management-panel[open]{
  position:fixed!important;
  top:84px!important;
  right:8px!important;
  left:8px!important;
  bottom:auto!important;
  z-index:9500!important;
  max-height:calc(100dvh - 150px)!important;
  overflow:auto!important;
}

/* remove any old header/action leftovers that may still be painted */
html body .cchat-active-page .cchat-header-actions,
html body .cchat-active-page .cchat-peer-avatar:not(.cchat-v134-avatar),
html body .cchat-active-page .cchat-peer-title:not(.cchat-v134-titlebox){
  max-width:0!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media(max-width:390px){
  html body .cchat-active-page .cchat-chat-header.cchat-v134-header{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    height:74px!important;
    min-height:74px!important;
    padding:9px 7px!important;
  }

  html body .cchat-active-page .cchat-v134-main{
    max-width:210px!important;
    gap:7px!important;
  }

  html body .cchat-active-page .cchat-v134-avatar{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    max-width:46px!important;
  }

  html body .cchat-active-page .cchat-v134-titlebox,
  html body .cchat-active-page .cchat-v134-titlebox strong,
  html body .cchat-active-page .cchat-v134-titlebox small,
  html body .cchat-active-page .cchat-v134-member-line{
    max-width:125px!important;
  }

  html body .cchat-active-page .cchat-v134-more{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    max-width:36px!important;
  }

  html body .cchat-active-page .cchat-v134-menu{
    top:44px!important;
    right:0!important;
    width:178px!important;
  }
}




/* v138 HARD FIX: prevent chat header/menu from breaking mobile viewport */
html,
body,
.app-shell,
.container,
.cchat-page,
.cchat-active-page,
.cchat-conversation,
.cchat-messages{
  max-width:100vw!important;
  overflow-x:hidden!important;
}

body.cchat-menu-open,
body.cchat-group-sheet-open{
  overflow-x:hidden!important;
}

.cchat-active-page,
.cchat-active-page *{
  box-sizing:border-box!important;
}

.cchat-active-page .cchat-conversation{
  width:100%!important;
  max-width:100vw!important;
  margin:0!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
  position:relative!important;
}

/* keep header always at the real top of chat */
.cchat-active-page .cchat-chat-header{
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:100vw!important;
  z-index:9999!important;
  transform:none!important;
  overflow:visible!important;
}

/* IMPORTANT: any details/menu inside header must NOT become fullscreen */
.cchat-chat-header details,
.cchat-chat-header details[open],
.cchat-chat-header .cchat-action-pop,
.cchat-chat-header .cchat-action-pop[open]{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  transform:none!important;
  box-shadow:none!important;
}

/* summary/button of three dots */
.cchat-chat-header details > summary,
.cchat-chat-header .cchat-action-pop > summary{
  list-style:none!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.20)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:none!important;
  cursor:pointer!important;
}

.cchat-chat-header details > summary::-webkit-details-marker{
  display:none!important;
}

/* dropdown content under three dots only */
.cchat-chat-header details[open] > *:not(summary),
.cchat-chat-header .cchat-action-pop[open] > *:not(summary){
  position:absolute!important;
  top:calc(100% + 10px)!important;
  inset-inline-end:0!important;
  left:auto!important;
  right:0!important;
  width:190px!important;
  max-width:calc(100vw - 24px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:70vh!important;
  overflow:auto!important;
  z-index:10050!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(124,58,237,.14)!important;
  border-radius:22px!important;
  padding:10px!important;
  box-shadow:0 18px 45px rgba(45,20,80,.20)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  transform:none!important;
}

/* stop old fullscreen group-create CSS from affecting header */
.cchat-chat-header .cchat-create-actions,
.cchat-chat-header .cchat-group-form,
.cchat-chat-header form{
  position:static!important;
  width:auto!important;
  max-width:100%!important;
  transform:none!important;
}

/* force messages to stay inside one column */
.cchat-active-page .cchat-messages{
  width:100%!important;
  max-width:100vw!important;
  min-width:0!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
}

.cchat-active-page .cchat-message{
  max-width:86%!important;
  min-width:0!important;
}

.cchat-active-page .cchat-message.mine{
  align-self:flex-end!important;
}

.cchat-active-page .cchat-message.theirs{
  align-self:flex-start!important;
}

/* header action layout: icons must stay organized */
.cchat-chat-header .cchat-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  min-width:max-content!important;
  overflow:visible!important;
}

.cchat-chat-header .cchat-header-actions button,
.cchat-chat-header .cchat-header-actions a{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}

/* mobile safety */
@media(max-width:760px){
  .cchat-active-page{
    padding:0!important;
  }

  .cchat-active-page .cchat-conversation{
    height:100dvh!important;
    min-height:100dvh!important;
    border-radius:0!important;
  }

  .cchat-active-page .cchat-chat-header{
    min-height:76px!important;
    height:auto!important;
    padding:10px 10px 12px!important;
  }

  .cchat-chat-header details[open] > *:not(summary),
  .cchat-chat-header .cchat-action-pop[open] > *:not(summary){
    width:178px!important;
    max-width:calc(100vw - 18px)!important;
  }
}

/* v138 END */


/* v140 FINAL CHAT ESCAPE FIX START */
/* Scope: only active after JS adds body.delsa-v140-chat-body on chat room pages. */
html.delsa-v140-chat-html,
html.delsa-v140-chat-html body.delsa-v140-chat-body{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fbf9ff!important;
}

html.delsa-v140-chat-html body.delsa-v140-chat-body{
  position:fixed!important;
  inset:0!important;
  overscroll-behavior:none!important;
  touch-action:manipulation!important;
}

html.delsa-v140-chat-html body.delsa-v140-chat-body > :not(.delsa-v140-conversation):not(script):not(style):not(link):not(noscript){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

html.delsa-v140-chat-html body.delsa-v140-chat-body .delsa-v140-conversation,
html body .delsa-v140-conversation,
html body .cchat-conversation:has(.cchat-v140-header){
  position:fixed!important;
  inset:0!important;
  left:0!important;
  right:0!important;
  top:0!important;
  bottom:0!important;
  width:100vw!important;
  min-width:100vw!important;
  max-width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  translate:none!important;
  scale:1!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  grid-template-columns:100%!important;
  overflow:hidden!important;
  z-index:2147483000!important;
  background:#fbf9ff!important;
  direction:rtl!important;
  isolation:isolate!important;
  contain:layout style paint!important;
}

html body .delsa-v140-conversation *,
html body .cchat-conversation:has(.cchat-v140-header) *{
  box-sizing:border-box!important;
}

html body .cchat-chat-header.cchat-v140-header{
  grid-row:1!important;
  grid-column:1!important;
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  min-width:0!important;
  height:138px!important;
  min-height:138px!important;
  max-height:138px!important;
  margin:0!important;
  padding:42px 22px 22px!important;
  padding-top:calc(30px + env(safe-area-inset-top))!important;
  border:0!important;
  border-radius:0 0 34px 34px!important;
  background:linear-gradient(123deg,#7b22f2 0%,#5f12c7 46%,#3b0b92 100%)!important;
  color:#fff!important;
  box-shadow:0 18px 38px rgba(58,14,137,.32)!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr) auto!important;
  grid-template-areas:"back identity actions"!important;
  align-items:center!important;
  column-gap:12px!important;
  direction:ltr!important;
  overflow:hidden!important;
  z-index:30!important;
}

html body .cchat-v140-header-art{
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  pointer-events:none!important;
  overflow:hidden!important;
  border-radius:0 0 34px 34px!important;
}
html body .cchat-v140-header-art:before{
  content:""!important;
  position:absolute!important;
  left:-12%!important;
  right:-8%!important;
  bottom:-38px!important;
  height:116px!important;
  border-radius:50% 50% 0 0!important;
  background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.18),rgba(255,255,255,.05))!important;
  transform:rotate(-5deg)!important;
}
html body .cchat-v140-header-art:after{
  content:""!important;
  position:absolute!important;
  inset:10px 22px 20px!important;
  border-radius:30px!important;
  background:radial-gradient(circle at 10% 44%,rgba(255,255,255,.16),transparent 20%),radial-gradient(circle at 78% 20%,rgba(255,255,255,.12),transparent 18%),linear-gradient(155deg,rgba(255,255,255,.06),transparent 45%)!important;
  opacity:.9!important;
}

html body .cchat-v140-back{
  grid-area:back!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:21px!important;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 12px 22px rgba(24,6,72,.18)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
html body .cchat-v140-back svg{
  width:30px!important;height:30px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:3!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}

html body .cchat-v140-identity{
  grid-area:identity!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  overflow:hidden!important;
  direction:ltr!important;
}
html body .cchat-v140-avatar{
  position:relative!important;
  display:block!important;
  width:66px!important;
  height:66px!important;
  min-width:66px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  text-decoration:none!important;
  cursor:pointer!important;
  overflow:visible!important;
  color:#6d28d9!important;
}
html body .cchat-v140-avatar-main{
  width:66px!important;
  height:66px!important;
  min-width:66px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border:4px solid #fff!important;
  background:linear-gradient(135deg,#fff,#e9ddff)!important;
  color:#6d28d9!important;
  box-shadow:0 11px 25px rgba(22,6,72,.26),0 0 0 2px rgba(255,255,255,.25)!important;
  font:1000 20px/1 var(--app-font,system-ui)!important;
}
html body .cchat-v140-avatar-main img,
html body .cchat-v140-avatar-mini img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
html body .cchat-v140-avatar-main b{font:inherit!important;color:inherit!important;}
html body .cchat-v140-avatar-mini{
  position:absolute!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border:3px solid #fff!important;
  background:#fff!important;
  color:#6d28d9!important;
  box-shadow:0 8px 14px rgba(22,6,72,.24)!important;
  font:900 10px/1 var(--app-font,system-ui)!important;
}
html body .cchat-v140-avatar-mini.mini-1{right:-8px!important;bottom:-1px!important;}
html body .cchat-v140-avatar-mini.mini-2{right:12px!important;bottom:-13px!important;width:24px!important;height:24px!important;min-width:24px!important;}

html body .cchat-v140-title{
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:7px!important;
  direction:rtl!important;
  text-align:right!important;
  color:#fff!important;
}
html body .cchat-v140-title strong{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#fff!important;
  font:1000 24px/1.15 var(--app-font,system-ui)!important;
  text-shadow:0 2px 8px rgba(14,4,56,.18)!important;
}
html body .cchat-v140-title small,
html body .cchat-v140-title small *{
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:rgba(255,255,255,.82)!important;
  font:800 15px/1.2 var(--app-font,system-ui)!important;
  cursor:pointer!important;
}
html body .cchat-v140-title small i{
  width:9px!important;height:9px!important;min-width:9px!important;border-radius:50%!important;background:#22c55e!important;box-shadow:0 0 0 4px rgba(34,197,94,.13)!important;display:inline-block!important;
}

html body .cchat-v140-actions{
  grid-area:actions!important;
  position:relative!important;
  min-width:0!important;
  width:232px!important;
  max-width:38vw!important;
  height:62px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-evenly!important;
  gap:2px!important;
  padding:0 10px!important;
  border-radius:34px!important;
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 12px 26px rgba(22,6,72,.17)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  direction:ltr!important;
  overflow:visible!important;
}
html body .cchat-v140-action{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border:0!important;
  border-radius:18px!important;
  background:transparent!important;
  color:#fff!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
html body .cchat-v140-action:active{transform:scale(.96)!important;background:rgba(255,255,255,.10)!important;}
html body .cchat-v140-action svg{width:30px!important;height:30px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2.45!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
html body .cchat-v140-dots svg{fill:currentColor!important;stroke:none!important;width:32px!important;height:32px!important;}

html body .cchat-v140-menu{
  position:absolute!important;
  top:68px!important;
  right:0!important;
  left:auto!important;
  width:224px!important;
  display:grid!important;
  gap:8px!important;
  padding:10px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(221,214,254,.9)!important;
  box-shadow:0 26px 70px rgba(31,8,86,.28)!important;
  z-index:80!important;
  direction:rtl!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
html body .cchat-v140-menu[hidden]{display:none!important;}
html body .cchat-v140-menu-row{
  width:100%!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fbfaff,#f2ecff)!important;
  color:#302646!important;
  text-align:right!important;
  direction:rtl!important;
  text-decoration:none!important;
  cursor:pointer!important;
  font:900 13px/1.25 var(--app-font,system-ui)!important;
}
html body .cchat-v140-menu-row span{width:30px!important;height:30px!important;min-width:30px!important;border-radius:12px!important;background:#fff!important;display:grid!important;place-items:center!important;box-shadow:0 6px 16px rgba(109,40,217,.12)!important;font-size:16px!important;}
html body .cchat-v140-menu-row b{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html body .cchat-v140-menu-row.cchat-v140-danger{background:#fff1f2!important;color:#e11d48!important;}
html body .cchat-v140-menu-row.is-group-leave{width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;display:grid!important;place-items:center!important;justify-self:end!important;border-radius:17px!important;}
html body .cchat-v140-menu-row.is-group-leave b{display:none!important;}
html body .cchat-v140-menu-row.is-group-leave span{width:auto!important;height:auto!important;background:transparent!important;box-shadow:none!important;font-size:22px!important;}

html body .delsa-v140-conversation .cchat-messages,
html body .cchat-conversation:has(.cchat-v140-header) .cchat-messages{
  grid-row:2!important;
  grid-column:1!important;
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:20px 14px 22px!important;
  padding-bottom:calc(22px + env(safe-area-inset-bottom))!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  background-color:#fbf9ff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='none' stroke='%237c3aed' stroke-opacity='.052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 38h24l9 14-21 26-21-26zM94 22l18 9 18-9-9 20 9 20-18-9-18 9 9-20zM33 126c13 0 13-18 26-18s13 18 26 18 13-18 26-18 13 18 26 18M120 82l20 20M140 82l-20 20M64 30l10 10-10 10-10-10zM36 88h26M49 75v26'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(180deg,#fff 0%,#fbf8ff 62%,#fbf8ff 100%)!important;
  background-repeat:repeat!important;
  background-size:220px 220px,auto!important;
  direction:rtl!important;
}

html body .delsa-v140-conversation .cchat-messages > *,
html body .cchat-conversation:has(.cchat-v140-header) .cchat-messages > *{
  max-width:100%!important;
}

html body .delsa-v140-conversation .cchat-pinned,
html body .delsa-v140-conversation .pinned-message,
html body .delsa-v140-conversation .cchat-pin-card{
  margin:0 6px 18px!important;
  padding:14px 18px!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.9)!important;
  border:1px solid rgba(221,214,254,.72)!important;
  box-shadow:0 12px 28px rgba(76,29,149,.08)!important;
  color:#40374e!important;
}

html body .delsa-v140-conversation .cchat-message-bubble,
html body .delsa-v140-conversation .cchat-bubble,
html body .delsa-v140-conversation .message-bubble{
  max-width:min(76vw,620px)!important;
  border-radius:26px!important;
  box-shadow:0 10px 26px rgba(76,29,149,.08)!important;
  border:1px solid rgba(221,214,254,.48)!important;
}
html body .delsa-v140-conversation .cchat-message.is-mine .cchat-message-bubble,
html body .delsa-v140-conversation .cchat-message.me .cchat-bubble,
html body .delsa-v140-conversation .message.me .message-bubble{
  background:linear-gradient(135deg,#f1e9ff,#eadcff)!important;
  color:#2d2438!important;
}

html body .delsa-v140-conversation .cchat-compose,
html body .delsa-v140-conversation .chat-blocked-note,
html body .cchat-conversation:has(.cchat-v140-header) .cchat-compose,
html body .cchat-conversation:has(.cchat-v140-header) .chat-blocked-note{
  grid-row:3!important;
  grid-column:1!important;
  position:relative!important;
  inset:auto!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:14px 16px!important;
  padding-bottom:calc(14px + env(safe-area-inset-bottom))!important;
  z-index:25!important;
  border-radius:30px 30px 0 0!important;
  border:0!important;
  border-top:1px solid rgba(221,214,254,.72)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 -12px 34px rgba(76,29,149,.09)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
html body .delsa-v140-conversation .cchat-compose input,
html body .delsa-v140-conversation .cchat-compose textarea{
  border-radius:28px!important;
  border:1px solid rgba(221,214,254,.82)!important;
  background:#fff!important;
  box-shadow:inset 0 2px 7px rgba(46,16,101,.05)!important;
}

/* Hide group/settings panels unless explicitly opened. This prevents the white half-page overlay seen in Safari. */
html body .delsa-v140-conversation .cchat-group-info-panel:not(.is-open):not(.active):not([open]),
html body .delsa-v140-conversation .cchat-group-info:not(.is-open):not(.active):not([open]),
html body .delsa-v140-conversation .v49-group-info:not(.is-open):not(.active):not([open]),
html body .delsa-v140-conversation .v50-group-info:not(.is-open):not(.active):not([open]),
html body .delsa-v140-conversation .cchat-task-hub:not(.is-open):not(.active):not([open]),
html body .delsa-v140-conversation .cchat-profile-cta{
  display:none!important;
  position:absolute!important;
  width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;overflow:hidden!important;z-index:-1!important;
}

html body.delsa-v140-chat-body.cchat-group-sheet-open .delsa-v140-conversation .cchat-group-info-panel,
html body.delsa-v140-chat-body.cchat-group-sheet-open .delsa-v140-conversation .cchat-group-info,
html body.delsa-v140-chat-body .delsa-v140-conversation .cchat-group-info-panel.is-open,
html body.delsa-v140-chat-body .delsa-v140-conversation .cchat-group-info.is-open,
html body.delsa-v140-chat-body .delsa-v140-conversation .cchat-group-management-panel[open]{
  display:block!important;
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  opacity:1!important;
  pointer-events:auto!important;
  overflow:hidden!important;
  z-index:2147483600!important;
  background:rgba(21,8,55,.38)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
html body.delsa-v140-chat-body.cchat-group-sheet-open .delsa-v140-conversation .cchat-group-panel-inner,
html body.delsa-v140-chat-body .delsa-v140-conversation .cchat-group-info-panel.is-open .cchat-group-panel-inner,
html body.delsa-v140-chat-body .delsa-v140-conversation .cchat-group-info.is-open .cchat-group-panel-inner,
html body.delsa-v140-chat-body .delsa-v140-conversation .cchat-group-management-panel[open] .cchat-group-panel-inner{
  position:fixed!important;
  left:12px!important;right:12px!important;bottom:12px!important;
  width:auto!important;max-height:80dvh!important;
  overflow:auto!important;
  border-radius:30px!important;
  background:#fff!important;
  box-shadow:0 30px 90px rgba(12,5,35,.34)!important;
  z-index:2147483601!important;
}

@supports(height:100svh){
  html body .delsa-v140-conversation,
  html body .cchat-conversation:has(.cchat-v140-header){height:100svh!important;min-height:100svh!important;max-height:100svh!important;}
}

@media(max-width:700px){
  html body .cchat-chat-header.cchat-v140-header{
    height:126px!important;
    min-height:126px!important;
    max-height:126px!important;
    grid-template-columns:44px minmax(0,1fr) auto!important;
    column-gap:9px!important;
    padding:36px 12px 17px!important;
    padding-top:calc(24px + env(safe-area-inset-top))!important;
    border-radius:0 0 29px 29px!important;
  }
  html body .cchat-v140-back{width:43px!important;height:43px!important;min-width:43px!important;border-radius:17px!important;}
  html body .cchat-v140-back svg{width:27px!important;height:27px!important;}
  html body .cchat-v140-identity{gap:10px!important;}
  html body .cchat-v140-avatar,
  html body .cchat-v140-avatar-main{width:56px!important;height:56px!important;min-width:56px!important;}
  html body .cchat-v140-avatar-main{border-width:3px!important;}
  html body .cchat-v140-title strong{font-size:19px!important;}
  html body .cchat-v140-title small,
  html body .cchat-v140-title small *{font-size:12px!important;}
  html body .cchat-v140-actions{width:164px!important;max-width:42vw!important;height:50px!important;padding:0 5px!important;border-radius:28px!important;gap:0!important;}
  html body .cchat-v140-action{width:36px!important;height:38px!important;min-width:36px!important;border-radius:15px!important;}
  html body .cchat-v140-action svg{width:24px!important;height:24px!important;}
  html body .cchat-v140-dots svg{width:27px!important;height:27px!important;}
  html body .cchat-v140-menu{top:58px!important;right:0!important;width:210px!important;}
  html body .delsa-v140-conversation .cchat-messages{padding:18px 10px 20px!important;}
  html body .delsa-v140-conversation .cchat-compose,
  html body .delsa-v140-conversation .chat-blocked-note{padding:12px 10px!important;padding-bottom:calc(12px + env(safe-area-inset-bottom))!important;}
}

@media(max-width:390px){
  html body .cchat-chat-header.cchat-v140-header{grid-template-columns:40px minmax(0,1fr) auto!important;column-gap:7px!important;padding-left:9px!important;padding-right:9px!important;}
  html body .cchat-v140-back{width:39px!important;height:39px!important;min-width:39px!important;}
  html body .cchat-v140-avatar,
  html body .cchat-v140-avatar-main{width:50px!important;height:50px!important;min-width:50px!important;}
  html body .cchat-v140-title strong{font-size:17px!important;}
  html body .cchat-v140-title small,
  html body .cchat-v140-title small *{font-size:11px!important;gap:5px!important;}
  html body .cchat-v140-actions{width:142px!important;max-width:40vw!important;height:46px!important;}
  html body .cchat-v140-action{width:31px!important;min-width:31px!important;height:35px!important;}
  html body .cchat-v140-action svg{width:22px!important;height:22px!important;}
}
/* v140 FINAL CHAT ESCAPE FIX END */

/* v141 FINAL LOCK: fixed visible premium chat header */
body:has(.cchat-active-page){
  overflow-x:hidden!important;
}

.cchat-active-page,
.container.cchat-page.cchat-active-page{
  padding:0!important;
  margin:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}

.cchat-active-page .cchat-conversation{
  height:100dvh!important;
  min-height:100dvh!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
}

/* real header must always stay visible */
.cchat-active-page .cchat-chat-header{
  position:fixed!important;
  top:0!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  width:min(560px,100vw)!important;
  height:92px!important;
  min-height:92px!important;
  max-height:92px!important;
  z-index:99999!important;

  display:grid!important;
  grid-template-columns:46px 62px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;

  padding:18px 12px 12px!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0 0 28px 28px!important;

  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg,#5b00a8 0%,#7c1fd1 48%,#ec4899 100%)!important;
  box-shadow:0 16px 42px rgba(80,20,150,.28)!important;
  color:#fff!important;
}

/* remove broken ghost/white header layers */
.cchat-active-page .cchat-chat-header:before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  border-radius:0 0 28px 28px!important;
  background:
    linear-gradient(165deg,rgba(255,255,255,.18),transparent 38%),
    radial-gradient(circle at 78% 30%,rgba(255,255,255,.16),transparent 34%)!important;
  pointer-events:none!important;
}

.cchat-active-page .cchat-chat-header > *{
  position:relative!important;
  z-index:2!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  max-height:none!important;
  overflow:visible!important;
}

/* back button */
.cchat-active-page .cchat-back{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  font-size:30px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.20)!important;
}

/* avatar */
.cchat-active-page .cchat-peer-avatar,
.cchat-active-page .cchat-avatar.cchat-peer-avatar{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  border-radius:24px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#8b5cf6,#ec4899)!important;
  color:#fff!important;
  border:3px solid rgba(255,255,255,.86)!important;
  box-shadow:0 12px 28px rgba(35,10,90,.28)!important;
  overflow:hidden!important;
}

.cchat-active-page .cchat-peer-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:21px!important;
}

/* title/status */
.cchat-active-page .cchat-header-main,
.cchat-active-page .cchat-peer-title{
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
  color:#fff!important;
}

.cchat-active-page .cchat-peer-title strong{
  display:block!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:1000!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}

.cchat-active-page .cchat-peer-title small,
.cchat-active-page .cchat-peer-status,
.cchat-active-page [data-peer-status-text]{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  color:rgba(255,255,255,.88)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* action pill like selected mockup */
.cchat-active-page .cchat-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  min-width:max-content!important;
  height:50px!important;
  padding:4px!important;
  border-radius:25px!important;
  background:rgba(255,255,255,.16)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)!important;
  overflow:visible!important;
}

.cchat-active-page .cchat-header-actions button,
.cchat-active-page .cchat-header-actions a,
.cchat-active-page .cchat-header-actions summary{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border:0!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:18px!important;
  padding:0!important;
  margin:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}

/* group members button must be icon-sized */
.cchat-active-page .cchat-members-trigger{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}

.cchat-active-page .cchat-members-trigger em,
.cchat-active-page .cchat-members-trigger b{
  display:none!important;
}

/* delete/leave only icon */
.cchat-active-page .cchat-delete-room-btn{
  font-size:0!important;
}

.cchat-active-page .cchat-delete-room-btn:before{
  content:"🗑"!important;
  font-size:18px!important;
  line-height:1!important;
}

/* settings / three dots */
.cchat-active-page .cchat-settings-room-btn{
  font-size:0!important;
}

.cchat-active-page .cchat-settings-room-btn:before{
  content:"⋯"!important;
  font-size:28px!important;
  line-height:1!important;
}

/* content starts below fixed header */
.cchat-active-page .cchat-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding-top:112px!important;
  padding-left:12px!important;
  padding-right:12px!important;
  padding-bottom:18px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
}

/* group info panel must not sit above header */
.cchat-active-page .cchat-group-info,
.cchat-active-page .cchat-task-hub,
.cchat-active-page .cchat-profile-cta,
.cchat-active-page .cchat-pinned-message{
  margin-top:0!important;
  position:relative!important;
  z-index:4!important;
}

/* compose fixed bottom */
.cchat-active-page .cchat-compose,
.cchat-active-page .chat-form{
  flex:0 0 auto!important;
  position:sticky!important;
  bottom:0!important;
  z-index:9999!important;
}

/* prevent menu/dropdowns from splitting screen */
.cchat-active-page details[open] > *:not(summary){
  position:absolute!important;
  top:calc(100% + 8px)!important;
  inset-inline-end:0!important;
  width:190px!important;
  max-width:calc(100vw - 20px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:65vh!important;
  overflow:auto!important;
  background:#fff!important;
  color:#28153d!important;
  border-radius:20px!important;
  padding:10px!important;
  box-shadow:0 18px 46px rgba(40,15,80,.22)!important;
  transform:none!important;
  z-index:100000!important;
}

@media(max-width:420px){
  .cchat-active-page .cchat-chat-header{
    height:88px!important;
    min-height:88px!important;
    max-height:88px!important;
    grid-template-columns:42px 56px minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:16px 8px 10px!important;
  }

  .cchat-active-page .cchat-peer-avatar,
  .cchat-active-page .cchat-avatar.cchat-peer-avatar{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    border-radius:22px!important;
  }

  .cchat-active-page .cchat-peer-title strong{
    font-size:15.5px!important;
  }

  .cchat-active-page .cchat-peer-title small,
  .cchat-active-page .cchat-peer-status,
  .cchat-active-page [data-peer-status-text]{
    font-size:11px!important;
  }

  .cchat-active-page .cchat-header-actions{
    height:44px!important;
    gap:4px!important;
    padding:3px!important;
  }

  .cchat-active-page .cchat-header-actions button,
  .cchat-active-page .cchat-header-actions a,
  .cchat-active-page .cchat-header-actions summary,
  .cchat-active-page .cchat-members-trigger{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:16px!important;
  }

  .cchat-active-page .cchat-messages{
    padding-top:106px!important;
  }
}

/* v141 END */

/* v146 CLEAN ISOLATED CHAT HEADER - no old cchat-chat-header class */
.cchat-active-page,
.container.cchat-page.cchat-active-page{
  padding:0!important;
  margin:0!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}

.cchat-active-page .cchat-conversation{
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
}

.cchat-v146-header{
  flex:0 0 auto!important;
  position:sticky!important;
  top:0!important;
  z-index:999999!important;
  width:100%!important;
  min-height:88px!important;
  display:grid!important;
  grid-template-columns:42px 62px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:16px 12px 11px!important;
  border-radius:0 0 30px 30px!important;
  background:
    radial-gradient(circle at 18% 12%,rgba(255,255,255,.32),transparent 28%),
    linear-gradient(135deg,#540099 0%,#7c1fd1 48%,#ec4899 100%)!important;
  box-shadow:0 16px 42px rgba(84,0,153,.32)!important;
  color:#fff!important;
  overflow:visible!important;
}

.cchat-v146-back{
  width:42px!important;
  height:42px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:34px!important;
  font-weight:1000!important;
  line-height:1!important;
  text-decoration:none!important;
}

.cchat-v146-avatar-wrap{
  position:relative!important;
  width:62px!important;
  height:62px!important;
  display:grid!important;
  place-items:center!important;
}

.cchat-v146-avatar{
  width:58px!important;
  height:58px!important;
  border-radius:24px!important;
  border:3px solid rgba(255,255,255,.86)!important;
  background:linear-gradient(135deg,#8b5cf6,#ec4899)!important;
  color:#fff!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  box-shadow:0 12px 26px rgba(30,10,80,.28)!important;
  padding:0!important;
  text-decoration:none!important;
}

.cchat-v146-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

.cchat-v146-avatar span{
  font-size:22px!important;
  font-weight:1000!important;
}

.cchat-v146-mini-members{
  position:absolute!important;
  left:-2px!important;
  bottom:-5px!important;
  display:flex!important;
  direction:ltr!important;
}

.cchat-v146-mini-members i{
  width:20px!important;
  height:20px!important;
  border-radius:50%!important;
  border:2px solid #fff!important;
  margin-left:-6px!important;
  background:#7c3aed!important;
  color:#fff!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  font-size:8px!important;
  font-style:normal!important;
  font-weight:1000!important;
}

.cchat-v146-mini-members img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

.cchat-v146-title{
  min-width:0!important;
  display:grid!important;
  gap:5px!important;
  color:#fff!important;
}

.cchat-v146-title strong{
  display:block!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:1000!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.cchat-v146-title small{
  display:block!important;
  color:rgba(255,255,255,.88)!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  direction:auto!important;
}

.cchat-v146-actions{
  height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  padding:4px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.18)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)!important;
  overflow:visible!important;
}

.cchat-v146-action{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border:0!important;
  border-radius:17px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:18px!important;
  font-weight:1000!important;
  padding:0!important;
  margin:0!important;
  text-decoration:none!important;
  line-height:1!important;
}

.cchat-v146-action:hover{
  background:rgba(255,255,255,.28)!important;
}

.cchat-active-page .cchat-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-top:12px!important;
  padding-left:12px!important;
  padding-right:12px!important;
  padding-bottom:18px!important;
  margin:0!important;
  transform:none!important;
}

.cchat-active-page .cchat-group-info,
.cchat-active-page .cchat-task-hub,
.cchat-active-page .cchat-profile-cta,
.cchat-active-page .cchat-pinned-message{
  flex:0 0 auto!important;
  margin-top:0!important;
  position:relative!important;
  z-index:5!important;
}

.cchat-active-page .cchat-compose{
  flex:0 0 auto!important;
  position:sticky!important;
  bottom:0!important;
  z-index:99999!important;
}

@media(max-width:420px){
  .cchat-v146-header{
    min-height:84px!important;
    grid-template-columns:38px 56px minmax(0,1fr) auto!important;
    gap:7px!important;
    padding:15px 7px 9px!important;
    border-radius:0 0 26px 26px!important;
  }

  .cchat-v146-back{
    width:38px!important;
    height:38px!important;
    border-radius:16px!important;
  }

  .cchat-v146-avatar-wrap{
    width:56px!important;
    height:56px!important;
  }

  .cchat-v146-avatar{
    width:52px!important;
    height:52px!important;
    border-radius:22px!important;
  }

  .cchat-v146-title strong{
    font-size:15.5px!important;
  }

  .cchat-v146-title small{
    font-size:11px!important;
  }

  .cchat-v146-actions{
    height:42px!important;
    gap:3px!important;
    padding:3px!important;
  }

  .cchat-v146-action{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border-radius:15px!important;
    font-size:16px!important;
  }
}

@media(max-width:360px){
  .cchat-v146-header{
    grid-template-columns:36px 52px minmax(0,1fr) auto!important;
    gap:5px!important;
  }

  .cchat-v146-action{
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    font-size:15px!important;
  }

  .cchat-v146-actions{
    max-width:106px!important;
  }
}

/* v146 END */

/* v147 polish for isolated v146 chat header */
.cchat-v147-count{
  display:inline-grid!important;
  place-items:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.22)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:1000!important;
  margin-inline-end:3px!important;
}

.cchat-v147-members-btn{
  position:relative!important;
}

.cchat-v147-members-btn span{
  line-height:1!important;
}

.cchat-v147-members-btn b{
  position:absolute!important;
  top:-5px!important;
  right:-5px!important;
  min-width:17px!important;
  height:17px!important;
  padding:0 4px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#7c1fd1!important;
  font-size:9px!important;
  font-weight:1000!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 4px 12px rgba(0,0,0,.18)!important;
}

.cchat-v147-exit-btn,
.cchat-v147-delete-btn{
  background:rgba(255,255,255,.16)!important;
  color:#fff!important;
  font-size:21px!important;
}

.cchat-v147-exit-btn:hover,
.cchat-v147-delete-btn:hover{
  background:rgba(255,255,255,.30)!important;
}

.cchat-v147-settings-btn{
  font-size:28px!important;
  line-height:1!important;
}

/* independent members modal, no old group panel */
.cchat-v147-members-modal[hidden],
.cchat-v147-photo-modal[hidden]{
  display:none!important;
}

.cchat-v147-members-modal,
.cchat-v147-photo-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483600!important;
  display:grid!important;
  place-items:end center!important;
}

.cchat-v147-modal-backdrop,
.cchat-v147-photo-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(16,10,32,.46)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}

.cchat-v147-members-sheet{
  position:relative!important;
  width:min(560px,100vw)!important;
  max-height:72dvh!important;
  overflow:hidden!important;
  border-radius:30px 30px 0 0!important;
  background:#fff!important;
  box-shadow:0 -20px 70px rgba(30,10,80,.28)!important;
  display:flex!important;
  flex-direction:column!important;
  animation:cchatV147Sheet .18s ease-out!important;
}

.cchat-v147-members-sheet header{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:16px 18px!important;
  background:linear-gradient(135deg,#540099,#8c1aff)!important;
  color:#fff!important;
}

.cchat-v147-members-sheet header b{
  display:block!important;
  font-size:17px!important;
  font-weight:1000!important;
}

.cchat-v147-members-sheet header small{
  display:block!important;
  margin-top:3px!important;
  font-size:12px!important;
  color:rgba(255,255,255,.85)!important;
  font-weight:850!important;
}

.cchat-v147-members-sheet header button,
.cchat-v147-photo-card button{
  width:38px!important;
  height:38px!important;
  border:0!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:26px!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
}

.cchat-v147-members-list{
  flex:1 1 auto!important;
  overflow:auto!important;
  padding:10px 12px calc(18px + env(safe-area-inset-bottom))!important;
  display:grid!important;
  gap:8px!important;
  background:linear-gradient(180deg,#fff,#fbf8ff)!important;
}

.cchat-v147-member-row{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:18px!important;
  border:1px solid #eee7ff!important;
  background:#fff!important;
  text-decoration:none!important;
  color:#20142f!important;
}

.cchat-v147-member-row span{
  width:48px!important;
  height:48px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#7c1fd1,#ec4899)!important;
  color:#fff!important;
  font-weight:1000!important;
}

.cchat-v147-member-row img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

.cchat-v147-member-row div{
  min-width:0!important;
}

.cchat-v147-member-row b{
  display:block!important;
  font-size:14px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.cchat-v147-member-row small{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  color:#8a819a!important;
  font-weight:850!important;
  direction:ltr!important;
  text-align:start!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.cchat-v147-empty-members{
  padding:22px!important;
  text-align:center!important;
  color:#8a819a!important;
  font-weight:900!important;
}

/* photo modal */
.cchat-v147-photo-modal{
  place-items:center!important;
  padding:18px!important;
}

.cchat-v147-photo-card{
  position:relative!important;
  width:min(430px,92vw)!important;
  aspect-ratio:1/1!important;
  border-radius:34px!important;
  background:#080713!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  box-shadow:0 24px 90px rgba(0,0,0,.42)!important;
  animation:cchatV147Photo .18s ease-out!important;
}

.cchat-v147-photo-card img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

.cchat-v147-photo-card button{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:2!important;
  background:rgba(255,255,255,.88)!important;
  color:#22142f!important;
}

@keyframes cchatV147Sheet{
  from{transform:translateY(18px);opacity:.6}
  to{transform:none;opacity:1}
}

@keyframes cchatV147Photo{
  from{transform:scale(.96);opacity:.6}
  to{transform:scale(1);opacity:1}
}

/* stop old group panel from opening as white full screen through v147 members button */
.cchat-v146-header .cchat-members-trigger,
.cchat-v146-header [data-open-group-members]{
  pointer-events:auto!important;
}

@media(max-width:420px){
  .cchat-v147-members-sheet{
    max-height:76dvh!important;
    border-radius:26px 26px 0 0!important;
  }

  .cchat-v147-member-row{
    grid-template-columns:44px minmax(0,1fr)!important;
    padding:9px!important;
  }

  .cchat-v147-member-row span{
    width:44px!important;
    height:44px!important;
  }
}

/* v147 END */

/* v148 independent members/settings/photo modals */
.cchat-v148-members-btn{position:relative!important}
.cchat-v148-members-btn b{
  position:absolute!important;
  top:-5px!important;
  right:-5px!important;
  min-width:17px!important;
  height:17px!important;
  padding:0 4px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#7c1fd1!important;
  font-size:9px!important;
  font-weight:1000!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:0 4px 12px rgba(0,0,0,.18)!important;
}
.cchat-v148-settings-btn{
  font-size:28px!important;
  line-height:1!important;
}
.cchat-v148-modal[hidden]{display:none!important}
.cchat-v148-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483640!important;
  display:grid!important;
  place-items:end center!important;
}
.cchat-v148-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(16,10,32,.48)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
}
.cchat-v148-sheet{
  position:relative!important;
  width:min(560px,100vw)!important;
  max-height:76dvh!important;
  overflow:hidden!important;
  border-radius:30px 30px 0 0!important;
  background:#fff!important;
  box-shadow:0 -20px 70px rgba(30,10,80,.30)!important;
  display:flex!important;
  flex-direction:column!important;
}
.cchat-v148-sheet header{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:16px 18px!important;
  background:linear-gradient(135deg,#540099,#8c1aff)!important;
  color:#fff!important;
}
.cchat-v148-sheet header b{
  display:block!important;
  font-size:17px!important;
  font-weight:1000!important;
}
.cchat-v148-sheet header small{
  display:block!important;
  margin-top:3px!important;
  font-size:12px!important;
  color:rgba(255,255,255,.86)!important;
  font-weight:850!important;
}
.cchat-v148-sheet header button,
.cchat-v148-photo-card button{
  width:38px!important;
  height:38px!important;
  border:0!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:26px!important;
  display:grid!important;
  place-items:center!important;
}
.cchat-v148-list{
  flex:1 1 auto!important;
  overflow:auto!important;
  padding:10px 12px calc(18px + env(safe-area-inset-bottom))!important;
  display:grid!important;
  gap:8px!important;
  background:linear-gradient(180deg,#fff,#fbf8ff)!important;
}
.cchat-v148-member{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:18px!important;
  border:1px solid #eee7ff!important;
  background:#fff!important;
  text-decoration:none!important;
  color:#20142f!important;
}
.cchat-v148-member span{
  width:48px!important;
  height:48px!important;
  border-radius:18px!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#7c1fd1,#ec4899)!important;
  color:#fff!important;
  font-weight:1000!important;
}
.cchat-v148-member img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.cchat-v148-member div{min-width:0!important}
.cchat-v148-member b{
  display:block!important;
  font-size:14px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.cchat-v148-member small{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  color:#8a819a!important;
  font-weight:850!important;
  direction:ltr!important;
  text-align:start!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.cchat-v148-empty{
  padding:22px!important;
  text-align:center!important;
  color:#8a819a!important;
  font-weight:900!important;
}
.cchat-v148-settings-form{
  flex:1 1 auto!important;
  overflow:auto!important;
  display:grid!important;
  gap:12px!important;
  padding:14px 14px calc(20px + env(safe-area-inset-bottom))!important;
  background:linear-gradient(180deg,#fff,#fbf8ff)!important;
}
.cchat-v148-settings-form label{
  display:grid!important;
  gap:6px!important;
  font-size:12px!important;
  font-weight:1000!important;
  color:#3b2f4c!important;
}
.cchat-v148-settings-form input:not([type=checkbox]):not([type=radio]),
.cchat-v148-settings-form textarea{
  width:100%!important;
  border:1px solid #e7def8!important;
  border-radius:16px!important;
  background:#fff!important;
  padding:10px 12px!important;
  font:inherit!important;
}
.cchat-v148-colors{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
  padding:10px!important;
  border:1px solid #eee7ff!important;
  border-radius:18px!important;
  background:#fff!important;
}
.cchat-v148-colors>span{
  width:100%!important;
  font-size:12px!important;
  font-weight:1000!important;
  color:#3b2f4c!important;
}
.cchat-v148-colors input{
  position:absolute!important;
  opacity:0!important;
}
.cchat-v148-colors i{
  width:26px!important;
  height:26px!important;
  border-radius:50%!important;
  border:2px solid #fff!important;
  display:block!important;
  box-shadow:0 0 0 1px rgba(32,24,54,.14),0 6px 14px rgba(32,24,54,.08)!important;
}
.cchat-v148-colors input:checked+i{
  box-shadow:0 0 0 3px #7c1fd1,0 8px 18px rgba(124,31,209,.22)!important;
}
.cchat-v148-checks{
  display:grid!important;
  gap:8px!important;
  padding:10px!important;
  border:1px solid #eee7ff!important;
  border-radius:18px!important;
  background:#fff!important;
}
.cchat-v148-checks label{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  gap:9px!important;
}
.cchat-v148-checks input{
  width:18px!important;
  height:18px!important;
  accent-color:#7c1fd1!important;
}
.cchat-v148-save{
  height:46px!important;
  border:0!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#540099,#8c1aff)!important;
  color:#fff!important;
  font-weight:1000!important;
  font-size:15px!important;
}
.cchat-v148-photo-modal{
  place-items:center!important;
  padding:18px!important;
}
.cchat-v148-photo-card{
  position:relative!important;
  width:min(430px,92vw)!important;
  aspect-ratio:1/1!important;
  border-radius:34px!important;
  background:#080713!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  box-shadow:0 24px 90px rgba(0,0,0,.42)!important;
}
.cchat-v148-photo-card img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.cchat-v148-photo-card button{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:2!important;
  background:rgba(255,255,255,.88)!important;
  color:#22142f!important;
}
body.cchat-v148-modal-open{
  overflow:hidden!important;
}
@media(max-width:420px){
  .cchat-v148-sheet{
    max-height:78dvh!important;
    border-radius:26px 26px 0 0!important;
  }
  .cchat-v148-member{
    grid-template-columns:44px minmax(0,1fr)!important;
    padding:9px!important;
  }
  .cchat-v148-member span{
    width:44px!important;
    height:44px!important;
  }
}
/* v148 END */

/* v149: fix group settings save + stable color order */
.cchat-v148-colors{
  direction:ltr!important;
  justify-content:flex-start!important;
}

.cchat-v148-colors>span{
  direction:rtl!important;
  text-align:right!important;
}

.cchat-v148-colors label{
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  position:relative!important;
  flex:0 0 32px!important;
}

.cchat-v148-colors input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}

.cchat-v148-colors i{
  cursor:pointer!important;
}

.cchat-v148-settings-form.is-saving .cchat-v148-save{
  opacity:.72!important;
  pointer-events:none!important;
}

.cchat-v148-settings-form.is-saving .cchat-v148-save::after{
  content:"..."!important;
  margin-inline-start:6px!important;
}

/* v149 END */

/* v151 profile-only free hall + chat contacts/story refinements */
.profile-showcase-meta-form{
  grid-template-columns:1fr!important;
}
.profile-showcase-meta-form input{
  grid-column:1/-1!important;
}
.profile-freehall-badge{
  position:absolute!important;
  right:7px!important;
  bottom:7px!important;
  min-width:22px!important;
  height:22px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.96)!important;
  border:1px solid rgba(17,24,39,.12)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.14)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:12px!important;
  line-height:1!important;
  color:#111827!important;
  z-index:3!important;
}
.cchat-suggest-box{
  margin:8px 10px 10px!important;
  padding:9px 9px 8px!important;
  border:1px solid rgba(17,24,39,.08)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.78)!important;
  box-shadow:0 10px 28px rgba(15,23,42,.04)!important;
}
.cchat-suggest-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-bottom:6px!important;
}
.cchat-suggest-head b{
  font-size:12px!important;
  color:#334155!important;
}
.cchat-all-contacts-btn{
  text-decoration:none!important;
  border:1px solid rgba(225,29,72,.16)!important;
  background:rgba(225,29,72,.06)!important;
  color:#be123c!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  font-size:11px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.has-chat-story{
  position:relative!important;
  border:2px solid #f43f5e!important;
  box-shadow:0 0 0 3px rgba(244,63,94,.14)!important;
}
.chat-contacts-page{
  max-width:760px!important;
  margin:0 auto!important;
  padding:14px 12px 88px!important;
  direction:rtl!important;
}
.contacts-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
.contacts-header h1{
  margin:0!important;
  font-size:20px!important;
  font-weight:900!important;
  color:#111827!important;
}
.contacts-back{
  width:38px!important;
  height:38px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  text-decoration:none!important;
  color:#111827!important;
  background:#fff!important;
  border:1px solid rgba(17,24,39,.08)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.07)!important;
  font-size:24px!important;
}
.contacts-search-box{
  display:flex!important;
  gap:8px!important;
  margin-bottom:12px!important;
}
.contacts-search-box input{
  flex:1!important;
  min-width:0!important;
  border:1px solid rgba(17,24,39,.09)!important;
  border-radius:16px!important;
  padding:12px 14px!important;
  background:#fff!important;
  outline:none!important;
}
.contacts-search-box button,
.contacts-story-upload button,
.contacts-selection-bar button{
  border:0!important;
  border-radius:15px!important;
  padding:0 14px!important;
  min-height:42px!important;
  font-weight:900!important;
  background:#111827!important;
  color:#fff!important;
  cursor:pointer!important;
}
.contacts-story-card,
.contacts-list-card{
  background:#fff!important;
  border:1px solid rgba(17,24,39,.08)!important;
  border-radius:22px!important;
  padding:12px!important;
  margin-bottom:12px!important;
  box-shadow:0 14px 36px rgba(15,23,42,.06)!important;
}
.contacts-story-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.contacts-story-preview{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
.contacts-story-ring{
  width:48px!important;
  height:48px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  border:2px dashed rgba(17,24,39,.14)!important;
  background:#f8fafc!important;
  font-weight:900!important;
}
.contacts-story-preview.has-story .contacts-story-ring{
  border-style:solid!important;
  border-color:#f43f5e!important;
  box-shadow:0 0 0 4px rgba(244,63,94,.14)!important;
}
.contacts-story-preview b,
.contacts-story-preview small{
  display:block!important;
}
.contacts-story-preview small{
  color:#64748b!important;
  font-size:11px!important;
  margin-top:3px!important;
}
.contacts-story-upload{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-shrink:0!important;
}
.contacts-story-upload label{
  width:42px!important;
  height:42px!important;
  border-radius:15px!important;
  background:#f8fafc!important;
  border:1px solid rgba(17,24,39,.08)!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
}
.contacts-story-upload label input{
  display:none!important;
}
.contacts-selection-bar{
  display:none!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:10px!important;
  margin-bottom:10px!important;
  border-radius:18px!important;
  background:#f8fafc!important;
  border:1px solid rgba(17,24,39,.08)!important;
}
.contacts-selection-bar.is-active{
  display:flex!important;
}
.contacts-selection-bar strong{
  color:#111827!important;
  font-size:12px!important;
}
.contacts-selection-bar .contacts-clear-selection{
  background:#fff!important;
  color:#111827!important;
  border:1px solid rgba(17,24,39,.1)!important;
}
.contacts-grid-five{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px 8px!important;
}
.contact-tile{
  position:relative!important;
  text-align:center!important;
  min-width:0!important;
}
.contact-avatar{
  width:54px!important;
  height:54px!important;
  border-radius:999px!important;
  margin:0 auto!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  text-decoration:none!important;
  color:#111827!important;
  font-weight:900!important;
  background:#f1f5f9!important;
  border:2px solid #fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.08)!important;
}
.contact-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.contact-username{
  display:block!important;
  margin-top:6px!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.contact-check{
  position:absolute!important;
  top:0!important;
  right:50%!important;
  transform:translateX(28px)!important;
  width:20px!important;
  height:20px!important;
  border-radius:999px!important;
  display:none!important;
  place-items:center!important;
  background:#111827!important;
  color:#fff!important;
  font-size:12px!important;
  z-index:3!important;
}
.contact-select-input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
.contact-tile.is-selected .contact-check,
.contact-select-input:checked ~ .contact-check{
  display:grid!important;
}
.contact-tile.is-selected .contact-avatar,
.contact-select-input:checked ~ .contact-avatar{
  outline:3px solid rgba(17,24,39,.18)!important;
}
.contacts-empty{
  text-align:center!important;
  color:#64748b!important;
  padding:28px 10px!important;
}
@media(max-width:480px){
  .chat-contacts-page{padding-inline:10px!important;}
  .contacts-grid-five{gap:11px 5px!important;}
  .contact-avatar{width:50px!important;height:50px!important;}
  .contacts-story-card{align-items:stretch!important;flex-direction:column!important;}
  .contacts-story-upload button{flex:1!important;}
}
/* v151 END */
.contacts-story-ring img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:inherit!important;
}
.contacts-story-card>p{
  margin:0!important;
  color:#64748b!important;
  font-size:11px!important;
  line-height:1.7!important;
}
.contacts-story-upload.is-uploading button{
  opacity:.7!important;
  pointer-events:none!important;
}

/* v152 story footer + audience controls; chat suggestions restored to pre-v151 strip */
.ds-bottom-nav.nav-six{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
.ds-bottom-nav.nav-six .story-nav-link{position:relative!important;}
.ds-bottom-nav.nav-six .story-nav-link svg{stroke:#111827!important;fill:none!important;stroke-width:2!important;}
.story-nav-badge{position:absolute!important;top:4px!important;right:50%!important;transform:translateX(16px)!important;min-width:17px!important;height:17px!important;padding:0 5px!important;border-radius:999px!important;background:#10b981!important;color:#fff!important;font-size:10px!important;font-weight:1000!important;line-height:17px!important;box-shadow:0 0 0 3px #fff!important;}
.story-center-page{max-width:760px!important;margin:0 auto!important;padding-bottom:104px!important;}
.story-header-v152{justify-content:flex-start!important;}
.story-stats-panel{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;margin:8px 0 12px!important;direction:rtl!important;}
.story-stats-panel div{min-width:0!important;border:1px solid rgba(17,24,39,.08)!important;border-radius:18px!important;background:#fff!important;padding:9px 6px!important;text-align:center!important;box-shadow:0 10px 26px rgba(15,23,42,.045)!important;}
.story-stats-panel b{display:block!important;font-size:18px!important;line-height:1.1!important;color:#111827!important;direction:ltr!important;}
.story-stats-panel span{display:block!important;margin-top:4px!important;font-size:9.5px!important;font-weight:850!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.story-stats-panel .stat-green{border-color:rgba(16,185,129,.22)!important;background:linear-gradient(180deg,#fff,#f0fdf4)!important;}
.story-stats-panel .stat-red{border-color:rgba(239,68,68,.22)!important;background:linear-gradient(180deg,#fff,#fff1f2)!important;}
.story-stats-panel .stat-mix{border-color:rgba(124,58,237,.22)!important;background:linear-gradient(180deg,#fff,#f5f3ff)!important;}
.story-publish-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;}
.story-publish-card .story-delete-form button{min-height:42px!important;border:0!important;border-radius:15px!important;padding:0 12px!important;background:#fff1f2!important;color:#be123c!important;font-weight:950!important;cursor:pointer!important;}
.story-publish-card p{grid-column:1/-1!important;margin-top:5px!important;}
.story-audience-panel,.story-views-panel{background:#fff!important;border:1px solid rgba(17,24,39,.08)!important;border-radius:24px!important;padding:12px!important;margin-bottom:12px!important;box-shadow:0 14px 36px rgba(15,23,42,.06)!important;}
.story-audience-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important;}
.story-audience-head b{display:block!important;color:#111827!important;font-size:14px!important;font-weight:1000!important;}
.story-audience-head small{display:block!important;color:#64748b!important;font-size:11px!important;font-weight:800!important;line-height:1.6!important;margin-top:2px!important;}
.story-audience-head strong{min-width:62px!important;height:32px!important;border-radius:999px!important;background:#f8fafc!important;border:1px solid rgba(17,24,39,.08)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;font-size:11px!important;color:#111827!important;}
.story-mode-pills{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-bottom:10px!important;}
.story-mode-pill input{display:none!important;}
.story-mode-pill span,.story-clear-btn,.story-save-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:38px!important;border-radius:999px!important;padding:0 13px!important;border:1px solid rgba(17,24,39,.1)!important;background:#fff!important;color:#111827!important;font-size:12px!important;font-weight:950!important;cursor:pointer!important;}
.story-mode-pill input:checked+span{background:#111827!important;color:#fff!important;border-color:#111827!important;box-shadow:0 8px 20px rgba(17,24,39,.16)!important;}
.story-clear-btn{background:#fff1f2!important;color:#be123c!important;border-color:rgba(225,29,72,.16)!important;}
.story-save-btn{background:#10b981!important;color:#fff!important;border-color:#10b981!important;}
.story-relation-legend{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin:7px 0 12px!important;}
.story-relation-legend span{display:inline-flex!important;align-items:center!important;gap:5px!important;font-size:10.5px!important;font-weight:850!important;color:#64748b!important;}
.story-relation-legend i{width:10px!important;height:10px!important;border-radius:999px!important;display:inline-block!important;}
.legend-green{background:#10b981!important}.legend-red{background:#ef4444!important}.legend-mix{background:linear-gradient(90deg,#10b981 0 50%,#ef4444 50% 100%)!important}
.story-search-box{margin-bottom:12px!important;}
.story-contacts-grid .contact-tile{padding-top:4px!important;}
.contact-tile .contact-avatar{position:relative!important;}
.contact-tile.relation-incoming .contact-avatar{box-shadow:0 0 0 3px rgba(16,185,129,.28),0 8px 20px rgba(15,23,42,.08)!important;border-color:#10b981!important;}
.contact-tile.relation-outgoing .contact-avatar{box-shadow:0 0 0 3px rgba(239,68,68,.24),0 8px 20px rgba(15,23,42,.08)!important;border-color:#ef4444!important;}
.contact-tile.relation-mutual .contact-avatar{border-color:transparent!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#10b981 0 48%,#ef4444 52% 100%) border-box!important;box-shadow:0 0 0 3px rgba(124,58,237,.14),0 8px 20px rgba(15,23,42,.08)!important;}
.contact-tile.has-active-story .contact-avatar:after{content:'';position:absolute!important;inset:-7px!important;border-radius:999px!important;border:2px solid #f59e0b!important;pointer-events:none!important;animation:storyPulse 1.8s ease-in-out infinite;}
@keyframes storyPulse{0%,100%{opacity:.55;transform:scale(.98)}50%{opacity:1;transform:scale(1.04)}}
.contact-story-open{position:absolute!important;left:50%!important;top:46px!important;transform:translateX(-30px)!important;width:18px!important;height:18px!important;border-radius:999px!important;display:grid!important;place-items:center!important;text-decoration:none!important;background:#f59e0b!important;color:#fff!important;font-size:10px!important;box-shadow:0 0 0 3px #fff!important;z-index:4!important;}
.story-audience-form:not(.is-custom) .contact-select-input,.story-audience-form:not(.is-custom) .contact-check{display:none!important;}
.story-audience-form.is-custom .contact-check{display:grid!important;background:#fff!important;color:#111827!important;border:1px solid rgba(17,24,39,.16)!important;}
.story-audience-form.is-custom .contact-select-input:checked~.contact-check{background:#111827!important;color:#fff!important;border-color:#111827!important;}
.story-mini-bars{display:grid!important;gap:8px!important;margin:8px 0 12px!important;}
.story-mini-bars span{display:grid!important;grid-template-columns:44px 1fr!important;align-items:center!important;gap:8px!important;position:relative!important;overflow:hidden!important;min-height:34px!important;border-radius:15px!important;background:#f8fafc!important;border:1px solid rgba(17,24,39,.06)!important;padding:6px 9px!important;}
.story-mini-bars span:before{content:'';position:absolute;inset:0 auto 0 0;width:var(--w,0%);background:rgba(124,58,237,.12)!important;}
.story-mini-bars b,.story-mini-bars em{position:relative!important;z-index:1!important;}
.story-mini-bars b{direction:ltr!important;color:#111827!important;font-size:14px!important;}.story-mini-bars em{font-style:normal!important;color:#64748b!important;font-size:11px!important;font-weight:900!important;}
.story-viewer-list{display:flex!important;gap:8px!important;overflow-x:auto!important;padding-bottom:4px!important;}
.story-viewer-list a{min-width:64px!important;text-align:center!important;text-decoration:none!important;color:#334155!important;font-size:10px!important;font-weight:850!important;}
.story-viewer-list img,.story-viewer-list i{width:42px!important;height:42px!important;border-radius:999px!important;display:grid!important;place-items:center!important;object-fit:cover!important;background:#f1f5f9!important;color:#111827!important;margin:0 auto 4px!important;font-style:normal!important;}
.story-view-page{min-height:calc(100dvh - 100px)!important;padding:8px 10px 96px!important;display:grid!important;place-items:center!important;background:#08070c!important;margin:-8px -12px 0!important;}
.story-view-shell{width:min(430px,100%)!important;height:min(760px,calc(100dvh - 118px))!important;border-radius:28px!important;background:#000!important;overflow:hidden!important;position:relative!important;box-shadow:0 24px 80px rgba(0,0,0,.38)!important;}
.story-view-header{position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:3!important;display:grid!important;grid-template-columns:38px 40px minmax(0,1fr)!important;gap:8px!important;align-items:center!important;padding:12px!important;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,0))!important;color:#fff!important;}
.story-view-header a{width:34px!important;height:34px!important;border-radius:999px!important;background:rgba(255,255,255,.18)!important;color:#fff!important;text-decoration:none!important;display:grid!important;place-items:center!important;font-size:27px!important;}
.story-view-header img,.story-view-header i{width:38px!important;height:38px!important;border-radius:999px!important;object-fit:cover!important;display:grid!important;place-items:center!important;background:#111827!important;font-style:normal!important;}
.story-view-header b,.story-view-header small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}.story-view-header small{opacity:.82!important;font-size:11px!important;direction:ltr!important;}
.story-view-media{width:100%!important;height:100%!important;display:grid!important;place-items:center!important;}
.story-view-media video,.story-view-media img{width:100%!important;height:100%!important;object-fit:cover!important;background:#000!important;}
.story-viewers-sheet{position:absolute!important;left:12px!important;right:12px!important;bottom:12px!important;z-index:4!important;border-radius:20px!important;background:rgba(255,255,255,.92)!important;padding:10px!important;max-height:210px!important;overflow:auto!important;}
.story-viewers-sheet b{display:block!important;margin-bottom:8px!important;color:#111827!important;}.story-viewers-sheet div{display:grid!important;gap:6px!important}.story-viewers-sheet a{display:flex!important;align-items:center!important;gap:8px!important;text-decoration:none!important;color:#111827!important;font-size:12px!important;font-weight:850!important}.story-viewers-sheet img,.story-viewers-sheet i{width:30px!important;height:30px!important;border-radius:999px!important;object-fit:cover!important;background:#f1f5f9!important;display:grid!important;place-items:center!important;font-style:normal!important;}
@media(max-width:480px){.story-stats-panel{gap:5px!important}.story-stats-panel div{border-radius:15px!important;padding:8px 3px!important}.story-stats-panel b{font-size:16px!important}.story-stats-panel span{font-size:8.5px!important}.story-publish-card{grid-template-columns:1fr!important}.contacts-story-upload,.story-delete-form{width:100%!important}.contacts-story-upload button,.story-delete-form button{flex:1!important}.story-mode-pills{gap:6px!important}.story-mode-pill span,.story-clear-btn,.story-save-btn{height:36px!important;padding:0 10px!important;font-size:11px!important}.contact-story-open{top:43px!important}}
/* v152 END */

/* v153 moments: softer naming, avatar-plus publish, relation dots only */
.moments-page{max-width:760px!important;margin:0 auto!important;padding:14px 12px 104px!important;direction:rtl!important;}
.moments-header{justify-content:flex-start!important;margin-bottom:10px!important;}
.moments-header h1{font-size:22px!important;font-weight:1000!important;letter-spacing:-.3px!important;}
.moments-header small{display:block!important;color:#64748b!important;font-size:11px!important;font-weight:800!important;line-height:1.7!important;margin-top:2px!important;}
.moments-compose-card{background:linear-gradient(180deg,#fff,#fbfaff)!important;border:1px solid rgba(124,58,237,.10)!important;border-radius:26px!important;padding:12px!important;margin:8px 0 12px!important;box-shadow:0 16px 42px rgba(31,41,55,.07)!important;}
.moments-compose-form{display:grid!important;grid-template-columns:auto minmax(0,1fr) 42px auto!important;align-items:center!important;gap:10px!important;}
.moment-avatar-uploader{position:relative!important;width:62px!important;height:62px!important;border-radius:999px!important;display:grid!important;place-items:center!important;background:#f3f0ff!important;border:3px solid #fff!important;box-shadow:0 10px 24px rgba(15,23,42,.09)!important;cursor:pointer!important;color:#1f2937!important;font-weight:1000!important;}
.moment-avatar-uploader.has-story{border-color:#ef4444!important;box-shadow:0 0 0 4px rgba(239,68,68,.16),0 12px 26px rgba(239,68,68,.15)!important;}
.moment-avatar-uploader img,.moment-avatar-uploader i{width:100%!important;height:100%!important;border-radius:inherit!important;object-fit:cover!important;display:grid!important;place-items:center!important;font-style:normal!important;background:#ede9fe!important;}
.moment-avatar-uploader input{display:none!important;}
.moment-plus{position:absolute!important;right:-4px!important;bottom:1px!important;width:24px!important;height:24px!important;border-radius:999px!important;background:#111827!important;color:#fff!important;border:3px solid #fff!important;display:grid!important;place-items:center!important;font-size:15px!important;font-weight:1000!important;line-height:1!important;box-shadow:0 7px 18px rgba(17,24,39,.22)!important;}
.moment-compose-copy{min-width:0!important;}
.moment-compose-copy b{display:block!important;font-size:14px!important;font-weight:1000!important;color:#111827!important;}
.moment-compose-copy small{display:block!important;margin-top:3px!important;color:#64748b!important;font-size:11px!important;font-weight:800!important;line-height:1.55!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.moment-search-action{width:42px!important;height:42px!important;border-radius:16px!important;display:grid!important;place-items:center!important;text-decoration:none!important;background:#f8fafc!important;color:#111827!important;border:1px solid rgba(17,24,39,.08)!important;font-size:24px!important;font-weight:1000!important;}
.moment-publish-btn{height:42px!important;border:0!important;border-radius:16px!important;background:#111827!important;color:#fff!important;padding:0 14px!important;font-weight:1000!important;cursor:pointer!important;box-shadow:0 12px 28px rgba(17,24,39,.16)!important;}
.moments-compose-form.is-uploading .moment-publish-btn{opacity:.65!important;pointer-events:none!important;}
.moment-active-actions{display:flex!important;align-items:center!important;gap:8px!important;margin-top:10px!important;}
.moment-active-actions a,.moment-active-actions button{height:36px!important;border-radius:999px!important;border:1px solid rgba(17,24,39,.08)!important;background:#fff!important;color:#111827!important;text-decoration:none!important;padding:0 13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:950!important;font-size:12px!important;cursor:pointer!important;}
.moment-active-actions button{background:#fff1f2!important;color:#be123c!important;border-color:rgba(225,29,72,.14)!important;}
.moments-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.moments-stats .stat-purple{border-color:rgba(124,58,237,.22)!important;background:linear-gradient(180deg,#fff,#f5f3ff)!important;}
.moments-stats .stat-yellow{border-color:rgba(234,179,8,.30)!important;background:linear-gradient(180deg,#fff,#fefce8)!important;}
.moments-audience-panel{border-radius:26px!important;}
.moments-mode-pills .story-mode-pill input:checked+span{background:#7c3aed!important;border-color:#7c3aed!important;box-shadow:0 10px 22px rgba(124,58,237,.18)!important;}
.moments-legend{margin-top:5px!important;}
.legend-purple{background:#8b5cf6!important}.legend-yellow{background:#facc15!important}.legend-red-ring{background:#ef4444!important;box-shadow:0 0 0 2px rgba(239,68,68,.18)!important;}
.moments-grid .contact-avatar,.moments-grid .contact-tile.relation-incoming .contact-avatar,.moments-grid .contact-tile.relation-outgoing .contact-avatar,.moments-grid .contact-tile.relation-both .contact-avatar,.moments-grid .contact-tile.relation-mutual .contact-avatar{border:2px solid #fff!important;background:#f1f5f9!important;box-shadow:0 8px 20px rgba(15,23,42,.08)!important;overflow:visible!important;}
.moments-grid .contact-avatar img{border-radius:999px!important;overflow:hidden!important;}
.moments-grid .contact-avatar:before{content:''!important;display:none!important;}
.moments-grid .contact-tile.has-active-story .contact-avatar{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.16),0 8px 20px rgba(15,23,42,.08)!important;}
.moments-grid .contact-tile.has-active-story .contact-avatar:after{content:''!important;position:absolute!important;inset:-6px!important;border-radius:999px!important;border:2px solid #ef4444!important;pointer-events:none!important;animation:storyPulse 1.8s ease-in-out infinite!important;}
.relation-dots{position:absolute!important;right:50%!important;bottom:-7px!important;transform:translateX(50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;z-index:5!important;}
.relation-dots i{width:10px!important;height:10px!important;border-radius:999px!important;border:2px solid #fff!important;display:block!important;box-shadow:0 2px 8px rgba(15,23,42,.18)!important;}
.dot-purple{background:#8b5cf6!important}.dot-yellow{background:#facc15!important;}
.moments-grid .contact-story-open{left:50%!important;top:45px!important;transform:translateX(-31px)!important;background:#ef4444!important;color:#fff!important;font-size:8px!important;width:18px!important;height:18px!important;}
.moments-analytics{border-radius:26px!important;}
.story-audience-form:not(.is-custom) .contact-select-input,.story-audience-form:not(.is-custom) .contact-check{display:none!important;}
.story-audience-form.is-custom .contact-check{display:grid!important;background:#fff!important;color:#111827!important;border:1px solid rgba(17,24,39,.16)!important;}
.story-audience-form.is-custom .contact-select-input:checked~.contact-check{background:#7c3aed!important;color:#fff!important;border-color:#7c3aed!important;}
.contacts-search-box button{font-size:22px!important;line-height:1!important;}
@media(max-width:480px){.moments-compose-form{grid-template-columns:auto minmax(0,1fr) 38px!important}.moment-publish-btn{grid-column:1/-1!important;width:100%!important}.moment-avatar-uploader{width:58px!important;height:58px!important}.moments-stats{gap:5px!important}.moments-stats span{font-size:8.5px!important}.moment-compose-copy small{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}}
/* v153 END */

/* v154 story redesign: profile publish, chat suggested frame, clean audience, hall gate */
.ds-bottom-nav.nav-five{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
.profile-story-avatar-form{margin:0;display:grid;place-items:center;}
.profile-story-uploader{position:relative!important;display:grid!important;place-items:center!important;border-radius:50%!important;cursor:pointer!important;text-decoration:none!important;}
.profile-story-uploader.has-story{background:linear-gradient(135deg,#ff1744,#ff5a7a,#ff0033)!important;padding:3px!important;box-shadow:0 8px 24px rgba(255,23,68,.22)!important;}
.profile-story-uploader.has-story img,.profile-story-uploader.has-story .profile-avatar-fallback{border:3px solid #fff!important;}
.profile-story-plus{position:absolute!important;right:2px!important;bottom:2px!important;width:28px!important;height:28px!important;border-radius:999px!important;background:#1d9bf0!important;color:#fff!important;display:grid!important;place-items:center!important;font-size:22px!important;font-weight:900!important;border:3px solid #fff!important;line-height:1!important;box-shadow:0 6px 18px rgba(29,155,240,.32)!important;z-index:3!important;}
.profile-story-uploader input[type=file]{position:absolute!important;inset:0!important;opacity:0!important;cursor:pointer!important;}
.profile-story-view-mini{margin-top:6px!important;font-size:12px!important;font-weight:900!important;color:#ef1749!important;text-decoration:none!important;}
.public-story-link{overflow:visible!important;}

.cchat-story-suggest-card{margin:12px 0 14px!important;padding:12px!important;border:1px solid rgba(124,58,237,.14)!important;background:linear-gradient(180deg,#fff,#fbf9ff)!important;border-radius:24px!important;box-shadow:0 12px 32px rgba(17,24,39,.06)!important;}
.cchat-story-suggest-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important;}
.cchat-story-suggest-head b{font-size:14px!important;font-weight:1000!important;color:#111827!important;}
.cchat-story-suggest-head small{display:block!important;color:#6b7280!important;font-size:11px!important;margin-top:2px!important;}
.cchat-all-contacts-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:0 12px!important;border-radius:999px!important;background:#111827!important;color:#fff!important;font-size:12px!important;font-weight:900!important;text-decoration:none!important;white-space:nowrap!important;}
.cchat-suggested-strip{border:0!important;padding:0!important;margin:0!important;background:transparent!important;}
.story-contact-avatar{position:relative!important;}
.cchat-user-chip-wrap.has-active-story .story-contact-avatar,.contact-tile.has-active-story .moments-avatar,.story-gate-user.has-active-story span{background:linear-gradient(135deg,#ff1744,#ff5a7a,#ff0033)!important;padding:3px!important;border-radius:999px!important;box-shadow:0 8px 24px rgba(255,23,68,.22)!important;}
.cchat-user-chip-wrap.has-active-story .story-contact-avatar img,.contact-tile.has-active-story .moments-avatar img,.story-gate-user.has-active-story img{border:2px solid #fff!important;}
.story-contact-dot,.single-relation-dot{position:absolute!important;right:3px!important;bottom:3px!important;width:11px!important;height:11px!important;border-radius:999px!important;border:2px solid #fff!important;box-shadow:0 2px 7px rgba(0,0,0,.18)!important;z-index:4!important;}
.dot-follower{background:#8b5cf6!important;}
.dot-following{background:#facc15!important;}
.relation-dots{display:none!important;}

.story-audience-clean-page{padding-bottom:110px!important;}
.story-audience-clean-header{margin-bottom:10px!important;}
.story-audience-clean-header h1{font-size:20px!important;margin:0!important;}
.story-audience-clean-form{display:block!important;}
.story-top-choice-row{position:sticky!important;top:0!important;z-index:6!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(16px)!important;padding:8px 0 10px!important;}
.story-top-choice-row label,.story-select-toggle{height:38px!important;border-radius:999px!important;border:1px solid rgba(17,24,39,.10)!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;font-weight:900!important;color:#111827!important;box-shadow:0 6px 18px rgba(17,24,39,.04)!important;}
.story-top-choice-row input{display:none!important;}
.story-top-choice-row label:has(input:checked){background:#111827!important;color:#fff!important;border-color:#111827!important;}
.story-select-toggle{cursor:pointer!important;color:#7c3aed!important;}
.story-audience-clean-form.is-selecting .story-select-toggle{background:#7c3aed!important;color:#fff!important;}
.story-selection-actions{display:none!important;gap:8px!important;margin:8px 0!important;}
.story-audience-clean-form.is-selecting .story-selection-actions{display:flex!important;}
.story-selection-actions button{height:38px!important;border:0!important;border-radius:999px!important;padding:0 14px!important;font-weight:900!important;}
.story-selection-actions .story-save-btn{background:#16a34a!important;color:#fff!important;}
.story-selection-actions .story-clear-btn{background:#fee2e2!important;color:#b91c1c!important;}
.story-filter-mini-tabs{display:flex!important;gap:8px!important;margin:8px 0 12px!important;overflow:auto!important;}
.story-filter-mini-tabs a{padding:7px 12px!important;border-radius:999px!important;background:#f3f4f6!important;color:#374151!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;}
.story-filter-mini-tabs a.active{background:#ede9fe!important;color:#6d28d9!important;}
.story-clean-grid .contact-tile{position:relative!important;}
.story-clean-grid .contact-select-input,.story-clean-grid .contact-check{display:none!important;}
.story-audience-clean-form.is-selecting .story-clean-grid .contact-select-input{display:block!important;position:absolute!important;opacity:0!important;pointer-events:none!important;}
.story-audience-clean-form.is-selecting .story-clean-grid .contact-check{display:grid!important;position:absolute!important;top:4px!important;left:4px!important;width:24px!important;height:24px!important;place-items:center!important;border-radius:999px!important;background:#e5e7eb!important;color:#fff!important;font-weight:1000!important;z-index:5!important;}
.story-audience-clean-form.is-selecting .story-clean-grid .contact-select-input:checked + .contact-check{background:#7c3aed!important;}
.story-clear-custom-form{text-align:center!important;margin:16px 0!important;}
.story-clear-custom-form button{border:0!important;background:#f9fafb!important;border-radius:999px!important;padding:9px 16px!important;font-weight:900!important;color:#6b7280!important;}

.story-gate-overlay{position:fixed!important;inset:0!important;z-index:9999!important;display:grid!important;place-items:center!important;padding:18px!important;}
.story-gate-blur{position:absolute!important;inset:0!important;background:rgba(15,23,42,.48)!important;backdrop-filter:blur(14px)!important;}
.story-gate-panel{position:relative!important;width:min(560px,100%)!important;max-height:82vh!important;border-radius:30px!important;background:#fff!important;padding:16px!important;box-shadow:0 30px 80px rgba(0,0,0,.30)!important;overflow:hidden!important;}
.story-gate-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:14px!important;}
.story-gate-head b{font-size:18px!important;font-weight:1000!important;color:#111827!important;}
.story-gate-head button{border:0!important;background:#f3f4f6!important;border-radius:999px!important;padding:8px 12px!important;font-weight:900!important;color:#374151!important;}
.story-gate-strip{display:flex!important;gap:14px!important;overflow-x:auto!important;padding:2px 2px 16px!important;scroll-snap-type:x mandatory!important;}
.story-gate-user{width:76px!important;flex:0 0 76px!important;text-align:center!important;text-decoration:none!important;color:#111827!important;scroll-snap-align:start!important;}
.story-gate-user span{position:relative!important;width:68px!important;height:68px!important;border-radius:50%!important;margin:0 auto 6px!important;display:grid!important;place-items:center!important;background:#f3f4f6!important;font-weight:1000!important;}
.story-gate-user img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;}
.story-gate-user small{display:block!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.story-gate-big-skip{width:100%!important;height:48px!important;border:0!important;border-radius:18px!important;background:#111827!important;color:#fff!important;font-weight:1000!important;font-size:14px!important;}
body.story-gate-open{overflow:hidden!important;}

/* v154 END */

/* v156 story seen state, auto-player polish, and full-screen hall story gate */
.profile-story-uploader.has-story.story-seen,
.public-story-link.has-story.story-seen{
  background:linear-gradient(135deg,#9ca3af,#6b7280,#d1d5db)!important;
  box-shadow:0 8px 20px rgba(107,114,128,.18)!important;
}
.cchat-user-chip-wrap.has-active-story.story-seen .story-contact-avatar,
.contact-tile.has-active-story.story-seen .moments-avatar,
.story-gate-user.has-active-story.story-seen span{
  background:linear-gradient(135deg,#9ca3af,#6b7280,#d1d5db)!important;
  box-shadow:0 8px 18px rgba(107,114,128,.16)!important;
}
.contact-tile.has-active-story.story-seen .contact-avatar:after{border-color:#9ca3af!important;animation:none!important;opacity:.88!important;}
.story-progress-track{position:absolute!important;top:7px!important;left:12px!important;right:12px!important;height:3px!important;border-radius:999px!important;background:rgba(255,255,255,.32)!important;z-index:5!important;overflow:hidden!important;}
.story-progress-track span{display:block!important;width:0;height:100%!important;border-radius:inherit!important;background:#fff!important;transition:width .08s linear!important;}
.story-view-media video{pointer-events:none!important;}
.story-view-header{top:8px!important;}
.story-viewers-sheet{background:rgba(255,255,255,.88)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;}
.story-gate-v156{display:block!important;padding:0!important;background:rgba(5,7,14,.64)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;}
.story-gate-v156 .story-gate-blur{display:none!important;}
.story-gate-v156 .story-gate-panel{position:absolute!important;inset:0!important;width:100%!important;max-height:none!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;overflow:hidden!important;}
.story-gate-v156 .story-gate-strip{position:absolute!important;top:calc(env(safe-area-inset-top,0px) + 22px)!important;left:0!important;right:0!important;display:flex!important;gap:16px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:8px 18px 14px!important;scroll-snap-type:x mandatory!important;-webkit-overflow-scrolling:touch!important;background:transparent!important;}
.story-gate-v156 .story-gate-strip::-webkit-scrollbar{display:none!important;}
.story-gate-v156 .story-gate-user{width:72px!important;flex:0 0 72px!important;text-align:center!important;color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.28)!important;}
.story-gate-v156 .story-gate-user span{width:66px!important;height:66px!important;margin:0 auto 7px!important;border:0!important;}
.story-gate-v156 .story-gate-user img{border:2px solid #0b0f1a!important;}
.story-gate-v156 .story-gate-user small{color:#fff!important;font-weight:900!important;font-size:10.5px!important;}
.story-gate-v156 .single-relation-dot{right:4px!important;bottom:3px!important;}
.story-gate-v156 .story-gate-big-skip{position:absolute!important;left:50%!important;bottom:calc(env(safe-area-inset-bottom,0px) + 22vh)!important;transform:translateX(-50%)!important;width:min(300px,72vw)!important;height:50px!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;color:#111827!important;font-size:14px!important;font-weight:1000!important;box-shadow:0 18px 40px rgba(0,0,0,.25)!important;}
@media(max-width:480px){
  .story-gate-v156 .story-gate-strip{gap:13px!important;padding-inline:14px!important;}
  .story-gate-v156 .story-gate-user{width:66px!important;flex-basis:66px!important;}
  .story-gate-v156 .story-gate-user span{width:60px!important;height:60px!important;}
  .story-gate-v156 .story-gate-big-skip{bottom:calc(env(safe-area-inset-bottom,0px) + 20vh)!important;width:min(286px,76vw)!important;}
}
/* v156 END */


/* v157 story gate: reliable skip, circular story items, profile backdrop return */
.story-gate-v157{position:fixed!important;inset:0!important;z-index:9999!important;display:block!important;padding:0!important;background:rgba(5,7,14,.68)!important;backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important;}
.story-gate-v157 .story-gate-blur{display:none!important;}
.story-gate-v157 .story-gate-panel{position:absolute!important;inset:0!important;width:100%!important;max-height:none!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;overflow:hidden!important;}
.story-gate-v157 .story-gate-strip{position:absolute!important;top:calc(env(safe-area-inset-top,0px) + 20px)!important;left:0!important;right:0!important;display:flex!important;gap:15px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 18px 18px!important;scroll-snap-type:x mandatory!important;-webkit-overflow-scrolling:touch!important;background:transparent!important;}
.story-gate-v157 .story-gate-strip::-webkit-scrollbar{display:none!important;}
.story-gate-v157 .story-gate-user{width:74px!important;flex:0 0 74px!important;text-align:center!important;text-decoration:none!important;color:#fff!important;scroll-snap-align:start!important;text-shadow:0 2px 10px rgba(0,0,0,.36)!important;}
.story-gate-v157 .story-gate-user>span{position:relative!important;width:68px!important;height:68px!important;border-radius:50%!important;margin:0 auto 7px!important;display:grid!important;place-items:center!important;padding:3px!important;background:linear-gradient(135deg,#ff1744,#ff3d5f,#ff7a90)!important;box-shadow:0 8px 24px rgba(255,23,68,.28)!important;color:#fff!important;font-size:20px!important;font-weight:1000!important;line-height:1!important;overflow:visible!important;}
.story-gate-v157 .story-gate-user.story-seen>span{background:linear-gradient(135deg,#9ca3af,#6b7280,#d1d5db)!important;box-shadow:0 8px 20px rgba(107,114,128,.22)!important;}
.story-gate-v157 .story-gate-user>span img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;border:2px solid rgba(7,10,18,.95)!important;background:#111827!important;display:block!important;}
.story-gate-v157 .story-gate-user small{display:block!important;max-width:74px!important;color:#fff!important;font-weight:900!important;font-size:10.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.story-gate-v157 .single-relation-dot{position:absolute!important;right:5px!important;bottom:4px!important;z-index:2!important;border:2px solid #070a12!important;}
.story-gate-v157 .story-gate-big-skip{position:absolute!important;left:50%!important;bottom:calc(env(safe-area-inset-bottom,0px) + 22vh)!important;transform:translateX(-50%)!important;width:min(310px,76vw)!important;height:52px!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.96)!important;color:#111827!important;font-size:14px!important;font-weight:1000!important;box-shadow:0 18px 44px rgba(0,0,0,.28)!important;z-index:4!important;}
.story-gate-v157 .story-gate-big-skip:active{transform:translateX(-50%) scale(.98)!important;}
body.story-gate-open{overflow:hidden!important;}
@media(max-width:480px){
  .story-gate-v157 .story-gate-strip{gap:13px!important;padding-inline:14px!important;}
  .story-gate-v157 .story-gate-user{width:68px!important;flex-basis:68px!important;}
  .story-gate-v157 .story-gate-user>span{width:62px!important;height:62px!important;}
  .story-gate-v157 .story-gate-big-skip{bottom:calc(env(safe-area-inset-bottom,0px) + 20vh)!important;width:min(292px,78vw)!important;}
}
/* v157 END */

/* v158 story audience lists, follower/following dots, upload reliability */
.dot-follower{background:#22c55e!important;}
.dot-following{background:#facc15!important;}
.story-audience-v158 .story-top-choice-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;position:sticky!important;top:0!important;z-index:10!important;}
.story-audience-v158 .story-top-choice-row a.story-select-toggle{text-decoration:none!important;}
.story-audience-v158 .story-custom-list-panel{display:none!important;margin:10px 0 12px!important;padding:12px!important;border-radius:22px!important;border:1px solid rgba(17,24,39,.08)!important;background:linear-gradient(180deg,#fff,#f8fafc)!important;box-shadow:0 14px 32px rgba(15,23,42,.05)!important;}
.story-audience-v158 .story-audience-clean-form:has(input[name="story_mode"][value="custom"]:checked) .story-custom-list-panel{display:block!important;}
.custom-list-title{font-size:12px!important;font-weight:1000!important;color:#111827!important;margin-bottom:8px!important;}
.custom-list-row{display:flex!important;gap:8px!important;overflow-x:auto!important;padding-bottom:4px!important;-webkit-overflow-scrolling:touch!important;}
.custom-list-row::-webkit-scrollbar{display:none!important;}
.custom-list-chip{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:6px!important;min-height:38px!important;border-radius:999px!important;border:1px solid rgba(17,24,39,.10)!important;background:#fff!important;padding:4px 7px 4px 4px!important;box-shadow:0 8px 20px rgba(15,23,42,.05)!important;}
.custom-list-chip.active{border-color:#111827!important;background:#111827!important;color:#fff!important;}
.custom-list-chip label{display:flex!important;align-items:center!important;gap:6px!important;margin:0!important;cursor:pointer!important;}
.custom-list-chip input{display:none!important;}
.custom-list-chip span{font-size:12px!important;font-weight:950!important;white-space:nowrap!important;}
.custom-list-chip small{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;margin-inline-start:4px!important;border-radius:999px!important;background:rgba(124,58,237,.10)!important;color:#7c3aed!important;font-size:10px!important;font-weight:1000!important;}
.custom-list-chip.active small{background:rgba(255,255,255,.18)!important;color:#fff!important;}
.custom-list-edit,.custom-list-delete{width:28px!important;height:28px!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:0!important;text-decoration:none!important;font-size:11px!important;font-weight:950!important;}
.custom-list-edit{background:#f5f3ff!important;color:#6d28d9!important;padding:0 8px!important;width:auto!important;}
.custom-list-delete{background:#fff1f2!important;color:#be123c!important;cursor:pointer!important;}
.custom-list-empty{font-size:12px!important;font-weight:850!important;color:#64748b!important;line-height:1.8!important;}
.story-selection-v158{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important;margin:10px 0 12px!important;padding:10px!important;border-radius:22px!important;background:#f8fafc!important;border:1px solid rgba(17,24,39,.08)!important;}
.story-selection-v158 .custom-list-name-input{height:42px!important;border-radius:16px!important;font-size:13px!important;font-weight:850!important;}
.story-selection-v158 .story-save-btn,.story-selection-v158 .story-clear-btn{height:42px!important;white-space:nowrap!important;}
.story-relation-legend-v158{margin:8px 2px 12px!important;}
.story-relation-legend-v158 .dot-follower{background:#22c55e!important;}
.story-relation-legend-v158 .dot-following{background:#facc15!important;}
.story-audience-v158 .contact-tile:not(.has-active-story) .moments-avatar:after{display:none!important;}
.story-audience-v158 .contact-tile.has-active-story:not(.story-seen) .moments-avatar:after{border-color:#ff1744!important;}
.story-audience-v158 .contact-tile.has-active-story.story-seen .moments-avatar:after{border-color:#9ca3af!important;}
.profile-story-avatar-form.is-uploading .profile-avatar-wrap{opacity:.72!important;pointer-events:none!important;}
.profile-story-avatar-form.is-uploading .profile-story-plus{background:#111827!important;color:#fff!important;animation:pulse 1s infinite!important;}
@media(max-width:480px){
  .story-audience-v158 .story-top-choice-row{gap:5px!important;}
  .story-audience-v158 .story-top-choice-row label,.story-audience-v158 .story-select-toggle{font-size:11px!important;height:36px!important;}
  .story-selection-v158{grid-template-columns:1fr!important;}
  .story-selection-v158 .story-save-btn,.story-selection-v158 .story-clear-btn{width:100%!important;}
}
/* v158 END */
.story-audience-v158 .story-audience-clean-form.is-selecting .story-selection-v158{display:grid!important;}
.story-audience-v158 .story-audience-clean-form.is-custom .story-custom-list-panel{display:block!important;}


/* v160 safe story audience tabs: links instead of crash-prone auto POST radios */
.story-audience-v160 .story-top-choice-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;position:sticky!important;top:0!important;z-index:10!important;}
.story-audience-v160 .story-choice-pill,.story-audience-v160 .story-select-toggle{height:38px!important;border-radius:999px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;background:#fff!important;border:1px solid rgba(17,24,39,.10)!important;color:#111827!important;font-size:12px!important;font-weight:950!important;box-shadow:0 8px 20px rgba(15,23,42,.05)!important;}
.story-audience-v160 .story-choice-pill.active{background:#111827!important;color:#fff!important;border-color:#111827!important;}
.story-audience-v160 .story-audience-clean-form.is-custom .story-custom-list-panel{display:block!important;}
.story-audience-v160 .story-audience-clean-form.is-selecting .story-selection-v158{display:grid!important;}
@media(max-width:480px){.story-audience-v160 .story-top-choice-row{gap:5px!important}.story-audience-v160 .story-choice-pill,.story-audience-v160 .story-select-toggle{font-size:11px!important;height:36px!important}}
/* v160 END */

.story-audience-v160 .story-audience-clean-form:not(.is-custom) .story-custom-list-panel{display:none!important;}

/* v162 story audience fixes: counters, fallback custom lists, safe dots */
.story-audience-v162 .story-top-choice-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;position:sticky!important;top:0!important;z-index:10!important;background:rgba(248,247,255,.86)!important;backdrop-filter:blur(10px)!important;-webkit-backdrop-filter:blur(10px)!important;padding:6px 0!important;}
.story-audience-v162 .story-choice-pill,.story-audience-v162 .story-select-toggle{min-height:44px!important;border-radius:16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;background:#fff!important;border:1px solid rgba(17,24,39,.10)!important;color:#111827!important;font-size:11px!important;font-weight:950!important;box-shadow:0 8px 20px rgba(15,23,42,.05)!important;line-height:1.1!important;}
.story-audience-v162 .story-choice-pill b{font-size:11px!important;font-weight:1000!important;line-height:1!important;}
.story-audience-v162 .story-choice-pill small{margin-top:4px!important;font-size:10px!important;font-weight:1000!important;color:#7c6f9e!important;line-height:1!important;}
.story-audience-v162 .story-choice-pill.active{background:#111827!important;color:#fff!important;border-color:#111827!important;}
.story-audience-v162 .story-choice-pill.active small{color:#fff!important;opacity:.82!important;}
.story-audience-v162 .story-audience-clean-form.is-custom .story-custom-list-panel{display:block!important;}
.story-audience-v162 .story-audience-clean-form:not(.is-custom) .story-custom-list-panel{display:none!important;}
.story-audience-v162 .story-audience-clean-form.is-selecting .story-selection-v158{display:grid!important;}
.story-audience-v162 .dot-follower,.story-audience-v162 .single-relation-dot.dot-follower,.cchat-user-chip-wrap .dot-follower{background:#22c55e!important;box-shadow:0 0 0 2px #fff!important;}
.story-audience-v162 .dot-following,.story-audience-v162 .single-relation-dot.dot-following,.cchat-user-chip-wrap .dot-following{background:#facc15!important;box-shadow:0 0 0 2px #fff!important;}
.story-audience-v162 .custom-list-chip.active{border-color:#ef4444!important;background:#fff1f2!important;box-shadow:0 8px 22px rgba(239,68,68,.10)!important;}
.profile-story-avatar-form.is-uploading .profile-story-plus{font-size:0!important;pointer-events:none!important;}
.profile-story-avatar-form.is-uploading .profile-story-plus:after{content:'...';font-size:13px!important;font-weight:1000!important;}
@media(max-width:480px){.story-audience-v162 .story-top-choice-row{gap:5px!important}.story-audience-v162 .story-choice-pill,.story-audience-v162 .story-select-toggle{min-height:42px!important;border-radius:14px!important}.story-audience-v162 .story-choice-pill b{font-size:10px!important}.story-audience-v162 .story-choice-pill small{font-size:9px!important}}
/* v162 END */


/* v163 story audience: personal has no counter, saved lists panel, ajax upload state */
.story-audience-v163 .story-choice-pill[href*="set_mode=custom"] small{display:none!important;}
.story-audience-v163 .story-audience-clean-form.is-custom .story-custom-list-panel{display:block!important;}
.story-audience-v163 .story-audience-clean-form:not(.is-custom) .story-custom-list-panel{display:none!important;}
.profile-story-avatar-form.is-uploading{pointer-events:none!important;}
.profile-story-avatar-form.is-uploading .profile-story-uploader{opacity:.76!important;}
.profile-story-avatar-form.is-uploading .profile-story-plus{background:#111827!important;color:#fff!important;}
/* v163 END */


/* v164 story upload, viewer, and personal-file audience fixes */
.profile-story-upload-status{position:absolute;left:50%;transform:translateX(-50%);bottom:-28px;z-index:12;width:124px;min-height:20px;border-radius:999px;background:rgba(17,24,39,.90);color:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.22);font-size:9.5px;font-weight:950;text-align:center;line-height:20px;pointer-events:none}.profile-story-upload-status span{position:relative;z-index:2;display:block;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-story-upload-status i{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#ef4444,#fb7185);opacity:.9}.profile-story-avatar-form.is-uploading .profile-story-uploader{filter:saturate(1.05)}.profile-story-avatar-form.is-uploading .profile-story-plus{min-width:36px;width:36px!important;height:28px!important;border-radius:999px!important;font-size:9px!important;right:-7px!important;background:#111827!important;color:#fff!important}
.story-view-page{position:fixed!important;inset:0!important;z-index:99999!important;background:#05050a!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important}.story-view-shell{width:100%!important;height:100dvh!important;max-width:560px!important;border-radius:0!important;box-shadow:none!important}.story-view-media{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;background:#000!important}.story-view-media video,.story-view-media img{width:100%!important;height:100%!important;object-fit:contain!important;background:#000!important}.story-progress-track{position:absolute!important;top:8px!important;left:12px!important;right:12px!important;z-index:8!important;height:3px!important;border-radius:999px!important;background:rgba(255,255,255,.28)!important;overflow:hidden!important}.story-progress-track span{display:block!important;height:100%!important;width:0;background:#fff!important}.story-view-header{z-index:9!important}.story-viewers-sheet{position:absolute!important;left:10px!important;right:10px!important;bottom:14px!important;z-index:9!important;border-radius:22px!important;padding:10px!important;max-height:32vh!important;overflow:auto!important}.story-view-page:after{content:'‹       ›';position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:rgba(255,255,255,.18);font-size:44px;font-weight:200;pointer-events:none;z-index:2}.story-audience-v164 .story-selection-v164{display:grid!important;gap:10px!important;background:linear-gradient(180deg,#fff,#faf7ff)!important;border:1px solid #eadfff!important;border-radius:22px!important;padding:12px!important;box-shadow:0 14px 34px rgba(124,58,237,.07)!important}.story-list-name-step b{display:block!important;font-size:12px!important;font-weight:1000!important;color:#25163d!important;margin-bottom:6px!important}.story-list-pick-step{font-size:11.5px!important;font-weight:850!important;color:#7c6b9c!important;line-height:1.7!important}.story-audience-v164 .custom-list-chip{border-radius:18px!important;padding:5px!important}.story-audience-v164 .custom-list-main{display:flex!important;align-items:center!important;gap:6px!important;min-height:32px!important;padding:0 8px!important;text-decoration:none!important;color:inherit!important}.story-audience-v164 .custom-list-main span{font-size:12px!important;font-weight:1000!important;white-space:nowrap!important}.story-audience-v164 .custom-list-chip.active .custom-list-main{color:#fff!important}.story-audience-v164 .story-choice-pill[href*="set_mode=custom"] small{display:none!important}.story-audience-v164 .story-audience-clean-form.is-custom .story-custom-list-panel{display:block!important}.story-audience-v164 .story-audience-clean-form:not(.is-custom) .story-custom-list-panel{display:none!important}.story-audience-v164:not(.is-selecting) .contact-select-input,.story-audience-v164:not(.is-selecting) .contact-check{display:none!important}.story-audience-v164 .contact-tile.is-selected .moments-avatar{box-shadow:0 0 0 3px #111827!important}
/* v164 END */
.story-audience-v164 .story-audience-clean-form:not(.is-selecting) .contact-select-input,.story-audience-v164 .story-audience-clean-form:not(.is-selecting) .contact-check{display:none!important;}


/* v166 story upload + personal audience files polish */
.story-audience-v166 .custom-list-title:before{content:'📁 ';font-size:13px!important}
.story-audience-v166 .custom-list-row{gap:9px!important;padding:3px 1px 7px!important}
.story-audience-v166 .custom-list-chip{border-radius:20px!important;background:linear-gradient(180deg,#fff,#fbfbff)!important;box-shadow:0 10px 24px rgba(15,23,42,.06)!important}
.story-audience-v166 .custom-list-chip.active{background:linear-gradient(135deg,#ef4444,#7c3aed)!important;border-color:transparent!important;color:#fff!important}
.story-audience-v166 .custom-list-main:before{content:'فایل';display:inline-flex!important;align-items:center!important;justify-content:center!important;height:22px!important;padding:0 7px!important;border-radius:999px!important;background:rgba(124,58,237,.10)!important;color:#7c3aed!important;font-size:10px!important;font-weight:1000!important;margin-inline-end:2px!important}
.story-audience-v166 .custom-list-chip.active .custom-list-main:before{background:rgba(255,255,255,.18)!important;color:#fff!important}
.profile-story-upload-status{position:absolute!important;left:50%!important;top:calc(100% + 8px)!important;transform:translateX(-50%)!important;z-index:20!important;min-width:180px!important;max-width:260px!important;background:rgba(17,24,39,.94)!important;color:#fff!important;border-radius:16px!important;padding:8px 10px!important;box-shadow:0 16px 36px rgba(0,0,0,.22)!important;font-size:11px!important;font-weight:850!important;text-align:center!important;overflow:hidden!important}
.profile-story-upload-status i{display:block!important;height:3px!important;width:0;margin-top:6px!important;border-radius:99px!important;background:#ef4444!important;transition:width .18s ease!important}
.profile-story-avatar-form.is-uploading .profile-story-plus{min-width:36px!important;font-size:11px!important;font-weight:1000!important}


/* v167 story multi-item player + persistent personal files */
.story-view-v167 .story-progress-row{position:absolute!important;top:8px!important;left:12px!important;right:12px!important;z-index:12!important;display:flex!important;gap:5px!important;direction:ltr!important}
.story-view-v167 .story-progress-row .story-progress-track{position:relative!important;inset:auto!important;flex:1!important;height:3px!important;background:rgba(255,255,255,.28)!important;border-radius:99px!important;overflow:hidden!important}
.story-view-v167 .story-progress-track span{display:block!important;height:100%!important;width:0;background:#fff!important;border-radius:99px!important}
.story-view-v167 .story-progress-track.is-done span{width:100%!important}
.story-view-v167 .story-view-header{top:18px!important;right:8px!important;left:8px!important;padding-top:10px!important}
.story-view-v167 .story-view-media video{object-fit:contain!important;background:#000!important}
.story-view-v167 .story-sound-touch{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;z-index:15!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.92)!important;color:#111827!important;padding:10px 16px!important;font:900 12px var(--app-font)!important;box-shadow:0 18px 44px rgba(0,0,0,.28)!important}
.story-viewers-eye{position:absolute!important;left:14px!important;bottom:18px!important;z-index:12!important;height:38px!important;min-width:68px!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.92)!important;color:#111827!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font:1000 13px var(--app-font)!important;box-shadow:0 14px 36px rgba(0,0,0,.26)!important;cursor:pointer!important}.story-viewers-eye span{font-size:17px!important;line-height:1!important}.story-view-v167 .story-viewers-sheet[hidden]{display:none!important}.story-view-v167 .story-viewers-sheet{position:absolute!important;left:10px!important;right:10px!important;bottom:66px!important;z-index:13!important;border-radius:24px!important;background:rgba(255,255,255,.96)!important;color:#111827!important;padding:12px!important;max-height:38vh!important;overflow:auto!important;box-shadow:0 22px 70px rgba(0,0,0,.34)!important}.story-view-v167 .story-viewers-sheet b{display:block!important;margin-bottom:8px!important;font:1000 13px var(--app-font)!important}.story-view-v167 .story-viewers-sheet div{display:grid!important;gap:8px!important}.story-view-v167 .story-viewers-sheet a{display:flex!important;align-items:center!important;gap:9px!important;text-decoration:none!important;color:#111827!important;font:900 12px var(--app-font)!important}.story-view-v167 .story-viewers-sheet img,.story-view-v167 .story-viewers-sheet i{width:34px!important;height:34px!important;border-radius:50%!important;object-fit:cover!important;display:grid!important;place-items:center!important;background:#f1ecff!important;color:#6d28d9!important;font-style:normal!important}.story-audience-v167 .custom-list-row{display:flex!important;flex-wrap:wrap!important;gap:9px!important;overflow:visible!important}.story-audience-v167 .custom-list-chip{min-width:calc(50% - 6px)!important;justify-content:space-between!important}.story-audience-v167 .custom-list-main{flex:1!important}.story-audience-v167 .custom-list-main span{max-width:120px!important;overflow:hidden!important;text-overflow:ellipsis!important}.story-audience-v167 .custom-list-delete{flex:0 0 28px!important}.story-audience-v167 .story-list-name-step{order:-2!important}.story-audience-v167 .story-save-btn{order:4!important}.story-audience-v167 .custom-list-empty{background:#fff!important;border:1px dashed #ddd6fe!important;border-radius:18px!important;padding:10px!important;text-align:center!important}



/* v168 fixes: footer order, story sound UI removal, persistent custom groups */
.ds-bottom-nav.nav-fixed-rtl{direction:rtl!important;grid-auto-flow:column!important;}
.ds-bottom-nav.nav-fixed-rtl>a{direction:ltr!important;}
.ds-bottom-nav.nav-fixed-rtl .create-plus{grid-column:auto!important;}
.story-view-v168 .story-sound-touch{display:none!important;}
.story-view-v168 video[data-story-media]{object-fit:contain!important;background:#000!important;}
.story-audience-v168 .story-audience-clean-form.is-custom .story-custom-list-panel{display:block!important;}
.story-audience-v168 .custom-list-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;overflow:visible!important;}
.story-audience-v168 .custom-list-chip{min-width:0!important;display:flex!important;align-items:center!important;gap:5px!important;}
.story-audience-v168 .custom-list-main{min-width:0!important;flex:1 1 auto!important;}
.story-audience-v168 .custom-list-main span{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.story-audience-v168 .custom-list-chip.active{background:linear-gradient(135deg,#ef4444,#7c3aed)!important;color:#fff!important;border-color:transparent!important;}
.story-audience-v168 .custom-list-edit{font-size:10px!important;font-weight:1000!important;padding:5px 7px!important;border-radius:999px!important;background:rgba(124,58,237,.10)!important;color:#6d28d9!important;}
.story-audience-v168 .custom-list-chip.active .custom-list-edit{background:rgba(255,255,255,.18)!important;color:#fff!important;}
.cchat-user-message-btn{background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#fff!important;border-color:transparent!important;}


/* v169: persistent story groups + clean circular story avatars */
.story-audience-v169 .story-choice-pill[href*="tab=custom"],
.story-audience-v169 .story-choice-pill[href*="set_mode=custom"]{min-width:0!important}
.story-audience-v169 .story-custom-list-panel{display:block!important;margin-top:12px!important}
.story-audience-v169 .story-audience-clean-form:not(.is-custom) .story-custom-list-panel{display:none!important}
.story-audience-v169 .story-audience-clean-form.is-custom .story-custom-list-panel,
.story-audience-v169 .story-audience-clean-page .story-custom-list-panel{display:block!important}
.story-audience-v169 .custom-list-title{font-size:13px!important;font-weight:1000!important;color:#111827!important;margin:3px 0 10px!important;display:flex!important;align-items:center!important;gap:6px!important}
.story-audience-v169 .custom-list-title:before{content:'📁';font-size:15px!important}
.story-audience-v169 .custom-list-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;padding:2px 0 6px!important}
.story-audience-v169 .custom-list-chip{min-width:0!important;min-height:52px!important;border-radius:19px!important;border:1px solid rgba(17,24,39,.10)!important;background:linear-gradient(180deg,#fff,#fbfbff)!important;box-shadow:0 10px 26px rgba(15,23,42,.06)!important;padding:7px!important;display:flex!important;align-items:center!important;gap:6px!important}
.story-audience-v169 .custom-list-chip.active{background:linear-gradient(135deg,#ef4444,#7c3aed)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 14px 32px rgba(124,58,237,.18)!important}
.story-audience-v169 .custom-list-main{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;flex:1!important;color:inherit!important;text-decoration:none!important}
.story-audience-v169 .custom-list-main:before{content:'گروه';flex:0 0 auto!important;height:24px!important;padding:0 8px!important;border-radius:999px!important;background:rgba(124,58,237,.10)!important;color:#7c3aed!important;font-size:10px!important;font-weight:1000!important;display:inline-flex!important;align-items:center!important}
html[lang="en"] .story-audience-v169 .custom-list-main:before{content:'Group'}
.story-audience-v169 .custom-list-chip.active .custom-list-main:before{background:rgba(255,255,255,.18)!important;color:#fff!important}
.story-audience-v169 .custom-list-main span{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;font-weight:1000!important}
.story-audience-v169 .custom-list-main small{background:rgba(17,24,39,.07)!important;color:inherit!important}
.story-audience-v169 .custom-list-edit{height:28px!important;padding:0 8px!important;font-size:10px!important;font-weight:1000!important;border-radius:999px!important;background:rgba(124,58,237,.10)!important;color:#6d28d9!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.story-audience-v169 .custom-list-chip.active .custom-list-edit{background:rgba(255,255,255,.18)!important;color:#fff!important}
.story-audience-v169 .custom-list-delete{width:28px!important;height:28px!important;border-radius:999px!important;background:#fff1f2!important;color:#be123c!important;border:0!important;font-weight:1000!important}
.story-audience-v169 .custom-list-empty-v169{margin:8px 0 12px!important;background:#fff!important;border:1px dashed #ddd6fe!important;border-radius:18px!important;padding:11px!important;text-align:center!important;color:#64748b!important;font-size:12px!important;font-weight:850!important}
.story-audience-v169 .contact-avatar.moments-avatar{width:64px!important;height:64px!important;border-radius:50%!important;overflow:visible!important;display:grid!important;place-items:center!important;position:relative!important;background:#f3f4f6!important}
.story-audience-v169 .contact-avatar.moments-avatar img{width:58px!important;height:58px!important;border-radius:50%!important;object-fit:cover!important;display:block!important;border:2px solid #fff!important;background:#111827!important}
.story-audience-v169 .contact-tile.has-active-story .moments-avatar:after{content:''!important;position:absolute!important;inset:-4px!important;border:3px solid #ef4444!important;border-radius:50%!important;pointer-events:none!important}
.story-audience-v169 .contact-tile.has-active-story.story-seen .moments-avatar:after{border-color:#9ca3af!important}

.story-gate-v169 .story-gate-strip{display:flex!important;align-items:flex-start!important;gap:14px!important;overflow-x:auto!important;padding:10px 18px 8px!important;scroll-snap-type:x proximity!important;-webkit-overflow-scrolling:touch!important;background:transparent!important}
.story-gate-v169 .story-gate-strip::-webkit-scrollbar{display:none!important}
.story-gate-v169 .story-gate-user{width:74px!important;flex:0 0 74px!important;text-align:center!important;color:#fff!important;text-decoration:none!important;scroll-snap-align:start!important;text-shadow:0 2px 10px rgba(0,0,0,.38)!important;display:block!important;line-height:1.1!important}
.story-gate-v169 .story-gate-user>span{position:relative!important;width:66px!important;height:66px!important;border-radius:50%!important;margin:0 auto 7px!important;padding:3px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#ff1744,#ff3d5f,#ff7a90)!important;box-shadow:0 8px 24px rgba(239,68,68,.26)!important;overflow:visible!important;color:#fff!important;font-size:20px!important;font-weight:1000!important}
.story-gate-v169 .story-gate-user.story-seen>span{background:linear-gradient(135deg,#9ca3af,#6b7280,#d1d5db)!important;box-shadow:0 8px 20px rgba(107,114,128,.22)!important}
.story-gate-v169 .story-gate-user>span img{width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;border:2px solid rgba(7,10,18,.95)!important;background:#111827!important;display:block!important}
.story-gate-v169 .story-gate-user>span .single-relation-dot{position:absolute!important;right:1px!important;bottom:1px!important;width:12px!important;height:12px!important;border-radius:50%!important;border:2px solid #0b0f1a!important;z-index:3!important}
.story-gate-v169 .story-gate-user small{display:block!important;width:74px!important;max-width:74px!important;color:#fff!important;font-weight:900!important;font-size:10.5px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0 auto!important;direction:ltr!important}
@media(max-width:430px){.story-gate-v169 .story-gate-user{width:68px!important;flex-basis:68px!important}.story-gate-v169 .story-gate-user>span{width:60px!important;height:60px!important}.story-gate-v169 .story-gate-user small{width:68px!important;max-width:68px!important;font-size:10px!important}}

/* v170: Mobile visual consistency fix - keep backend logic untouched */
@media (max-width: 760px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }
  body{
    display:block!important;
    background:#f7f6ff!important;
  }
  .app-shell{
    width:100%!important;
    max-width:430px!important;
    margin-inline:auto!important;
    min-height:100dvh!important;
    overflow-x:hidden!important;
    border-radius:0!important;
  }
  .container{
    width:100%!important;
    max-width:430px!important;
    margin-inline:auto!important;
    padding-inline:clamp(14px,4vw,20px)!important;
  }
  .ds-bottom-nav{
    width:min(430px,calc(100% - 24px))!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
  }
}

/* v170: make profile post circles proportional again */
@media (max-width: 560px){
  .profile-circle-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px 14px!important;
    justify-items:center!important;
    align-items:start!important;
    margin-top:12px!important;
  }
  .profile-circle-post{
    width:100%!important;
    max-width:168px!important;
    justify-self:center!important;
    gap:7px!important;
  }
  .profile-circle-media{
    width:min(100%,156px)!important;
    max-width:156px!important;
    margin-inline:auto!important;
    border-width:3px!important;
    box-shadow:0 14px 32px rgba(35,24,72,.16),0 0 0 1px #eadfff!important;
  }
  .profile-circle-status,
  .profile-freehall-badge{
    max-width:150px!important;
    margin-inline:auto!important;
  }
}
@media (max-width: 374px){
  .profile-circle-grid{gap:14px 10px!important}
  .profile-circle-post{max-width:154px!important}
  .profile-circle-media{width:min(100%,144px)!important;max-width:144px!important}
}

/* v170: compact filter dropdown rows on target audience page */
.target-service-pro .pretty-panel{
  padding:7px 7px 50px!important;
}
.target-service-pro .pretty-search{
  height:34px!important;
  min-height:34px!important;
  margin-bottom:5px!important;
  font-size:12px!important;
}
.target-service-pro .pretty-options{
  gap:1px!important;
  max-height:178px!important;
}
.target-service-pro .pretty-option{
  min-height:31px!important;
  padding:5px 7px!important;
  gap:6px!important;
  line-height:1.25!important;
  border-radius:9px!important;
  font-size:11.5px!important;
}
.target-service-pro .pretty-option input{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
}
.target-service-pro .pretty-done{
  height:36px!important;
  bottom:7px!important;
}
@media(max-width:760px){
  .target-service-pro .pretty-options{max-height:155px!important}
  .target-service-pro .pretty-option{min-height:30px!important;padding-block:4px!important}
}

/* v172: Strong mobile visual scale lock - keep backend logic untouched */
@media (max-width: 760px){
  :root{
    --mobile-visual-max:390px;
    --mobile-side-pad:12px;
  }
  html{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }
  body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.45!important;
    background:#f7f6ff!important;
  }
  *,*::before,*::after{
    box-sizing:border-box!important;
  }
  .app-shell{
    width:100%!important;
    max-width:var(--mobile-visual-max)!important;
    margin-inline:auto!important;
    overflow-x:hidden!important;
    font-size:14px!important;
    border-radius:0!important;
  }
  .container,
  .ds-page,
  .profile-page,
  .profile-shell,
  .profile-card,
  .story-audience-v169,
  .story-audience-v162,
  .story-audience-v160,
  .target-service-pro{
    max-width:var(--mobile-visual-max)!important;
    margin-inline:auto!important;
  }
  .container{
    padding-inline:var(--mobile-side-pad)!important;
  }
  img,video,canvas,svg{
    max-width:100%!important;
  }
  .ds-topbar{
    max-width:var(--mobile-visual-max)!important;
    margin-inline:auto!important;
  }
  .ds-bottom-nav{
    width:min(var(--mobile-visual-max),calc(100% - 18px))!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
  }
  .btn,
  button,
  input,
  select,
  textarea{
    font-size:13px!important;
  }
}

/* v172: Profile posts must stay elegant 3-column circles on mobile */
@media (max-width: 760px){
  .profile-circle-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:13px 9px!important;
    justify-items:center!important;
    align-items:start!important;
    width:100%!important;
    margin:10px auto 14px!important;
    direction:ltr!important;
  }
  .profile-circle-grid .profile-circle-post{
    width:100%!important;
    max-width:116px!important;
    min-width:0!important;
    justify-self:center!important;
    display:grid!important;
    place-items:center!important;
    gap:5px!important;
    direction:rtl!important;
  }
  .profile-circle-grid .profile-circle-media{
    width:100%!important;
    max-width:108px!important;
    aspect-ratio:1 / 1!important;
    height:auto!important;
    margin-inline:auto!important;
    border-radius:50%!important;
    border-width:2.5px!important;
    box-shadow:0 9px 22px rgba(35,24,72,.12),0 0 0 1px #eadfff!important;
  }
  .profile-circle-grid .profile-circle-media img,
  .profile-circle-grid .profile-circle-media video{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
  }
  .profile-circle-status,
  .profile-freehall-badge{
    max-width:108px!important;
    min-height:0!important;
    padding:3px 6px!important;
    font-size:9.5px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}
@media (max-width: 374px){
  :root{--mobile-side-pad:10px;}
  .profile-circle-grid{gap:12px 7px!important;}
  .profile-circle-grid .profile-circle-post{max-width:104px!important;}
  .profile-circle-grid .profile-circle-media{max-width:98px!important;}
  .profile-circle-status,.profile-freehall-badge{max-width:98px!important;font-size:9px!important;}
}
@media (min-width: 400px) and (max-width:760px){
  .profile-circle-grid .profile-circle-media{max-width:112px!important;}
  .profile-circle-grid .profile-circle-post{max-width:120px!important;}
}

/* v172: Compact dropdown rows on filter/audience pages */
.target-service-pro .pretty-panel,
.story-audience-v169 .pretty-panel,
.story-audience-v162 .pretty-panel{
  padding:6px 6px 46px!important;
  border-radius:15px!important;
}
.target-service-pro .pretty-options,
.story-audience-v169 .pretty-options,
.story-audience-v162 .pretty-options{
  gap:0!important;
  max-height:150px!important;
  padding-block:2px!important;
}
.target-service-pro .pretty-option,
.story-audience-v169 .pretty-option,
.story-audience-v162 .pretty-option{
  min-height:28px!important;
  padding:3px 7px!important;
  gap:5px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1.2!important;
}
.target-service-pro .pretty-option input,
.story-audience-v169 .pretty-option input,
.story-audience-v162 .pretty-option input{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
}
.target-service-pro .pretty-search,
.story-audience-v169 .pretty-search,
.story-audience-v162 .pretty-search{
  height:32px!important;
  min-height:32px!important;
  margin-bottom:4px!important;
  font-size:11.5px!important;
}
.target-service-pro .pretty-done,
.story-audience-v169 .pretty-done,
.story-audience-v162 .pretty-done{
  height:34px!important;
  bottom:6px!important;
  font-size:12px!important;
}

/* v173: refined mobile scale, 3-column profile posts, compact filters, header logo safe - keep backend logic untouched */
@media (max-width: 760px){
  :root{
    --mobile-visual-max:430px;
    --mobile-side-pad:12px;
  }

  body{
    font-size:13.5px!important;
    line-height:1.42!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }

  .app-shell{
    width:100%!important;
    max-width:var(--mobile-visual-max)!important;
    margin-inline:auto!important;
    font-size:13.5px!important;
    overflow-x:hidden!important;
  }

  .container,
  .ds-page,
  .profile-page,
  .profile-shell,
  .profile-card,
  .story-audience-v169,
  .story-audience-v162,
  .story-audience-v160,
  .target-service-pro{
    width:100%!important;
    max-width:var(--mobile-visual-max)!important;
    margin-inline:auto!important;
  }

  .container{
    padding-inline:12px!important;
  }

  /* keep the footer improvement from v172 */
  .ds-bottom-nav{
    width:min(var(--mobile-visual-max),calc(100% - 18px))!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
  }

  /* prevent centered logo from sliding under notification/action icons */
  .ds-topbar{
    width:min(100%,var(--mobile-visual-max))!important;
    max-width:var(--mobile-visual-max)!important;
    padding-inline:10px!important;
    gap:6px!important;
    overflow:hidden!important;
  }
  .brand-side,
  .top-actions{
    position:relative!important;
    z-index:3!important;
    flex:0 0 auto!important;
  }
  .top-actions{
    gap:5px!important;
    max-width:142px!important;
    overflow:visible!important;
  }
  .ds-brand{
    z-index:1!important;
    max-width:calc(100% - 210px)!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    overflow:hidden!important;
    justify-content:center!important;
  }
  .ds-brand img{
    max-width:100%!important;
    max-height:42px!important;
    object-fit:contain!important;
  }
  .auth-mini,
  .icon-bubble,
  .logo-upload-mini{
    width:39px!important;
    height:39px!important;
    min-width:39px!important;
  }
  .auth-mini svg,
  .icon-bubble svg,
  .logo-upload-mini svg{
    width:20px!important;
    height:20px!important;
  }
}

/* v173: profile posts stay 3 columns but no longer become tiny */
@media (max-width: 760px){
  .profile-circle-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    column-gap:6px!important;
    row-gap:14px!important;
    justify-items:center!important;
    align-items:start!important;
    width:calc(100% + 8px)!important;
    margin:12px -4px 16px!important;
    direction:ltr!important;
  }
  .profile-circle-grid .profile-circle-post{
    width:100%!important;
    max-width:132px!important;
    min-width:0!important;
    display:grid!important;
    justify-items:center!important;
    gap:5px!important;
    direction:rtl!important;
  }
  .profile-circle-grid .profile-circle-media{
    width:clamp(108px,30.5vw,126px)!important;
    max-width:126px!important;
    min-width:0!important;
    aspect-ratio:1/1!important;
    height:auto!important;
    border-radius:50%!important;
    border-width:2.5px!important;
    margin-inline:auto!important;
    box-shadow:0 10px 24px rgba(35,24,72,.13),0 0 0 1px #eadfff!important;
  }
  .profile-circle-grid .profile-circle-media img,
  .profile-circle-grid .profile-circle-media video{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
  }
  .profile-circle-status,
  .profile-freehall-badge{
    width:auto!important;
    max-width:118px!important;
    padding:3px 6px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}
@media (max-width: 374px){
  .profile-circle-grid{column-gap:4px!important;width:calc(100% + 10px)!important;margin-inline:-5px!important;}
  .profile-circle-grid .profile-circle-media{width:clamp(104px,30vw,112px)!important;max-width:112px!important;}
  .profile-circle-grid .profile-circle-post{max-width:116px!important;}
}
@media (min-width: 400px) and (max-width:760px){
  .profile-circle-grid .profile-circle-media{width:clamp(118px,29vw,128px)!important;max-width:128px!important;}
  .profile-circle-grid .profile-circle-post{max-width:134px!important;}
}

/* v173: compact filter dropdown options, no large vertical gaps */
.target-service-pro .pretty-panel,
.story-audience-v169 .pretty-panel,
.story-audience-v162 .pretty-panel{
  padding:6px 6px 44px!important;
  border-radius:14px!important;
}
.target-service-pro .pretty-options,
.story-audience-v169 .pretty-options,
.story-audience-v162 .pretty-options{
  display:grid!important;
  grid-auto-rows:min-content!important;
  align-content:start!important;
  justify-content:stretch!important;
  gap:1px!important;
  row-gap:1px!important;
  max-height:168px!important;
  overflow-y:auto!important;
  padding:0 0 3px!important;
}
.target-service-pro .pretty-option,
.story-audience-v169 .pretty-option,
.story-audience-v162 .pretty-option{
  min-height:26px!important;
  height:auto!important;
  margin:0!important;
  padding:3px 7px!important;
  gap:5px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1.15!important;
  align-items:center!important;
}
.target-service-pro .pretty-option input,
.story-audience-v169 .pretty-option input,
.story-audience-v162 .pretty-option input{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  margin:0!important;
}
.target-service-pro .pretty-search,
.story-audience-v169 .pretty-search,
.story-audience-v162 .pretty-search{
  height:31px!important;
  min-height:31px!important;
  margin:0 0 4px!important;
  padding-block:0!important;
  font-size:11.5px!important;
}
.target-service-pro .pretty-done,
.story-audience-v169 .pretty-done,
.story-audience-v162 .pretty-done{
  height:33px!important;
  bottom:6px!important;
  font-size:12px!important;
}


/* v174: footer slimmer + header logo desktop-only - keep everything else untouched */
@media (max-width: 760px){
  .ds-topbar .ds-brand{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  .ds-bottom-nav.nav-five,
  .ds-bottom-nav.nav-fixed-rtl{
    width:min(430px,calc(100% - 24px))!important;
    height:64px!important;
    min-height:64px!important;
    bottom:10px!important;
    padding:0 9px!important;
    border-radius:28px!important;
    gap:2px!important;
    box-shadow:0 10px 30px rgba(33,22,76,.12)!important;
    border:1px solid rgba(236,232,248,.86)!important;
    background:rgba(255,255,255,.90)!important;
    backdrop-filter:blur(22px)!important;
    -webkit-backdrop-filter:blur(22px)!important;
  }

  .ds-bottom-nav.nav-five>a,
  .ds-bottom-nav.nav-fixed-rtl>a{
    height:44px!important;
    min-height:44px!important;
    border-radius:18px!important;
    padding:0!important;
  }

  .ds-bottom-nav.nav-five svg,
  .ds-bottom-nav.nav-fixed-rtl svg{
    width:21px!important;
    height:21px!important;
    stroke-width:2.15!important;
  }

  .ds-bottom-nav.nav-five .create-plus,
  .ds-bottom-nav.nav-fixed-rtl .create-plus{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    margin-top:-18px!important;
    border-radius:50%!important;
    box-shadow:0 12px 30px rgba(124,58,237,.30)!important;
  }

  .ds-bottom-nav.nav-five .create-plus svg,
  .ds-bottom-nav.nav-fixed-rtl .create-plus svg{
    width:27px!important;
    height:27px!important;
  }

  .ds-bottom-nav.nav-five .nav-profile img,
  .ds-bottom-nav.nav-fixed-rtl .nav-profile img{
    width:28px!important;
    height:28px!important;
    border-radius:50%!important;
  }

  .online-footer-badge{
    top:-9px!important;
    left:12px!important;
    min-width:39px!important;
    height:21px!important;
    padding:0 7px!important;
    font-size:10px!important;
    gap:4px!important;
    box-shadow:0 7px 18px rgba(239,68,68,.12)!important;
  }
  .online-footer-badge i{
    width:6px!important;
    height:6px!important;
    box-shadow:0 0 0 3px rgba(34,197,94,.12)!important;
  }
}

@media (min-width: 761px){
  .ds-topbar .ds-brand img{
    max-width:min(var(--header-logo-width,190px),190px)!important;
    max-height:min(var(--header-logo-height,62px),46px)!important;
    object-fit:contain!important;
  }
  .ds-topbar .ds-brand{
    max-width:230px!important;
    overflow:hidden!important;
  }
}

/* v175: ONLY halls Android containment + header logo visibility - do not touch anything else */
@media (max-width: 760px){
  /* show the header logo again on mobile, but keep it safely sized so it never goes under action icons */
  .ds-topbar .ds-brand{
    display:flex!important;
    visibility:visible!important;
    pointer-events:auto!important;
    position:static!important;
    transform:none!important;
    justify-self:center!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:auto!important;
    max-width:112px!important;
    overflow:hidden!important;
    z-index:1!important;
  }
  .ds-topbar .ds-brand img{
    width:auto!important;
    max-width:108px!important;
    height:auto!important;
    max-height:34px!important;
    object-fit:contain!important;
    display:block!important;
  }
  .ds-topbar .ds-brand strong{
    font-size:18px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* keep hall cards inside the mobile frame on Android browsers */
  .halls-list,
  .hall-grid{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .halls-list .hall-card,
  .hall-card{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    gap:10px!important;
    overflow:hidden!important;
  }
  .hall-card > div{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .hall-card img,
  .hall-card .thumb{
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:82px!important;
    border-radius:22px!important;
  }
  .hall-card h2{
    max-width:100%!important;
    margin-bottom:6px!important;
    font-size:17px!important;
    line-height:1.35!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  .hall-card .stats{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    overflow:hidden!important;
  }
  .hall-card .stat{
    min-width:0!important;
    padding:7px 3px!important;
    border-radius:14px!important;
    overflow:hidden!important;
  }
  .hall-card .stat b{
    display:block!important;
    max-width:100%!important;
    font-size:11.5px!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .hall-card .stat small{
    display:block!important;
    font-size:9.5px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .hall-card .btn,
  .hall-card .btn-outline{
    max-width:100%!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}


/* v176: ONLY requested local fixes - unified home search, full hall price text */
.home-search-unified-v176{
  grid-template-columns:minmax(0,1fr) 52px!important;
}
.home-search-unified-v176 .home-search-field{
  min-width:0!important;
}
.home-search-unified-v176 input{
  width:100%!important;
  min-width:0!important;
}
@media(max-width:760px){
  .home-search-unified-v176{
    grid-template-columns:minmax(0,1fr) 46px!important;
    gap:7px!important;
  }
  .home-search-unified-v176 button{
    grid-column:auto!important;
    height:42px!important;
  }
  .hall-card .stat b{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
    font-size:10.5px!important;
    line-height:1.45!important;
  }
}


/* v177: ONLY story audience circle/ring fix + story hold pause */
@media(max-width:760px){
  .story-audience-clean-page .story-contacts-grid.moments-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:12px 6px!important;
    align-items:start!important;
    overflow:visible!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-tile{
    min-width:0!important;
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    padding:5px 0!important;
    overflow:visible!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-avatar.moments-avatar{
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    max-width:62px!important;
    min-height:62px!important;
    max-height:62px!important;
    aspect-ratio:1/1!important;
    border-radius:50%!important;
    padding:0!important;
    overflow:visible!important;
    display:grid!important;
    place-items:center!important;
    background:#f3f4f6!important;
    box-sizing:border-box!important;
    flex:0 0 62px!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-avatar.moments-avatar img{
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    max-width:56px!important;
    min-height:56px!important;
    max-height:56px!important;
    border-radius:50%!important;
    object-fit:cover!important;
    display:block!important;
    box-sizing:border-box!important;
    border:2px solid #fff!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-tile.has-active-story .moments-avatar{
    background:#fff!important;
    box-shadow:0 8px 20px rgba(15,23,42,.08)!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-tile.has-active-story .moments-avatar:after{
    content:''!important;
    position:absolute!important;
    inset:-4px!important;
    width:auto!important;
    height:auto!important;
    border:3px solid #ef4444!important;
    border-radius:50%!important;
    box-sizing:border-box!important;
    pointer-events:none!important;
    display:block!important;
    opacity:1!important;
    animation:storyPulse 1.8s ease-in-out infinite!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-tile.has-active-story.story-seen .moments-avatar:after{
    border-color:#9ca3af!important;
    animation:none!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-username{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 1px!important;
    text-align:center!important;
    direction:ltr!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}
@media(max-width:374px){
  .story-audience-clean-page .story-contacts-grid .contact-avatar.moments-avatar{
    width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;flex-basis:58px!important;
  }
  .story-audience-clean-page .story-contacts-grid .contact-avatar.moments-avatar img{
    width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;
  }
}

/* v178: ONLY story gate avatar circle/ring fix - no other UI changes */
.story-gate-v169 .story-gate-strip,
.story-gate-v157 .story-gate-strip{
  align-items:flex-start!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
}
.story-gate-v169 .story-gate-user,
.story-gate-v157 .story-gate-user{
  width:72px!important;
  flex:0 0 72px!important;
  min-width:72px!important;
  max-width:72px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  text-align:center!important;
  line-height:1!important;
}
.story-gate-v169 .story-gate-user>span,
.story-gate-v157 .story-gate-user>span{
  position:relative!important;
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  min-height:64px!important;
  max-height:64px!important;
  aspect-ratio:1/1!important;
  flex:0 0 64px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
  transform:none!important;
}
.story-gate-v169 .story-gate-user>span::after,
.story-gate-v157 .story-gate-user>span::after{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  width:64px!important;
  height:64px!important;
  border-radius:50%!important;
  border:3px solid #ff1744!important;
  box-sizing:border-box!important;
  pointer-events:none!important;
  z-index:1!important;
  display:block!important;
}
.story-gate-v169 .story-gate-user.story-seen>span::after,
.story-gate-v157 .story-gate-user.story-seen>span::after{
  border-color:#9ca3af!important;
}
.story-gate-v169 .story-gate-user>span img,
.story-gate-v157 .story-gate-user>span img{
  position:relative!important;
  z-index:0!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  max-width:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  aspect-ratio:1/1!important;
  display:block!important;
  border-radius:50%!important;
  object-fit:cover!important;
  border:2px solid rgba(7,10,18,.95)!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  transform:none!important;
}
.story-gate-v169 .story-gate-user>span .single-relation-dot,
.story-gate-v157 .story-gate-user>span .single-relation-dot{
  position:absolute!important;
  right:2px!important;
  bottom:2px!important;
  z-index:3!important;
  width:12px!important;
  height:12px!important;
  min-width:12px!important;
  min-height:12px!important;
  border-radius:50%!important;
  border:2px solid #0b0f1a!important;
  box-sizing:border-box!important;
}
.story-gate-v169 .story-gate-user small,
.story-gate-v157 .story-gate-user small{
  display:block!important;
  width:72px!important;
  max-width:72px!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  direction:ltr!important;
  transform:none!important;
}
@media(max-width:430px){
  .story-gate-v169 .story-gate-user,
  .story-gate-v157 .story-gate-user{width:68px!important;flex-basis:68px!important;min-width:68px!important;max-width:68px!important;}
  .story-gate-v169 .story-gate-user>span,
  .story-gate-v157 .story-gate-user>span{width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;min-height:62px!important;max-height:62px!important;flex-basis:62px!important;}
  .story-gate-v169 .story-gate-user>span::after,
  .story-gate-v157 .story-gate-user>span::after{width:62px!important;height:62px!important;}
  .story-gate-v169 .story-gate-user>span img,
  .story-gate-v157 .story-gate-user>span img{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;min-height:54px!important;max-height:54px!important;}
  .story-gate-v169 .story-gate-user small,
  .story-gate-v157 .story-gate-user small{width:68px!important;max-width:68px!important;font-size:10px!important;}
}

/* v180: ONLY independent story audience checkboxes + saved group audience picker */
.story-audience-v180 .story-top-choice-row.story-audience-independent-v180{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;
}
.story-audience-v180 .story-audience-independent-v180 .story-choice-pill{
  min-height:54px!important;
  height:auto!important;
  padding:6px 4px!important;
  border-radius:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  text-decoration:none!important;
  background:#fff!important;
  border:1px solid rgba(17,24,39,.10)!important;
  color:#111827!important;
  box-shadow:0 8px 20px rgba(15,23,42,.05)!important;
}
.story-audience-v180 .story-audience-independent-v180 .story-choice-pill.viewing{
  border-color:rgba(124,58,237,.26)!important;
  background:linear-gradient(180deg,#fff,#faf7ff)!important;
}
.story-audience-v180 .story-choice-tab-link{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  text-decoration:none!important;
  color:inherit!important;
  line-height:1.05!important;
}
.story-audience-v180 .story-choice-tab-link b{
  font-size:10.5px!important;
  font-weight:1000!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
.story-audience-v180 .story-choice-tab-link small{
  margin:0!important;
  font-size:9px!important;
  font-weight:1000!important;
  color:#7c6f9e!important;
  line-height:1!important;
}
.story-audience-v180 .story-audience-square{
  width:19px!important;
  height:19px!important;
  flex:0 0 19px!important;
  border-radius:6px!important;
  border:1.7px solid rgba(17,24,39,.26)!important;
  background:#fff!important;
  color:#fff!important;
  display:inline-grid!important;
  place-items:center!important;
  padding:0!important;
  margin:0!important;
  font:1000 12px/1 var(--app-font)!important;
  cursor:pointer!important;
  box-shadow:0 4px 10px rgba(15,23,42,.05)!important;
}
.story-audience-v180 .story-audience-square.checked{
  background:linear-gradient(135deg,#ef4444,#7c3aed)!important;
  border-color:transparent!important;
  color:#fff!important;
}
.story-audience-v180 .story-custom-list-panel{
  display:block!important;
}
.story-audience-v180 .custom-list-chip.audience-active{
  background:linear-gradient(135deg,#ef4444,#7c3aed)!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 14px 32px rgba(124,58,237,.18)!important;
}
.story-audience-v180 .custom-list-chip.audience-active .custom-list-main:before,
.story-audience-v180 .custom-list-chip.audience-active .custom-list-edit{
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.story-audience-v180 .story-group-audience-square{
  width:22px!important;
  height:22px!important;
  flex-basis:22px!important;
  border-radius:7px!important;
}
@media(max-width:480px){
  .story-audience-v180 .story-top-choice-row.story-audience-independent-v180{gap:5px!important;}
  .story-audience-v180 .story-audience-independent-v180 .story-choice-pill{min-height:52px!important;border-radius:15px!important;padding:5px 3px!important;}
  .story-audience-v180 .story-choice-tab-link b{font-size:10px!important;}
  .story-audience-v180 .story-choice-tab-link small{font-size:8.5px!important;}
  .story-audience-v180 .story-audience-square{width:18px!important;height:18px!important;flex-basis:18px!important;border-radius:6px!important;}
}

/* v181: root fix for named story audience group creation - no visual changes */
/* v182: deep self-heal for multiple saved story groups - no visual changes */

/* v183: ONLY story groups multi-row save; no visual change */

/* v184: root independent story group storage fix - no visual change */

/* v185: root official multi-group story audience storage fix */


/* v186: root independent multi story group storage; no visual change */

/* v187: root official story groups visible multi-save fix */

/* v188: tested official independent story group storage - no visual change */


/* v189: ONLY story group creation safety + visible new group button */
.story-audience-v180 .custom-list-new-v189{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:42px!important;margin:0 0 10px!important;
  border-radius:16px!important;background:linear-gradient(135deg,#ef4444,#7c3aed)!important;
  color:#fff!important;text-decoration:none!important;font:1000 12px/1.4 var(--app-font)!important;
  box-shadow:0 12px 26px rgba(124,58,237,.16)!important;
}
.story-audience-v180 .custom-list-edit{font-size:9.5px!important;white-space:nowrap!important;}

/* v190: requested precise fixes - story groups, private message clarity, 3 stronger group colors */
.story-audience-v180 .custom-list-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  overflow:visible!important;
}
.story-audience-v180 .custom-list-chip{
  width:100%!important;
  min-height:48px!important;
  border-radius:16px!important;
}
.story-audience-v180 .custom-list-main span{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.cchat-private-message-body-v190{
  background:#ffffff!important;
  border:1px solid rgba(17,24,39,.10)!important;
  border-radius:16px!important;
  padding:10px 12px!important;
  color:#111827!important;
}
.cchat-private-text-label{
  display:block!important;
  margin-bottom:6px!important;
  color:#6d28d9!important;
  font:1000 11px/1.4 var(--app-font)!important;
}
.cchat-private-text-main{
  margin:0!important;
  color:#111827!important;
  font:900 13px/1.9 var(--app-font)!important;
  word-break:break-word!important;
}
.cchat-color-picker-v190{
  gap:12px!important;
}
.cchat-color-picker-v190 label{
  transform:scale(1.04)!important;
}
.cchat-color-picker-v190 i{
  width:30px!important;
  height:30px!important;
  border-radius:999px!important;
  border:2px solid rgba(17,24,39,.18)!important;
  box-shadow:0 10px 22px rgba(15,23,42,.16)!important;
}
.cchat-color-picker-v190 .c-blue{background:#2563eb!important;}
.cchat-color-picker-v190 .c-red{background:#dc2626!important;}
.cchat-color-picker-v190 .c-purple{background:#7c3aed!important;}
.cchat-color-picker-v190 input:checked + i{
  outline:3px solid rgba(17,24,39,.18)!important;
  outline-offset:3px!important;
}


/* v191: ONLY requested fixes - stronger group room colors and visible selected contact state */
:root{
  --chat-color-blue:#dbeafe!important;
  --chat-color-red:#fee2e2!important;
  --chat-color-purple:#ede9fe!important;
}
.cchat-room-row.is-group[data-group-color="blue"]{--group-tint:#dbeafe!important;border-color:#93c5fd!important;background:linear-gradient(90deg,#dbeafe 0%,#eff6ff 42%,#fff 100%)!important;}
.cchat-room-row.is-group[data-group-color="red"]{--group-tint:#fee2e2!important;border-color:#fca5a5!important;background:linear-gradient(90deg,#fee2e2 0%,#fff1f2 42%,#fff 100%)!important;}
.cchat-room-row.is-group[data-group-color="purple"]{--group-tint:#ede9fe!important;border-color:#c4b5fd!important;background:linear-gradient(90deg,#ede9fe 0%,#f5f3ff 42%,#fff 100%)!important;}
.contact-tile.is-selected,.contact-tile:has(.contact-select-input:checked){outline:3px solid rgba(124,58,237,.22)!important;background:#f5f3ff!important;}
.contact-tile.is-selected .contact-check,.contact-tile:has(.contact-select-input:checked) .contact-check{opacity:1!important;transform:scale(1)!important;background:#7c3aed!important;color:#fff!important;}


/* v192: Android-only refinement pass to visually match the softer iPhone styling without changing site logic */
html.ua-android{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  font-size:15px;
}
@media (max-width:768px){
  html.ua-android body{
    background:linear-gradient(180deg,#f7f4ff 0,#fbfaff 12%,#ffffff 26%,#f9f7ff 100%);
    line-height:1.5;
  }
  html.ua-android .app-shell{
    width:100%;
    max-width:430px;
    box-shadow:none;
    background:linear-gradient(180deg,#fff 0,#fff 60%,#fbfaff 100%);
    padding-bottom:98px;
  }
  html.ua-android .app-shell:before{
    opacity:.72;
  }
  html.ua-android .container{
    padding:16px 16px 30px;
  }
  html.ua-android .ds-topbar{
    height:82px;
    padding:14px 16px;
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    background:rgba(255,255,255,.84);
    border-bottom:1px solid rgba(233,229,246,.9);
  }
  html.ua-android .ds-brand img{
    max-height:40px;
    max-width:156px;
  }
  html.ua-android .ds-logo-mark{
    width:36px;height:36px;border-radius:13px;font-size:22px;
  }
  html.ua-android .top-actions{gap:6px;}
  html.ua-android .icon-bubble,
  html.ua-android .logo-upload-mini,
  html.ua-android .auth-mini{
    width:44px;height:44px;border-radius:16px;
    box-shadow:0 8px 20px rgba(124,58,237,.07);
    border-color:rgba(124,58,237,.11);
  }
  html.ua-android .lang-switch{padding:3px;gap:1px;box-shadow:0 7px 16px rgba(20,24,40,.03);}
  html.ua-android .lang-switch button{padding:8px 11px;font-size:14px;line-height:1;}
  html.ua-android .ds-message{margin:10px 16px;padding:11px 13px;border-radius:16px;font-size:13px;}
  html.ua-android .resume-flow-pill{
    top:92px;
    inset-inline-end:16px;
    border-radius:18px;
    padding:10px 13px;
    box-shadow:0 10px 28px rgba(239,68,68,.10);
  }
  html.ua-android .card,
  html.ua-android .ds-ad-card,
  html.ua-android .profile-hero-story-v1,
  html.ua-android .profile-showcase-card,
  html.ua-android .profile-showcase-card-v98,
  html.ua-android .profile-showcase-card-v99,
  html.ua-android .hall-card,
  html.ua-android .story-audience-card,
  html.ua-android .target-service-page .card,
  html.ua-android .cchat-room-row,
  html.ua-android .cchat-create-card,
  html.ua-android .cchat-group-form,
  html.ua-android .contacts-panel,
  html.ua-android .ad-filter-card{
    border-radius:26px!important;
    box-shadow:0 14px 38px rgba(35,24,72,.07)!important;
  }
  html.ua-android .card,
  html.ua-android .ds-ad-card{padding:16px;}
  html.ua-android .btn,
  html.ua-android .btn-outline{
    min-height:54px;
    border-radius:18px;
    padding:14px 16px;
    box-shadow:0 12px 24px rgba(124,58,237,.18);
  }
  html.ua-android .btn-outline{box-shadow:none;}
  html.ua-android .input,
  html.ua-android input,
  html.ua-android select,
  html.ua-android textarea,
  html.ua-android .ds-input{
    min-height:52px;
    border-radius:18px;
    padding:13px 15px;
    box-shadow:none;
    font-size:16px;
  }
  html.ua-android textarea{min-height:106px;}
  html.ua-android label{font-size:12px;}
  html.ua-android .page-title{font-size:25px;letter-spacing:-.6px;}
  html.ua-android .hall-card{grid-template-columns:98px 1fr;gap:12px;}
  html.ua-android .hall-card img,
  html.ua-android .thumb{border-radius:24px;}
  html.ua-android .hall-card h2{font-size:19px;margin-bottom:6px;}
  html.ua-android .stat{border-radius:18px;padding:10px;}
  html.ua-android .social-strip{height:54px;border-radius:22px;}
  html.ua-android .social-strip a,
  html.ua-android .social-strip span{font-size:12px;}
  html.ua-android .ad-caption-mini{font-size:12px;}
  html.ua-android .ds-ad-card{padding:13px;border-radius:28px;}
  html.ua-android .ds-media,
  html.ua-android .ad-media{border-radius:26px;}
  html.ua-android .brand-dot,
  html.ua-android .sparkle-chip,
  html.ua-android .mute-btn{transform:scale(.94);transform-origin:center;}
  html.ua-android .profile-main-row{gap:10px!important;grid-template-columns:98px minmax(0,1fr)!important;}
  html.ua-android .profile-avatar-wrap{width:86px!important;height:86px!important;}
  html.ua-android .profile-avatar-img,
  html.ua-android .profile-avatar-fallback{width:76px!important;height:76px!important;}
  html.ua-android .profile-caption-side{padding:12px!important;min-height:88px!important;border-radius:22px!important;}
  html.ua-android .profile-icon-actions{gap:8px!important;}
  html.ua-android .profile-mini-icon{width:38px!important;height:38px!important;}
  html.ua-android .profile-username{font-size:13px!important;line-height:1.35!important;}
  html.ua-android .profile-showcase-card,
  html.ua-android .profile-showcase-card-v98,
  html.ua-android .profile-showcase-card-v99{padding:12px 10px 11px!important;border-radius:22px!important;}
  html.ua-android .profile-showcase-title{font-size:13px!important;}
  html.ua-android .profile-showcase-item,
  html.ua-android .profile-showcase-placeholder,
  html.ua-android .profile-showcase-add,
  html.ua-android .profile-showcase-card-v98 .profile-showcase-item,
  html.ua-android .profile-showcase-card-v98 .profile-showcase-placeholder,
  html.ua-android .profile-showcase-card-v98 .profile-showcase-add,
  html.ua-android .profile-showcase-card-v99 .profile-showcase-item,
  html.ua-android .profile-showcase-card-v99 .profile-showcase-placeholder,
  html.ua-android .profile-showcase-card-v99 .profile-showcase-add{width:66px!important;height:66px!important;}
  html.ua-android .profile-circle-grid{gap:10px!important;}
  html.ua-android .profile-circle-media{border-radius:50%!important;}
  html.ua-android .ds-bottom-nav{
    width:calc(100% - 24px);
    max-width:406px;
    height:70px;
    bottom:10px;
    padding:0 10px;
    border-radius:30px;
    box-shadow:0 14px 36px rgba(33,22,76,.14);
    background:rgba(255,255,255,.92);
  }
  html.ua-android .ds-bottom-nav a{height:52px;border-radius:20px;}
  html.ua-android .ds-bottom-nav .active{box-shadow:0 10px 22px rgba(124,58,237,.26);}
  html.ua-android .ds-bottom-nav .create-plus{
    width:60px;height:60px;min-width:60px;
    margin-top:-22px;
    box-shadow:0 14px 30px rgba(124,58,237,.28);
  }
  html.ua-android .ds-bottom-nav .create-plus svg{width:30px;height:30px;}
  html.ua-android .online-footer-badge{transform:scale(.92);transform-origin:left center;}
  html.ua-android .premium-stories{gap:14px;padding:12px 0 20px;}
  html.ua-android .ds-story{min-width:84px;}
  html.ua-android .story-ring{width:78px;height:78px;border-radius:28px;box-shadow:0 12px 28px rgba(124,58,237,.10);}
  html.ua-android .story-inner{border-radius:26px;font-size:30px;}
  html.ua-android .ds-story small{font-size:12px;}
  html.ua-android .contact-tile,
  html.ua-android .contact-card,
  html.ua-android .contact-row,
  html.ua-android .story-contact-card{
    border-radius:20px!important;
  }
  html.ua-android .contact-avatar,
  html.ua-android .story-audience-avatar,
  html.ua-android .story-audience-tile img{box-shadow:none!important;}
  html.ua-android .segment,
  html.ua-android .tab,
  html.ua-android .audience-tab,
  html.ua-android .contact-filter-pill,
  html.ua-android .audience-filter-btn{
    min-height:52px;border-radius:18px!important;
  }
  html.ua-android .cchat-room-row{padding:14px 14px!important;}
  html.ua-android .cchat-room-avatar,
  html.ua-android .cchat-avatar{width:52px!important;height:52px!important;}
  html.ua-android .cchat-room-title{font-size:15px!important;}
  html.ua-android .cchat-room-preview{font-size:12px!important;line-height:1.6!important;}
  html.ua-android .cchat-color-picker-v190{gap:10px!important;}
  html.ua-android .cchat-color-picker-v190 i{width:28px!important;height:28px!important;}
  html.ua-android .comment-panel,
  html.ua-android .share-panel,
  html.ua-android .profile-showcase-panel{border-radius:24px;}
}


/* v193: STRONGER Android-only visual density correction - visible iPhone-like refinement, no backend logic changes */
@media (max-width:768px){
  html.ua-android body{
    font-size:14px!important;
    background:#fbfaff!important;
  }
  html.ua-android .app-shell{
    max-width:414px!important;
    width:100%!important;
    overflow-x:hidden!important;
    padding-bottom:92px!important;
  }
  html.ua-android .container{
    padding-left:14px!important;
    padding-right:14px!important;
    padding-top:14px!important;
  }
  html.ua-android .ds-topbar{
    height:76px!important;
    padding:12px 15px!important;
    background:rgba(255,255,255,.88)!important;
    box-shadow:0 8px 26px rgba(35,24,72,.045)!important;
  }
  html.ua-android .ds-brand{font-size:26px!important;gap:6px!important;}
  html.ua-android .ds-brand img{max-height:36px!important;max-width:142px!important;}
  html.ua-android .top-actions{gap:5px!important;}
  html.ua-android .auth-mini,
  html.ua-android .icon-bubble,
  html.ua-android .logo-upload-mini,
  html.ua-android .profile-mini-icon{
    width:39px!important;height:39px!important;min-width:39px!important;border-radius:15px!important;
    box-shadow:0 7px 18px rgba(124,58,237,.055)!important;
  }
  html.ua-android .auth-mini svg,
  html.ua-android .icon-bubble svg,
  html.ua-android .logo-upload-mini svg{width:20px!important;height:20px!important;}
  html.ua-android .lang-switch{transform:scale(.92)!important;transform-origin:left center!important;}
  html.ua-android .resume-flow-pill{transform:scale(.88)!important;transform-origin:top right!important;top:86px!important;}
  html.ua-android .card,
  html.ua-android .ds-ad-card,
  html.ua-android .profile-hero-story-v1,
  html.ua-android .profile-showcase-card,
  html.ua-android .profile-showcase-card-v98,
  html.ua-android .profile-showcase-card-v99,
  html.ua-android .hall-card,
  html.ua-android .cchat-create-card,
  html.ua-android .target-service-page .card,
  html.ua-android .contacts-card,
  html.ua-android .story-audience-card{
    border-radius:23px!important;
    padding:13px!important;
    margin-bottom:14px!important;
    box-shadow:0 12px 30px rgba(35,24,72,.055)!important;
    border-color:rgba(226,223,239,.82)!important;
  }
  html.ua-android .profile-hero-story-v1{min-height:0!important;}
  html.ua-android .profile-main-row{grid-template-columns:92px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;}
  html.ua-android .profile-avatar-wrap{width:82px!important;height:82px!important;}
  html.ua-android .profile-avatar-img,
  html.ua-android .profile-avatar-fallback{width:72px!important;height:72px!important;border-width:3px!important;}
  html.ua-android .profile-story-plus{width:30px!important;height:30px!important;font-size:20px!important;}
  html.ua-android .profile-username{font-size:12.5px!important;line-height:1.3!important;max-width:92px!important;}
  html.ua-android .profile-caption-side{min-height:78px!important;padding:10px!important;border-radius:20px!important;font-size:13px!important;}
  html.ua-android .profile-icon-actions{gap:7px!important;margin-bottom:8px!important;}
  html.ua-android .profile-showcase-card,
  html.ua-android .profile-showcase-card-v98,
  html.ua-android .profile-showcase-card-v99{padding:10px 9px!important;border-radius:21px!important;}
  html.ua-android .profile-showcase-title{font-size:12.5px!important;margin-bottom:8px!important;}
  html.ua-android .profile-showcase-strip{gap:8px!important;padding-bottom:6px!important;}
  html.ua-android .profile-showcase-cell{width:62px!important;gap:4px!important;}
  html.ua-android .profile-showcase-item,
  html.ua-android .profile-showcase-placeholder,
  html.ua-android .profile-showcase-add,
  html.ua-android .profile-showcase-card-v98 .profile-showcase-item,
  html.ua-android .profile-showcase-card-v98 .profile-showcase-placeholder,
  html.ua-android .profile-showcase-card-v98 .profile-showcase-add,
  html.ua-android .profile-showcase-card-v99 .profile-showcase-item,
  html.ua-android .profile-showcase-card-v99 .profile-showcase-placeholder,
  html.ua-android .profile-showcase-card-v99 .profile-showcase-add{
    width:58px!important;height:58px!important;border-width:2px!important;
  }
  html.ua-android .profile-showcase-meta input,
  html.ua-android .profile-showcase-meta .mini-input{height:22px!important;font-size:10px!important;border-radius:7px!important;padding:2px 4px!important;}
  html.ua-android .profile-circle-grid{gap:9px!important;margin-top:12px!important;}
  html.ua-android .profile-circle-media{border-width:2px!important;box-shadow:0 8px 18px rgba(35,24,72,.08)!important;}
  html.ua-android .profile-circle-status{font-size:10.5px!important;border-radius:8px!important;padding:3px 7px!important;}
  html.ua-android .ds-bottom-nav{
    height:66px!important;
    width:calc(100% - 28px)!important;
    max-width:392px!important;
    bottom:9px!important;
    padding:0 9px!important;
    border-radius:29px!important;
    box-shadow:0 12px 32px rgba(33,22,76,.13)!important;
  }
  html.ua-android .ds-bottom-nav a{height:49px!important;border-radius:19px!important;}
  html.ua-android .ds-bottom-nav svg{width:25px!important;height:25px!important;}
  html.ua-android .ds-bottom-nav .create-plus{width:56px!important;height:56px!important;min-width:56px!important;margin-top:-20px!important;}
  html.ua-android .ds-bottom-nav .create-plus svg{width:29px!important;height:29px!important;}
  html.ua-android .chat-unread-badge,
  html.ua-android .top-unread-badge{transform:scale(.88)!important;}
  html.ua-android .online-footer-badge{transform:scale(.86)!important;transform-origin:left center!important;}
  html.ua-android .hall-card{grid-template-columns:92px 1fr!important;gap:12px!important;}
  html.ua-android .hall-card img{border-radius:22px!important;}
  html.ua-android .hall-card h2{font-size:18px!important;line-height:1.3!important;}
  html.ua-android .stat{padding:8px 6px!important;border-radius:16px!important;min-height:58px!important;}
  html.ua-android .stat b{font-size:13px!important;}
  html.ua-android .stat small{font-size:10.5px!important;}
  html.ua-android .hall-card .btn,
  html.ua-android .hall-card .btn-outline{min-height:48px!important;border-radius:18px!important;}
  html.ua-android input,
  html.ua-android select,
  html.ua-android textarea,
  html.ua-android .input,
  html.ua-android .ds-input{
    min-height:48px!important;
    border-radius:16px!important;
    padding:11px 13px!important;
    font-size:14px!important;
  }
  html.ua-android textarea{min-height:92px!important;}
  html.ua-android .btn,
  html.ua-android .btn-outline{min-height:50px!important;border-radius:17px!important;font-size:14px!important;padding:12px 14px!important;}
  html.ua-android .target-service-page label{font-size:12px!important;margin-bottom:6px!important;}
  html.ua-android .target-service-page .form-grid{gap:12px!important;}
  html.ua-android .pretty-panel,
  html.ua-android .filter-panel{border-radius:21px!important;padding:12px!important;}
  html.ua-android .pretty-option{padding:8px 10px!important;min-height:38px!important;font-size:13px!important;}
  html.ua-android .story-audience-tabs,
  html.ua-android .audience-mode-tabs{gap:6px!important;}
  html.ua-android .audience-tab,
  html.ua-android .audience-filter-btn,
  html.ua-android .contact-filter-pill{min-height:48px!important;border-radius:16px!important;padding:8px 10px!important;font-size:12px!important;}
  html.ua-android .story-audience-avatar,
  html.ua-android .contact-avatar{width:58px!important;height:58px!important;}
  html.ua-android .story-audience-name,
  html.ua-android .contact-name{font-size:11.5px!important;line-height:1.25!important;}
  html.ua-android .contact-tile,
  html.ua-android .contact-card,
  html.ua-android .story-contact-card{padding:9px!important;border-radius:18px!important;}
  html.ua-android .cchat-create-card{padding:16px 14px!important;}
  html.ua-android .cchat-create-card h1{font-size:23px!important;line-height:1.25!important;}
  html.ua-android .cchat-room-row{padding:12px!important;border-radius:20px!important;min-height:74px!important;}
  html.ua-android .cchat-room-avatar,
  html.ua-android .cchat-avatar{width:48px!important;height:48px!important;}
  html.ua-android .cchat-room-title{font-size:14px!important;line-height:1.3!important;}
  html.ua-android .cchat-room-preview{font-size:11.5px!important;line-height:1.45!important;}
  html.ua-android .cchat-room-time{font-size:11px!important;}
  html.ua-android .cchat-private-text-main{font-size:12.5px!important;line-height:1.65!important;}
  html.ua-android .ds-ad-card{border-radius:25px!important;padding:12px!important;margin-bottom:18px!important;}
  html.ua-android .ad-mini-head{height:36px!important;margin-bottom:8px!important;}
  html.ua-android .ad-media{border-radius:24px!important;max-height:560px!important;}
  html.ua-android .ds-media{border-radius:24px!important;}
  html.ua-android .play-chip{font-size:11px!important;padding:6px 9px!important;}
  html.ua-android .brand-dot{width:36px!important;height:36px!important;}
  html.ua-android .mute-btn,
  html.ua-android .sparkle-chip{width:38px!important;height:38px!important;}
  html.ua-android .social-strip{height:50px!important;border-radius:21px!important;}
  html.ua-android .social-strip svg{width:21px!important;height:21px!important;}
  html.ua-android .social-strip b{font-size:12px!important;}
}


/* v196: safe responsiveness/performance polish - no visual redesign */
a,button,.btn,[role="button"],input,select,textarea,label,.pill,.contact-tile,.cchat-room-row,.profile-showcase-item,.profile-circle-media,.ds-bottom-nav a{
  touch-action:manipulation;
}
button,.btn,a,[role="button"]{
  -webkit-tap-highlight-color:rgba(124,58,237,.14);
}
@media (max-width:768px){
  .ds-ad-card,.hall-card,.profile-showcase-card,.profile-showcase-card-v98,.profile-showcase-card-v99,.story-audience-card,.cchat-room-row{
    content-visibility:auto;
    contain-intrinsic-size:1px 280px;
  }
  .profile-circle-grid > *, .explore-grid > *{
    content-visibility:auto;
    contain-intrinsic-size:1px 160px;
  }
}

/* v198: low-friction graphical auth/register flow */
.auth-easy-page{max-width:780px;margin-inline:auto;padding-bottom:32px}.auth-easy-hero{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-bottom:14px;padding:16px;border-radius:28px;background:linear-gradient(135deg,#fff,#faf5ff 58%,#f5f3ff);box-shadow:0 16px 45px rgba(124,58,237,.10)}.auth-easy-badge{width:58px;height:58px;border-radius:22px;display:grid;place-items:center;background:#fff;box-shadow:0 10px 25px rgba(124,58,237,.16);font-size:27px}.auth-easy-hero .page-title{margin:0 0 5px;font-size:22px}.auth-guide-chip{border:1px solid rgba(109,40,217,.18);border-radius:18px;padding:10px 12px;display:inline-flex;gap:7px;align-items:center;font-weight:950;cursor:pointer}.auth-guide-chip svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.auth-easy-card{padding:16px;border-radius:30px;box-shadow:0 18px 55px rgba(31,18,55,.10)}.auth-step-title{display:flex;align-items:center;gap:8px;margin:8px 0 12px;font-size:15px}.auth-step-title span{width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;font-weight:950}.auth-step-title b{font-weight:950}.auth-easy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.auth-easy-grid-main{grid-template-columns:1fr}.auth-easy-field{margin:0}.auth-easy-field label{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:900;margin-bottom:7px;color:#35244f}.auth-easy-field .ds-input,.auth-easy-field input,.auth-easy-field select{width:100%;border-radius:18px;border:1px solid rgba(124,58,237,.16);background:#fff;padding:13px 14px;font-size:15px;min-height:48px;box-shadow:0 7px 20px rgba(124,58,237,.045);outline:none}.auth-easy-field .ds-input:focus,.auth-easy-field input:focus,.auth-easy-field select:focus{border-color:rgba(124,58,237,.45);box-shadow:0 0 0 4px rgba(124,58,237,.10)}.auth-easy-field.has-error .ds-input,.auth-easy-field.has-error input,.auth-easy-field.has-error select{border-color:#ef4444;background:#fff7f7}.auth-error-summary{border:1px solid rgba(239,68,68,.22);background:#fff5f5;color:#b91c1c;border-radius:18px;padding:10px 12px;margin-bottom:12px;font-weight:800;line-height:1.8}.auth-optional-panel{border:1px dashed rgba(124,58,237,.20);background:linear-gradient(135deg,#fff,#fbfaff);border-radius:22px;padding:0 12px 12px;margin:4px 0 12px}.auth-optional-panel summary{cursor:pointer;padding:13px 2px;font-weight:950;color:#6d28d9}.auth-select-search{margin-bottom:7px!important;background:#fcfbff!important}.auth-rules-row{border:1px solid rgba(124,58,237,.10);background:#fbfaff;border-radius:18px;padding:11px 12px;margin:4px 0 12px}.auth-check{display:flex!important;align-items:center!important;gap:9px!important;margin:0!important;font-weight:900!important}.auth-check input{width:20px;height:20px;accent-color:var(--primary)}.auth-main-btn{width:100%;border-radius:20px;padding:14px 16px;font-size:15px;font-weight:950}.auth-switch-link{text-align:center;margin:12px 0 0}.auth-switch-link a{font-weight:900;text-decoration:none;color:var(--primary)}.auth-login-card{max-width:500px;margin-inline:auto}.auth-resend-btn{width:100%;margin-top:10px;border:0;background:#f5f0ff;color:#6d28d9;border-radius:18px;padding:12px;font-weight:950}.job-suggest-wrap{position:relative}.job-suggest-box{position:absolute;z-index:20;top:calc(100% + 6px);right:0;left:0;max-height:230px;overflow:auto;background:#fff;border:1px solid rgba(124,58,237,.18);border-radius:18px;box-shadow:0 20px 55px rgba(28,18,48,.16);padding:6px;display:none}.job-suggest-box.is-open{display:block}.job-suggest-box button{display:block;width:100%;border:0;background:#fff;text-align:right;border-radius:13px;padding:10px 12px;font-family:var(--app-font);font-weight:850;color:#2b2140}.job-suggest-box button:hover{background:#f5f0ff;color:#6d28d9}.auth-verify-hero{grid-template-columns:auto 1fr}@media(max-width:640px){.auth-easy-page{padding-inline:10px}.auth-easy-hero{grid-template-columns:auto 1fr;gap:10px;padding:13px;border-radius:24px}.auth-guide-chip{grid-column:1/-1;justify-content:center;width:100%;padding:11px}.auth-easy-badge{width:50px;height:50px;border-radius:18px;font-size:23px}.auth-easy-hero .page-title{font-size:19px}.auth-easy-card{padding:13px;border-radius:24px}.auth-easy-grid{grid-template-columns:1fr;gap:10px}.auth-easy-field .ds-input,.auth-easy-field input,.auth-easy-field select{font-size:16px;min-height:50px}.auth-step-title{margin-top:6px}.auth-verify-hero{grid-template-columns:auto 1fr}.auth-verify-hero .auth-guide-chip{display:none}}

/* v199: multi-step visual registration + icon-first login */
.auth-wizard-page{max-width:760px;margin-inline:auto;padding-bottom:32px}.auth-wizard-hero,.auth-login-hero2{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px 18px;border-radius:30px;background:linear-gradient(135deg,#fff,#fcfaff 56%,#f4f0ff);box-shadow:0 18px 55px rgba(31,18,55,.10);margin-bottom:14px}.auth-wizard-badge{width:62px;height:62px;border-radius:24px;display:grid;place-items:center;background:#fff;box-shadow:0 14px 32px rgba(124,58,237,.17);font-size:30px}.auth-wizard-copy .page-title{margin:0 0 4px;font-size:24px}.auth-step-mini{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(124,58,237,.10);background:#fff;border-radius:999px;padding:5px 10px;margin-bottom:8px;font-size:12px;font-weight:950;color:#6d28d9}.auth-hero-actions{display:flex;align-items:center;gap:8px}.auth-icon-circle{width:42px;height:42px;border:0;border-radius:999px;background:#fff;box-shadow:0 10px 24px rgba(124,58,237,.13);display:grid;place-items:center;font-size:18px;color:#6d28d9;text-decoration:none}.auth-stepper-card{padding:14px 16px;border-radius:26px;box-shadow:0 15px 42px rgba(31,18,55,.08);margin-bottom:14px}.auth-stepper{display:grid;grid-template-columns:repeat(7,minmax(82px,1fr));gap:8px;overflow:auto}.auth-step-badge{min-width:82px;text-align:center;border:1px solid rgba(124,58,237,.10);background:#faf8ff;border-radius:18px;padding:10px 6px;display:grid;gap:6px}.auth-step-badge-circle{width:32px;height:32px;margin:0 auto;border-radius:999px;display:grid;place-items:center;background:#efe8ff;color:#7c3aed;font-weight:1000}.auth-step-badge small{font-size:11px;font-weight:900;color:#5f5373;line-height:1.4}.auth-step-badge.is-current{border-color:rgba(124,58,237,.25);background:linear-gradient(135deg,#fff,#f5f0ff)}.auth-step-badge.is-current .auth-step-badge-circle{background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:0 10px 22px rgba(124,58,237,.25)}.auth-step-badge.is-done{border-color:rgba(34,197,94,.22);background:#f0fdf4}.auth-step-badge.is-done .auth-step-badge-circle{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.auth-wizard-form{padding:18px;border-radius:30px;box-shadow:0 18px 55px rgba(31,18,55,.10)}.auth-wizard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-grid-mobile,.auth-grid-verify,.auth-grid-credentials,.auth-grid-final{grid-template-columns:1fr}.auth-field-card,.auth-choice-card{border:1px solid rgba(124,58,237,.12);background:#fff;border-radius:24px;padding:14px;box-shadow:0 9px 28px rgba(124,58,237,.05)}.auth-field-card.has-error,.auth-choice-card.has-error{border-color:rgba(239,68,68,.28);background:#fff7f7}.auth-field-label{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px;font-weight:950;color:#35244f}.auth-field-icon{width:30px;height:30px;border-radius:12px;display:grid;place-items:center;background:#f5f0ff;color:#6d28d9;font-size:15px;flex:0 0 auto}.auth-pass-wrap{position:relative}.auth-pass-wrap input{padding-inline-end:48px!important}.auth-eye-btn{position:absolute;top:50%;left:10px;transform:translateY(-50%);border:0;background:#f5f0ff;color:#6d28d9;border-radius:12px;width:34px;height:34px;display:grid;place-items:center;font-size:16px}.auth-eye-btn.is-open{background:#ede9fe}.auth-choice-card{padding:16px}.auth-check-large{display:flex!important;align-items:flex-start!important;gap:12px!important}.auth-check-large input{margin-top:2px}.auth-check-large span{display:grid;gap:3px}.auth-check-large b{font-size:14px}.auth-check-large small{font-size:12px;color:#7b7388}.auth-submit-row{display:flex;gap:10px;align-items:center;margin-top:14px}.auth-submit-row .auth-main-btn{flex:1}.btn-soft,.auth-back-btn{background:#f5f0ff!important;color:#6d28d9!important;border-radius:20px;padding:14px 16px;border:0;font-weight:950;text-decoration:none;text-align:center}.auth-soft-note,.auth-inline-chip{display:flex;align-items:center;gap:8px;border:1px solid rgba(124,58,237,.12);background:#faf8ff;border-radius:18px;padding:11px 12px;margin-top:12px;font-size:13px;font-weight:850;color:#4b3868}.auth-inline-chip{margin-top:8px;display:inline-flex}.auth-login-icons-row{display:flex;gap:8px;flex-wrap:wrap}.auth-login-icons-row span{min-width:44px;height:34px;padding:0 12px;border-radius:999px;display:grid;place-items:center;background:#fff;box-shadow:0 8px 20px rgba(124,58,237,.10);font-size:15px;font-weight:950;color:#6d28d9}.auth-login-box2{max-width:510px;margin-inline:auto;padding:18px;border-radius:30px;box-shadow:0 18px 55px rgba(31,18,55,.10)}.auth-login-links2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.auth-link-pill{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(124,58,237,.12);background:#fff;border-radius:18px;padding:12px 10px;font-size:13px;font-weight:950;color:#5b487a;text-decoration:none}.auth-link-pill:hover,.btn-soft:hover,.auth-icon-circle:hover{filter:brightness(.99)}.auth-select-search{margin-bottom:8px!important}.auth-wizard-page .job-suggest-wrap{position:relative}.auth-wizard-page .job-suggest-box{top:calc(100% + 6px);right:0;left:0}.auth-wizard-page .field-error{display:block;margin-top:6px}.auth-login-page-new .page-title{margin-bottom:8px}@media(max-width:680px){.auth-stepper{grid-template-columns:repeat(7,88px)}.auth-wizard-grid{grid-template-columns:1fr}.auth-wizard-hero,.auth-login-hero2{grid-template-columns:auto 1fr;gap:10px;padding:14px}.auth-hero-actions{grid-column:1/-1;justify-content:flex-end}.auth-wizard-badge{width:54px;height:54px;border-radius:20px;font-size:25px}.auth-wizard-copy .page-title{font-size:21px}.auth-wizard-form,.auth-stepper-card,.auth-login-box2{padding:14px;border-radius:24px}.auth-field-card,.auth-choice-card{border-radius:20px;padding:12px}.auth-submit-row{flex-direction:column}.auth-submit-row .auth-main-btn,.auth-back-btn{width:100%}.auth-login-links2{grid-template-columns:1fr}.auth-step-badge{min-width:88px}}

/* v201: sms autofill fallback + keep global JS cache stable */
.auth-temp-note{border-color:rgba(34,197,94,.20)!important;background:#f0fdf4!important;color:#166534!important}


/* v202: cleaner registration form, no top explanation card, SMS code autofill fix */
.auth-wizard-clean{padding-top:8px!important}.auth-wizard-clean .auth-stepper-card{padding:0 0 8px!important;margin:0 0 8px!important;background:transparent!important;border:0!important;box-shadow:none!important}.auth-wizard-clean .auth-stepper{gap:5px!important}.auth-wizard-clean .auth-step-badge{min-width:68px!important;padding:6px 4px!important;border-radius:14px!important;background:rgba(255,255,255,.74)!important;box-shadow:none!important}.auth-wizard-clean .auth-step-badge-circle{width:25px!important;height:25px!important;font-size:11px!important}.auth-wizard-clean .auth-step-badge small{font-size:9px!important;line-height:1.25!important}.auth-wizard-form-clean{padding:13px!important;border-radius:24px!important}.auth-wizard-form-clean .auth-field-card{padding:11px!important;border-radius:18px!important}.auth-field-help{display:block;margin-top:6px;color:#81758e;font-size:11px;font-weight:750;line-height:1.65}.auth-wizard-form-clean .auth-field-label{margin-bottom:6px!important}.auth-wizard-form-clean .auth-field-icon{width:26px!important;height:26px!important;border-radius:10px!important;font-size:13px!important}.auth-wizard-form-clean .auth-submit-row{margin-top:10px!important}.auth-wizard-form-clean .auth-soft-note{display:none!important}.auth-wizard-form-clean input[data-autofilled-code="1"]{border-color:rgba(34,197,94,.42)!important;background:#f0fdf4!important}.auth-grid-identity{grid-template-columns:1fr 1fr!important}@media(max-width:680px){.auth-wizard-clean{padding-top:4px!important}.auth-wizard-clean .auth-stepper{grid-template-columns:repeat(6,74px)!important}.auth-wizard-clean .auth-step-badge{min-width:74px!important}.auth-wizard-form-clean{padding:11px!important}.auth-grid-identity{grid-template-columns:1fr!important}.auth-wizard-form-clean .auth-field-card{padding:10px!important}}


/* v203: tap responsiveness + clean register selects */
a,button,[role="button"],input,select,textarea{touch-action:manipulation}.auth-wizard-page select.ds-input{appearance:auto!important}.auth-select-search{display:none!important}.job-suggest-box button{touch-action:manipulation}.job-suggest-wrap input:invalid{border-color:rgba(239,68,68,.35)!important;background:#fff7f7!important}

/* v204: instant SMS autofill mode, visible submit loading, better job dropdown, robust country/city selects */
.auth-main-btn.is-loading,.auth-resend-btn.is-loading{position:relative;display:inline-flex!important;align-items:center;justify-content:center;gap:9px;pointer-events:none;opacity:.94}.auth-resend-btn.is-waiting,.auth-main-btn.is-waiting{opacity:.55;pointer-events:none}.auth-spinner{width:17px;height:17px;border-radius:999px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;display:inline-block;animation:authSpinV204 .75s linear infinite}.auth-resend-btn .auth-spinner,.btn-soft .auth-spinner{border-color:rgba(124,58,237,.22);border-top-color:#7c3aed}@keyframes authSpinV204{to{transform:rotate(360deg)}}.auth-wizard-form-clean input[name="birth_year"]{direction:ltr;text-align:left}.auth-wizard-page .job-suggest-wrap{position:relative}.auth-wizard-page .job-suggest-box{z-index:999;top:calc(100% + 7px)!important;right:0!important;left:0!important;max-height:min(260px,34vh)!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;background:#fff;border:1px solid rgba(124,58,237,.20);border-radius:18px;box-shadow:0 18px 44px rgba(28,18,48,.18);padding:6px}.auth-wizard-page .job-suggest-box button{min-height:42px;padding:10px 12px!important;border-radius:13px!important;touch-action:manipulation}.auth-wizard-page .job-suggest-box button:active{background:#ede9fe!important}.auth-wizard-page select.js-country-select,.auth-wizard-page select.js-city-select{background:#fff!important;color:#21172f!important}@media(max-width:680px){.auth-wizard-page .job-suggest-box{max-height:28vh!important}.auth-wizard-page .job-suggest-box button{min-height:44px}.auth-submit-row .auth-main-btn.is-loading,.auth-resend-btn.is-loading{min-height:48px}}


/* v205: profile photo step + better job dropdown scroll */
.auth-wizard-clean .auth-stepper{grid-template-columns:repeat(7,minmax(74px,1fr))!important}.auth-grid-avatar{grid-template-columns:1fr!important}.auth-avatar-card{padding:12px!important}.avatar-editor{display:grid;gap:12px}.avatar-file-input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.avatar-canvas-wrap{position:relative;display:grid;place-items:center;margin-inline:auto;width:min(100%,300px);aspect-ratio:1;border-radius:999px;background:linear-gradient(135deg,#f5f0ff,#fff);box-shadow:inset 0 0 0 1px rgba(124,58,237,.16),0 14px 34px rgba(28,18,48,.12);overflow:hidden;touch-action:none}.avatar-canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none}.avatar-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#6d28d9;font-size:34px;font-weight:950;line-height:1.7;background:linear-gradient(135deg,#faf7ff,#fff)}.avatar-empty[hidden]{display:none!important}.avatar-empty b{font-size:13px;color:#4b3868}.avatar-tools{display:grid;gap:9px}.avatar-tools label{display:grid;gap:6px;font-size:12px;font-weight:950;color:#3a2a52}.avatar-tools input[type="range"]{width:100%;accent-color:var(--primary)}.avatar-check{display:flex!important;grid-template-columns:auto!important;align-items:center!important;gap:8px!important}.avatar-check input{width:18px;height:18px;accent-color:var(--primary)}.avatar-choose-btn{border:0;border-radius:18px;padding:12px 14px;background:#f5f0ff;color:#6d28d9;font-weight:950;font-family:var(--app-font);touch-action:manipulation}.auth-wizard-page .job-suggest-box{max-height:min(330px,42vh)!important;overflow-y:scroll!important;touch-action:pan-y!important}.auth-wizard-page .job-suggest-box.is-open{display:block!important}.auth-wizard-page .job-suggest-box button{user-select:none}.auth-wizard-page input[name="job_title"] + .job-suggest-box{margin-bottom:env(safe-area-inset-bottom)}@media(max-width:680px){.auth-wizard-clean .auth-stepper{grid-template-columns:repeat(7,76px)!important}.avatar-canvas-wrap{width:min(100%,260px)}.auth-wizard-page .job-suggest-box{max-height:36vh!important}.avatar-tools{gap:8px}}


/* v206: minimal profile photo picker + English-friendly registration */
.auth-avatar-card-simple{box-shadow:none!important;background:transparent!important;border:0!important;padding:6px 0 2px!important}.avatar-editor-simple{display:grid;place-items:center;gap:13px}.avatar-circle-picker{width:min(72vw,250px);height:min(72vw,250px);border-radius:999px;border:2px dashed rgba(124,58,237,.36);background:linear-gradient(135deg,#fff,#f7f2ff);display:grid;place-items:center;position:relative;overflow:hidden;box-shadow:0 18px 45px rgba(124,58,237,.12);color:#7c3aed;cursor:pointer;touch-action:manipulation}.avatar-circle-picker canvas{width:100%;height:100%;display:block;object-fit:cover}.avatar-plus{position:absolute;inset:0;display:grid;place-items:center;font-size:76px;line-height:1;font-weight:500;color:#7c3aed;background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(245,240,255,.82));transition:.16s}.avatar-plus.has-photo{inset:auto;right:14px;bottom:14px;width:48px;height:48px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:34px;box-shadow:0 10px 24px rgba(124,58,237,.28)}.avatar-face-help{max-width:320px;text-align:center!important;line-height:1.9!important;font-size:13px!important;color:#5b5268!important}.avatar-tools,.avatar-choose-btn{display:none!important}@media(max-width:680px){.avatar-circle-picker{width:min(74vw,230px);height:min(74vw,230px)}.avatar-plus{font-size:68px}.avatar-plus.has-photo{width:44px;height:44px;font-size:30px}.avatar-face-help{font-size:12.5px!important}}


/* v207: simplified login page */
.auth-login-simple-v207{padding-top:12px!important}.auth-login-simple-v207 .auth-login-box-simple{margin-top:0!important;padding:14px!important;border-radius:26px!important;box-shadow:0 14px 42px rgba(31,18,55,.08)!important}.auth-login-simple-v207 .auth-field-card{box-shadow:none!important}.auth-guide-simple-btn{width:100%;border:0;border-radius:18px;background:#f5f0ff;color:#6d28d9;font-family:var(--app-font);font-weight:950;padding:13px 14px;margin-bottom:12px;touch-action:manipulation}.auth-guide-simple-btn:active{transform:scale(.99)}@media(max-width:680px){.auth-login-simple-v207{padding-top:6px!important}.auth-login-simple-v207 .auth-login-box-simple{padding:12px!important;border-radius:23px!important}.auth-guide-simple-btn{min-height:46px}}


/* v208: prevent duplicate native password reveal icon in English/LTR */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear{display:none!important;width:0!important;height:0!important}
.ltr .auth-pass-wrap input[type="password"],
.ltr .auth-pass-wrap input[type="text"]{padding-right:48px!important;padding-left:14px!important}
.ltr .auth-pass-wrap .auth-eye-btn{right:10px!important;left:auto!important}
.rtl .auth-pass-wrap input[type="password"],
.rtl .auth-pass-wrap input[type="text"]{padding-left:48px!important;padding-right:14px!important}
.rtl .auth-pass-wrap .auth-eye-btn{left:10px!important;right:auto!important}
.forgot-username-box{border:1px solid rgba(124,58,237,.14);background:#faf8ff;border-radius:18px;padding:11px 12px;margin-bottom:12px;text-align:center;font-weight:950;color:#4b3868}.forgot-username-box b{direction:ltr;display:inline-block;color:#6d28d9}

/* v209: login language nudge + guide menu buttons */
.login-language-nudge{position:fixed;top:22px;left:max(12px,calc((100vw - 560px)/2 + 16px));z-index:95;max-width:210px;border:1px solid rgba(124,58,237,.18);background:linear-gradient(135deg,#fff,#f5f0ff);color:#5b21b6;border-radius:18px;padding:9px 12px;font-size:12px;font-weight:950;box-shadow:0 12px 32px rgba(124,58,237,.18);animation:langNudgePopV209 .55s ease both}.login-language-nudge:after{content:"";position:absolute;top:-6px;left:28px;width:12px;height:12px;background:#fff;transform:rotate(45deg);border-left:1px solid rgba(124,58,237,.12);border-top:1px solid rgba(124,58,237,.12)}.login-language-nudge.is-hidden{opacity:0;transform:translateY(-8px);pointer-events:none}@keyframes langNudgePopV209{from{opacity:0;transform:translateY(-8px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}.auth-guide-simple-btn{display:flex!important;align-items:center;justify-content:center;gap:8px}.auth-guide-btn-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.guide-menu-panel{width:min(94vw,430px);max-height:82vh;display:block;padding:16px;background:#fff;overflow:hidden}.guide-menu-panel h3{margin:4px 0 12px;text-align:center;font-size:17px;font-weight:950;color:#251b36}.guide-menu-buttons{display:grid;gap:10px;max-height:62vh;overflow:auto;padding:3px}.guide-menu-button{border:1px solid rgba(124,58,237,.13);background:linear-gradient(135deg,#fff,#faf7ff);border-radius:20px;padding:12px;display:flex;align-items:center;gap:10px;text-align:right;font-family:var(--app-font);color:#2d2140;box-shadow:0 10px 28px rgba(124,58,237,.06);touch-action:manipulation}.guide-menu-button span{width:36px;height:36px;border-radius:14px;display:grid;place-items:center;background:#f5f0ff;color:#6d28d9;font-weight:1000}.guide-menu-button b{font-size:14px;font-weight:950}.guide-content-view[hidden],.guide-menu-view[hidden]{display:none!important}.guide-back-btn{border:0;background:#f5f0ff;color:#6d28d9;border-radius:999px;padding:8px 12px;font-family:var(--app-font);font-weight:950;margin-bottom:8px;touch-action:manipulation}.guide-menu-panel .profile-guide-scroller{border-radius:20px;overflow-x:auto;background:#08040f}.guide-menu-panel .profile-guide-slide{height:min(62vh,560px);border-radius:20px}.profile-guide-empty{background:#faf7ff!important;color:#6d28d9!important;text-align:center;padding:18px;font-weight:900}.guide-section-list-v209{max-height:520px!important}.guide-section-admin-item{border:1px solid rgba(124,58,237,.13);border-radius:18px;padding:10px;margin-top:10px;background:#fff}.guide-section-admin-head{display:grid;grid-template-columns:1fr 70px auto auto;gap:7px;align-items:center}.guide-order-input{text-align:center}.guide-active-check,.guide-delete-check{font-size:12px;font-weight:900;white-space:nowrap}.guide-delete-check{color:#ef4444}.guide-section-media-list{margin-top:8px}@media(max-width:680px){.login-language-nudge{top:84px;left:12px;right:auto;max-width:190px;font-size:11px;padding:8px 10px}.guide-menu-panel{max-height:78vh;border-radius:24px}.guide-menu-panel .profile-guide-slide{height:min(58vh,500px)}.guide-section-admin-head{grid-template-columns:1fr 62px;gap:7px}.guide-active-check,.guide-delete-check{grid-column:auto}.guide-menu-button{padding:11px}.guide-menu-button span{width:34px;height:34px}}


/* v210: guide shown as glass tabs on top, not slide/menu flow */
.guide-tabs-panel{width:min(94vw,520px)!important;max-height:min(82vh,760px)!important;border-radius:28px!important;background:rgba(255,255,255,.88)!important;backdrop-filter:blur(22px)!important;overflow:hidden!important;display:grid!important;grid-template-rows:auto 1fr!important}.guide-glass-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:14px 48px 12px 14px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.72));border-bottom:1px solid rgba(124,58,237,.10);scrollbar-width:none}.guide-glass-tabs::-webkit-scrollbar{display:none}.guide-glass-tab{flex:0 0 auto;border:1px solid rgba(124,58,237,.18);background:rgba(255,255,255,.58);backdrop-filter:blur(14px);box-shadow:0 8px 24px rgba(124,58,237,.10);border-radius:999px;padding:10px 14px;font-family:var(--app-font);font-size:12.5px;font-weight:950;color:#5f4b7d;white-space:nowrap;touch-action:manipulation}.guide-glass-tab.is-active{background:linear-gradient(135deg,rgba(124,58,237,.96),rgba(167,139,250,.96));color:#fff;border-color:transparent;box-shadow:0 12px 28px rgba(124,58,237,.25)}.guide-tab-content-wrap{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(180deg,#fff,#fbf8ff)}.guide-tab-content[hidden]{display:none!important}.guide-media-stack{display:grid;gap:12px;padding:14px}.guide-media-card{border-radius:22px;overflow:hidden;background:#0b0712;box-shadow:0 14px 34px rgba(28,18,48,.14);min-height:180px;display:grid;place-items:center}.guide-media-card img,.guide-media-card video{width:100%;max-height:60vh;object-fit:contain;display:block;background:#0b0712}.guide-empty-state{border:1px dashed rgba(124,58,237,.22);background:#faf8ff;color:#6d28d9;border-radius:20px;padding:22px;text-align:center;font-weight:950;line-height:1.8}.guide-tabs-modal .profile-guide-close{top:10px!important;left:10px!important;z-index:5!important}.rtl .guide-glass-tabs{padding:14px 14px 12px 48px}.ltr .guide-glass-tabs{padding:14px 48px 12px 14px}@media(max-width:680px){.guide-tabs-panel{width:min(94vw,430px)!important;max-height:78vh!important;border-radius:24px!important}.guide-glass-tabs{padding-top:12px!important}.guide-glass-tab{padding:9px 12px;font-size:12px}.guide-media-stack{padding:11px}.guide-media-card{border-radius:18px;min-height:150px}.guide-media-card img,.guide-media-card video{max-height:54vh}}


/* v211: instant guide modal with lazy video loading */
.guide-video-shell{position:relative;width:100%;min-height:210px;background:linear-gradient(135deg,#12091f,#2d1550);display:grid;place-items:center;overflow:hidden;border-radius:inherit}.guide-video-shell video{width:100%;max-height:60vh;display:block;background:#0b0712}.guide-video-play{position:absolute;inset:0;border:0;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.14),rgba(8,5,15,.72));color:#fff;display:grid;place-items:center;align-content:center;gap:10px;font-family:var(--app-font);font-weight:950;cursor:pointer;touch-action:manipulation}.guide-video-play span{width:62px;height:62px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.92);color:#7c3aed;font-size:28px;box-shadow:0 16px 38px rgba(0,0,0,.22);padding-left:4px}.guide-video-play b{font-size:14px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.20);backdrop-filter:blur(10px);border-radius:999px;padding:8px 13px}.guide-video-shell.is-loading .guide-video-play span{animation:guidePulseV211 .85s ease-in-out infinite}.guide-video-play[hidden]{display:none!important}@keyframes guidePulseV211{0%,100%{transform:scale(1)}50%{transform:scale(.92)}}.guide-media-card img{content-visibility:auto}.guide-tab-content-wrap{contain:layout paint}.guide-tabs-panel{will-change:opacity,transform}.guide-glass-tab{will-change:transform}.admin-page .guide-admin-item video{preload:none!important}
@media(max-width:680px){.guide-video-shell{min-height:170px}.guide-video-play span{width:54px;height:54px;font-size:24px}.guide-video-play b{font-size:12px}}


/* v212: login-only Persian UI, yellow language nudge, elegant guide glow */
.login-language-nudge{
  background:linear-gradient(135deg,#ffe66d,#fbbf24)!important;
  color:#3b2600!important;
  border:1px solid rgba(180,83,9,.28)!important;
  box-shadow:0 14px 36px rgba(245,158,11,.26)!important;
  font-size:15px!important;
  font-weight:1000!important;
  padding:12px 18px!important;
  border-radius:999px!important;
  min-width:230px!important;
  text-align:center!important;
}
.auth-login-v209 .auth-guide-simple-btn,
.auth-login-simple-v207 .auth-guide-simple-btn{
  animation:guidePulseV212 2.45s ease-in-out infinite!important;
  box-shadow:0 12px 30px rgba(124,58,237,.15)!important;
}
@keyframes guidePulseV212{
  0%,100%{transform:translateY(0);box-shadow:0 12px 30px rgba(124,58,237,.14),0 0 0 0 rgba(124,58,237,.16)}
  45%{transform:translateY(-1px);box-shadow:0 16px 38px rgba(124,58,237,.23),0 0 0 8px rgba(124,58,237,.055)}
  70%{transform:translateY(0);box-shadow:0 12px 30px rgba(124,58,237,.15),0 0 0 0 rgba(124,58,237,0)}
}
@media(max-width:680px){
  .login-language-nudge{font-size:14px!important;min-width:215px!important;padding:11px 16px!important}
}


/* v213: login nudge to right + plain login inputs */
.login-language-nudge{
  left:auto!important;
  right:max(12px,calc((100vw - 560px)/2 + 16px))!important;
}
.login-language-nudge:after{
  left:auto!important;
  right:28px!important;
  border-left:0!important;
  border-top:1px solid rgba(180,83,9,.20)!important;
  border-right:1px solid rgba(180,83,9,.20)!important;
}
.auth-login-field-plain{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.auth-login-field-plain .ds-input,
.auth-login-field-plain input{
  min-height:52px!important;
  border-radius:19px!important;
  padding-top:14px!important;
  padding-bottom:14px!important;
}
.auth-login-field-plain .auth-pass-wrap input{
  padding-left:48px!important;
}
@media(max-width:680px){
  .login-language-nudge{
    right:12px!important;
    left:auto!important;
  }
  .login-language-nudge:after{
    right:26px!important;
    left:auto!important;
  }
}


/* v214: login redirect-to-profile support UI tweaks only */
.auth-login-v209 .auth-guide-simple-btn,
.auth-login-simple-v207 .auth-guide-simple-btn{
  margin-bottom:22px!important;
  animation:guidePulseV214 1.85s ease-in-out infinite!important;
}
@keyframes guidePulseV214{
  0%,100%{
    transform:translateY(0) scale(1);
    box-shadow:0 12px 30px rgba(124,58,237,.16),0 0 0 0 rgba(124,58,237,.16);
    filter:brightness(1);
  }
  42%{
    transform:translateY(-1px) scale(1.018);
    box-shadow:0 18px 42px rgba(124,58,237,.30),0 0 0 10px rgba(124,58,237,.07);
    filter:brightness(1.035);
  }
  68%{
    transform:translateY(0) scale(1);
    box-shadow:0 12px 30px rgba(124,58,237,.17),0 0 0 0 rgba(124,58,237,0);
    filter:brightness(1);
  }
}
.auth-login-register-area{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  margin-top:12px!important;
  text-align:center!important;
}
.auth-register-pill{
  width:100%!important;
  justify-content:center!important;
}
.auth-forgot-text{
  display:inline-block!important;
  color:#6d28d9!important;
  font-size:13px!important;
  font-weight:950!important;
  text-decoration:none!important;
  padding:4px 0 0!important;
}
.auth-forgot-text:hover{text-decoration:underline!important}
.auth-login-field-plain:first-of-type{
  margin-top:4px!important;
}
@media(max-width:680px){
  .auth-login-v209 .auth-guide-simple-btn,
  .auth-login-simple-v207 .auth-guide-simple-btn{
    margin-bottom:20px!important;
  }
}


/* v215: stronger guide attention + paired login/register buttons + simple field labels */
.auth-login-plain-label{
  margin:0 2px 7px!important;
  color:#35244f!important;
  font-size:13px!important;
  font-weight:1000!important;
  text-align:right!important;
}
.auth-login-action-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  align-items:center!important;
  margin-top:12px!important;
}
.auth-login-submit-half{
  width:100%!important;
  min-height:50px!important;
  border-radius:20px!important;
}
.auth-register-strong{
  width:100%!important;
  min-height:50px!important;
  border-radius:20px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(135deg,#5b21b6,#7c3aed)!important;
  color:#fff!important;
  font-weight:1000!important;
  text-decoration:none!important;
  box-shadow:0 14px 32px rgba(91,33,182,.32)!important;
  touch-action:manipulation!important;
}
.auth-register-strong:active{transform:scale(.99)!important}
.auth-login-register-area{
  margin-top:8px!important;
}
.auth-forgot-text{
  color:#6d28d9!important;
  font-size:13px!important;
  font-weight:950!important;
}
.auth-login-v209 .auth-guide-simple-btn,
.auth-login-simple-v207 .auth-guide-simple-btn{
  animation:guideFlashV215 1.35s ease-in-out infinite!important;
  border:2px solid rgba(124,58,237,.28)!important;
  position:relative!important;
  overflow:hidden!important;
}
.auth-login-v209 .auth-guide-simple-btn:after,
.auth-login-simple-v207 .auth-guide-simple-btn:after{
  content:""!important;
  position:absolute!important;
  inset:-2px!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent)!important;
  transform:translateX(-120%)!important;
  animation:guideShineV215 2.2s ease-in-out infinite!important;
  pointer-events:none!important;
}
@keyframes guideFlashV215{
  0%,100%{
    transform:scale(1);
    background:#f5f0ff;
    color:#6d28d9;
    box-shadow:0 12px 30px rgba(124,58,237,.18),0 0 0 0 rgba(124,58,237,.18);
  }
  40%{
    transform:scale(1.035);
    background:linear-gradient(135deg,#7c3aed,#a78bfa);
    color:#fff;
    box-shadow:0 20px 48px rgba(124,58,237,.38),0 0 0 10px rgba(124,58,237,.10);
  }
  70%{
    transform:scale(1.01);
    background:#efe8ff;
    color:#5b21b6;
    box-shadow:0 14px 34px rgba(124,58,237,.22),0 0 0 0 rgba(124,58,237,0);
  }
}
@keyframes guideShineV215{
  0%,35%{transform:translateX(-120%)}
  70%,100%{transform:translateX(120%)}
}
@media(max-width:680px){
  .auth-login-action-row{gap:8px!important}
  .auth-login-submit-half,.auth-register-strong{min-height:48px!important;border-radius:18px!important}
}

/* v216: cleaner chat users page layout and combined search */
.cchat-inbox-page .cchat-inbox-header-clean{display:none!important}
.cchat-single-searchbar{position:relative;margin:6px 0 10px!important;z-index:8}
.cchat-single-searchbar .ds-input{width:100%!important;height:48px!important;border-radius:20px!important;border:1px solid rgba(124,58,237,.16)!important;background:#fff!important;box-shadow:0 10px 24px rgba(124,58,237,.07)!important;padding:0 16px!important;font-size:14px!important;font-weight:850!important;outline:none!important}
.cchat-single-searchbar .ds-input:focus{border-color:rgba(124,58,237,.44)!important;box-shadow:0 0 0 4px rgba(124,58,237,.10),0 12px 28px rgba(124,58,237,.10)!important}
.cchat-search-suggest-list{position:absolute!important;top:calc(100% + 7px)!important;right:0!important;left:0!important;z-index:40!important;max-height:260px!important;overflow-y:auto!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px)!important;border:1px solid rgba(124,58,237,.16)!important;border-radius:20px!important;box-shadow:0 18px 50px rgba(31,18,55,.16)!important;padding:7px!important}
.cchat-search-suggest-list[hidden]{display:none!important}.cchat-search-suggest-list a{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:2px 9px!important;align-items:center!important;padding:8px!important;border-radius:15px!important;text-decoration:none!important;color:#251a36!important}.cchat-search-suggest-list a:hover{background:#f5f0ff!important}.cchat-search-suggest-list span{grid-row:1/3;width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;display:grid;place-items:center;overflow:hidden;font-weight:950}.cchat-search-suggest-list img{width:100%;height:100%;object-fit:cover}.cchat-search-suggest-list b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cchat-search-suggest-list small{font-size:11px;color:#7a7288;direction:ltr;text-align:start}
.cchat-inbox-page .cchat-quick-actions{margin:8px 0 12px!important}
.cchat-story-suggest-head-clean{display:block!important;margin-bottom:10px!important}.cchat-story-suggest-head-clean>div{display:none!important}.cchat-followers-btn{display:flex!important;width:100%!important;min-height:44px!important;align-items:center!important;justify-content:center!important;border-radius:18px!important;background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;color:#fff!important;font-weight:1000!important;text-decoration:none!important;box-shadow:0 14px 32px rgba(91,33,182,.22)!important;border:0!important}.cchat-followers-btn:before{content:"👥";margin-inline-end:7px}.cchat-story-suggest-card{margin-top:10px!important}.cchat-story-suggest-card .cchat-empty.mini{padding:10px!important;text-align:center!important;color:#8b8197!important}.cchat-inbox-page .cchat-section-title{margin-top:14px!important}
@media(max-width:760px){.cchat-single-searchbar{margin:4px 0 9px!important}.cchat-single-searchbar .ds-input{height:46px!important;border-radius:18px!important;font-size:14px!important}.cchat-search-suggest-list{max-height:230px!important}.cchat-followers-btn{min-height:42px!important;border-radius:16px!important}.cchat-inbox-page .cchat-quick-actions{margin:7px 0 10px!important}}


/* v217: invite phone contacts from chat suggestions */
.cchat-suggest-actions-v217{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;align-items:stretch!important}
.cchat-phonebook-invite-btn{border:0;border-radius:18px;background:linear-gradient(135deg,#fff7ed,#fed7aa);color:#7c2d12;min-height:46px;padding:10px 12px;font-family:var(--app-font);font-weight:1000;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 12px 26px rgba(249,115,22,.16);touch-action:manipulation}
.cchat-phonebook-invite-btn span{font-size:18px}.cchat-phonebook-invite-btn b{font-size:13px}.cchat-phonebook-invite-btn:active{transform:scale(.99)}
.cchat-phonebook-invite-box{margin:10px 0 8px;border:1px solid rgba(249,115,22,.16);background:#fffaf5;border-radius:20px;padding:10px;box-shadow:0 12px 30px rgba(249,115,22,.08)}
.cchat-phonebook-invite-text{font-size:12px;font-weight:850;color:#7c2d12;line-height:1.8;text-align:center;margin-bottom:8px}
.cchat-phonebook-invite-list{display:grid;gap:8px}.cchat-phonebook-invite-item{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;background:#fff;border-radius:16px;padding:9px 10px;border:1px solid rgba(249,115,22,.12)}
.cchat-phonebook-invite-item b{display:block;font-size:13px;color:#2b1a10}.cchat-phonebook-invite-item small{display:block;direction:ltr;text-align:left;font-size:11px;color:#9a5a23;margin-top:2px}
.cchat-phonebook-sms-btn,.cchat-phonebook-copy-btn{border:0;border-radius:14px;background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff!important;text-decoration:none;font-weight:950;font-size:12px;padding:9px 10px;white-space:nowrap;font-family:var(--app-font)}
.cchat-phonebook-copy-btn{width:100%;margin-top:9px;min-height:42px}
@media(max-width:680px){.cchat-phonebook-invite-item{grid-template-columns:1fr}.cchat-phonebook-sms-btn{text-align:center}}

/* v218: move chat suggestions to home + bio followers link */
.cchat-phonebook-only-card-v218{margin:10px 0 12px;padding:0;background:transparent;border:0;box-shadow:none}.cchat-phonebook-only-card-v218 .cchat-phonebook-invite-btn{width:100%}.profile-bio-followers-link{display:inline-flex;align-items:center;justify-content:center;justify-self:start;margin-top:2px;padding:7px 12px;border-radius:999px;background:rgba(124,58,237,.08);border:1px solid rgba(124,58,237,.13);color:#6d28d9!important;font-size:11.5px;font-weight:950;text-decoration:none;box-shadow:0 8px 18px rgba(124,58,237,.06)}.profile-bio-followers-link:before{content:'👥';font-size:12px;margin-inline-end:5px}.home-new-people-v218{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin:2px -2px 14px;padding:4px 2px 10px;scrollbar-width:none}.home-new-people-v218::-webkit-scrollbar{display:none}.home-new-person-card{flex:0 0 86px;display:grid;gap:6px;justify-items:center;align-content:start;border:1px solid rgba(124,58,237,.08);background:linear-gradient(180deg,#fff,#fbf8ff);border-radius:22px;padding:9px 7px 8px;box-shadow:0 10px 24px rgba(44,26,84,.07)}.home-new-person-profile{display:grid;justify-items:center;text-align:center;gap:4px;min-width:0;width:100%;text-decoration:none}.home-new-person-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;position:relative;background:linear-gradient(135deg,#efe7ff,#fff);color:#6d28d9;font-weight:1000;font-size:21px;box-shadow:0 8px 20px rgba(124,58,237,.12);overflow:visible}.home-new-person-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.home-new-person-card b{font-size:11.5px;line-height:1.25;color:#2d243a;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-new-person-card small{font-size:10px;color:#7c7488;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr}.home-new-person-message{width:100%;min-height:28px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff!important;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:950;text-decoration:none;box-shadow:0 8px 18px rgba(124,58,237,.20)}.home-online-blink-dot{position:absolute;right:2px;bottom:2px;width:13px;height:13px;border-radius:50%;background:#22c55e;border:2px solid #fff;box-shadow:0 0 0 0 rgba(34,197,94,.55);animation:homeOnlinePulseV218 1.15s ease-in-out infinite}.rtl .home-online-blink-dot{right:auto;left:2px}@keyframes homeOnlinePulseV218{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(34,197,94,.52)}50%{transform:scale(1.12);box-shadow:0 0 0 6px rgba(34,197,94,0)}}@media(max-width:680px){.home-new-person-card{flex-basis:82px;border-radius:20px}.home-new-person-avatar{width:55px;height:55px}.home-new-person-message{min-height:27px}}


/* v219: chat invite ordering/admin text, profile follower placement, home avatar fix */
.cchat-phonebook-first-v219{order:0!important;margin:6px 0 10px!important}
.cchat-phonebook-first-v219 .cchat-phonebook-invite-btn,
.cchat-phonebook-only-card-v218 .cchat-phonebook-invite-btn{
  width:100%!important;
  min-height:52px!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;
  color:#fff!important;
  box-shadow:0 16px 34px rgba(91,33,182,.28)!important;
}
.cchat-phonebook-first-v219 .cchat-phonebook-invite-btn b{font-size:14px!important}
.cchat-phonebook-first-v219 + .cchat-quick-actions{margin-top:4px!important}
.cchat-inbox-page .cchat-single-searchbar{margin-top:10px!important}
.cchat-phonebook-invite-box{border-color:rgba(124,58,237,.18)!important;background:#fbf8ff!important}
.cchat-phonebook-invite-text{color:#4c1d95!important}
.profile-bio-followers-outside-v219{
  width:100%!important;
  max-width:100%!important;
  margin:9px 0 0!important;
  justify-self:stretch!important;
  display:flex!important;
  min-height:40px!important;
  border-radius:18px!important;
}
.profile-caption-side .profile-bio-followers-link{display:none!important}
.home-new-person-avatar{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  overflow:hidden!important;
}
.home-new-person-avatar img{
  width:100%!important;
  height:100%!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  border-radius:50%!important;
  display:block!important;
}
.home-new-person-profile{overflow:hidden!important}
.phonebook-invite-admin-tile-v219{grid-column:1/-1!important}
.phonebook-invite-admin-tile-v219 textarea{width:100%;min-height:110px;resize:vertical;line-height:1.8}
@media(max-width:680px){
  .cchat-phonebook-first-v219 .cchat-phonebook-invite-btn{min-height:50px!important}
  .home-new-person-avatar{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}
}


/* v220: stable chat search ranking + compact profile interactions button */
.cchat-search-suggest-list{
  display:flex!important;
  flex-direction:column!important;
}
.cchat-search-suggest-list[hidden]{display:none!important}
.cchat-search-suggest-list a{
  flex:0 0 auto!important;
}
.cchat-search-suggest-list a[hidden]{display:none!important}
.cchat-single-searchbar{z-index:18!important}
.profile-caption-side{
  position:relative!important;
  min-height:92px!important;
  padding-bottom:36px!important;
  align-content:start!important;
}
.profile-interactions-link-v220{
  position:absolute!important;
  right:10px!important;
  left:10px!important;
  bottom:9px!important;
  height:26px!important;
  min-height:26px!important;
  width:auto!important;
  margin:0!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  border-radius:999px!important;
  background:rgba(124,58,237,.08)!important;
  border:1px solid rgba(124,58,237,.14)!important;
  color:#6d28d9!important;
  box-shadow:none!important;
  font-size:10.8px!important;
  font-weight:950!important;
  line-height:1!important;
  text-decoration:none!important;
}
.profile-interactions-link-v220:before{
  content:"👥"!important;
  font-size:11px!important;
  margin:0!important;
}
.profile-interactions-link-v220 span{
  flex:1 1 auto!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.profile-interactions-link-v220 b{
  min-width:22px!important;
  height:18px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  color:#5b21b6!important;
  font-size:10px!important;
  padding:0 5px!important;
  margin-inline-start:5px!important;
}
.profile-bio-followers-outside-v219{display:none!important}
@media(max-width:680px){
  .profile-caption-side{min-height:92px!important;padding-bottom:35px!important}
  .profile-interactions-link-v220{height:25px!important;min-height:25px!important;font-size:10.5px!important}
}


/* v221: make profile interactions button visible again */
.profile-caption-side .profile-interactions-link-v220,
.profile-caption-side a.profile-bio-followers-link.profile-interactions-link-v220{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
.profile-caption-side .profile-bio-followers-link:not(.profile-interactions-link-v220){
  display:none!important;
}


/* v222: separate profile bio from interactions button without enlarging profile card */
.profile-caption-side{
  padding-bottom:28px!important;
  min-height:92px!important;
  overflow:visible!important;
}
.profile-caption-side .profile-caption-text,
.profile-caption-side .profile-caption-create,
.profile-caption-side .profile-caption-form{
  transform:translateY(-5px)!important;
}
.profile-caption-side .profile-interactions-link-v220{
  bottom:-4px!important;
  height:25px!important;
  min-height:25px!important;
  box-shadow:0 8px 18px rgba(124,58,237,.08)!important;
  background:rgba(255,255,255,.92)!important;
}
@media(max-width:680px){
  .profile-caption-side{
    padding-bottom:27px!important;
    min-height:90px!important;
  }
  .profile-caption-side .profile-caption-text,
  .profile-caption-side .profile-caption-create,
  .profile-caption-side .profile-caption-form{
    transform:translateY(-4px)!important;
  }
  .profile-caption-side .profile-interactions-link-v220{
    bottom:-5px!important;
  }
}


/* v223: move profile icons right and people button left */
.profile-icon-actions-v223{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  direction:rtl!important;
  width:100%!important;
  margin:-2px 0 12px!important;
}
.profile-icon-actions-right-v223{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  direction:ltr!important;
}
.profile-people-top-btn-v223{
  direction:rtl!important;
  min-width:72px!important;
  height:34px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-decoration:none!important;
  color:#5b21b6!important;
  background:linear-gradient(135deg,#fff,#f5f0ff)!important;
  border:1px solid rgba(124,58,237,.18)!important;
  box-shadow:0 8px 18px rgba(124,58,237,.09)!important;
  font-size:11px!important;
  font-weight:1000!important;
  line-height:1!important;
}
.profile-people-top-btn-v223:before{
  content:"👥"!important;
  font-size:12px!important;
}
.profile-people-top-btn-v223 b{
  min-width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 5px!important;
  background:#7c3aed!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:1000!important;
}
.profile-caption-side .profile-interactions-link-v220,
.profile-bio-followers-link.profile-interactions-link-v220{
  display:none!important;
}
.profile-caption-side{
  padding-bottom:12px!important;
  min-height:92px!important;
}
.profile-caption-side .profile-caption-text,
.profile-caption-side .profile-caption-create,
.profile-caption-side .profile-caption-form{
  transform:none!important;
}
@media(max-width:680px){
  .profile-icon-actions-v223{gap:8px!important;margin-bottom:10px!important}
  .profile-icon-actions-right-v223{gap:7px!important}
  .profile-people-top-btn-v223{
    min-width:62px!important;
    height:32px!important;
    padding:0 8px!important;
    font-size:10.5px!important;
  }
  .profile-people-top-btn-v223 b{
    min-width:17px!important;
    height:17px!important;
    font-size:9.5px!important;
    padding:0 4px!important;
  }
}



/* v224: people page redesign with all/follower/following/group logic */
.people-page-v224{padding-bottom:32px}
.people-header-v224{display:flex;align-items:center;gap:12px;margin:4px 0 12px}
.people-back-v224{width:40px;height:40px;border-radius:16px;display:grid;place-items:center;text-decoration:none;background:#fff;color:#5b21b6;box-shadow:0 10px 24px rgba(35,24,72,.08);font-size:30px;line-height:1}
.people-header-v224 h1{margin:0;font-size:22px;font-weight:1000;color:#221a35}
.people-header-v224 p{margin:2px 0 0;font-size:12px;font-weight:850;color:#80758f}
.people-tabs-v224{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:8px 0 10px}
.people-tab-v224{min-width:0;text-decoration:none;border:1px solid rgba(124,58,237,.13);background:linear-gradient(180deg,#fff,#fbf8ff);border-radius:20px;padding:9px 6px 7px;display:grid;grid-template-rows:auto auto auto;place-items:center;gap:5px;box-shadow:0 10px 24px rgba(35,24,72,.065);color:#3e3155}
.people-tab-v224 b{font-size:12px;font-weight:1000;white-space:nowrap}
.people-tab-v224 small{font-size:10px;font-weight:950;color:#7c3aed;direction:ltr}
.people-tab-v224 i{width:22px;height:22px;border-radius:8px;border:1.5px solid rgba(124,58,237,.25);display:grid;place-items:center;background:#fff;font-style:normal;color:#fff;font-size:13px;font-weight:1000}
.people-tab-v224.is-active{background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff;border-color:transparent;box-shadow:0 16px 34px rgba(124,58,237,.22)}
.people-tab-v224.is-active small{color:#fff}
.people-tab-v224.is-active i{background:#22c55e;border-color:#22c55e;color:#fff;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.people-search-v224{display:grid;grid-template-columns:1fr 46px;gap:8px;margin:8px 0 12px}
.people-search-v224 input{height:46px;border:1px solid rgba(124,58,237,.14);border-radius:18px;background:#fff;padding:0 13px;font-family:var(--app-font);font-weight:850;outline:0}
.people-search-v224 button{border:0;border-radius:18px;background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff;font-size:20px;font-weight:1000}
.people-groups-panel-v224,.people-save-group-v224,.people-group-help-v224{border:1px solid rgba(124,58,237,.12);background:linear-gradient(180deg,#fff,#fbf8ff);border-radius:22px;padding:11px;margin:8px 0 12px;box-shadow:0 12px 28px rgba(35,24,72,.065)}
.people-groups-head-v224{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.people-groups-head-v224 b{font-size:13px;font-weight:1000;color:#2a2138}
.people-create-group-v224{padding:8px 11px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff!important;text-decoration:none;font-size:11px;font-weight:1000;box-shadow:0 10px 22px rgba(91,33,182,.20)}
.people-group-limit-v224{padding:8px 10px;border-radius:999px;background:#f5f0ff;color:#6d28d9;font-size:11px;font-weight:950}
.people-group-chips-v224{display:grid;gap:8px}
.people-group-chip-v224{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center;border:1px solid rgba(124,58,237,.10);background:#fff;border-radius:18px;padding:8px;min-width:0}
.people-group-chip-v224>a:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;text-decoration:none;color:#2f2840}
.people-group-chip-v224 b{font-size:12px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.people-group-chip-v224 small{min-width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f5f0ff;color:#6d28d9;font-size:10px;font-weight:1000}
.people-group-chip-v224.is-active{border-color:rgba(124,58,237,.28);box-shadow:0 10px 24px rgba(124,58,237,.10)}
.people-group-edit-v224{padding:7px 9px;border-radius:999px;background:#f5f0ff;color:#6d28d9!important;text-decoration:none;font-size:10.5px;font-weight:1000}
.people-group-delete-v224{margin:0}.people-group-delete-v224 button{width:28px;height:28px;border:0;border-radius:999px;background:#fee2e2;color:#dc2626;font-size:18px;font-weight:1000}
.people-empty-group-v224,.people-empty-v224,.people-group-help-v224{font-size:12px;font-weight:900;color:#7d728e;line-height:1.8;text-align:center}
.people-save-group-v224{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}
.people-save-group-v224 input{min-width:0;height:42px;border:1px solid rgba(124,58,237,.14);border-radius:16px;padding:0 11px;font-family:var(--app-font);font-weight:900}
.people-save-group-v224 button,.people-save-group-v224 a{height:42px;border:0;border-radius:16px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-family:var(--app-font);font-weight:1000;font-size:12px}
.people-save-group-v224 button{background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff}
.people-save-group-v224 a{background:#f5f0ff;color:#6d28d9}
.people-grid-v224{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:start}
.people-card-v224{position:relative;min-width:0;border:1px solid rgba(124,58,237,.09);background:#fff;border-radius:18px;padding:8px 4px 7px;display:grid;justify-items:center;gap:4px;text-decoration:none;color:#2d263d;box-shadow:0 10px 22px rgba(35,24,72,.06);overflow:hidden}
.people-avatar-v224{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;position:relative;background:linear-gradient(135deg,#efe7ff,#fff);color:#6d28d9;font-weight:1000;font-size:18px;box-shadow:0 8px 18px rgba(124,58,237,.12)}
.people-avatar-v224 img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.people-dot-v224{position:absolute;left:50%;bottom:-3px;transform:translateX(-50%);width:11px;height:11px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 2px rgba(34,197,94,.12)}
.people-dot-v224.is-follower{background:#22c55e;animation:peopleGreenPulseV224 1.4s ease-in-out infinite}
.people-dot-v224.is-following{background:#7c3aed}
@keyframes peopleGreenPulseV224{0%,100%{box-shadow:0 0 0 2px rgba(34,197,94,.16),0 0 0 0 rgba(34,197,94,.25)}50%{box-shadow:0 0 0 2px rgba(34,197,94,.16),0 0 0 6px rgba(34,197,94,0)}}
.people-card-v224 b{width:100%;font-size:10px;font-weight:1000;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.people-card-v224 small{width:100%;font-size:9px;font-weight:900;text-align:center;direction:ltr;color:#786f89;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.people-pick-v224{position:absolute;opacity:0;pointer-events:none}
.people-card-v224 em{display:none;position:absolute;top:5px;right:5px;width:18px;height:18px;border-radius:7px;background:#22c55e;color:#fff;font-style:normal;font-weight:1000;font-size:12px;place-items:center}
.people-pick-v224:checked ~ em{display:grid}
.people-grid-v224.is-selecting .people-card-v224{cursor:pointer}
.people-grid-v224.is-selecting .people-card-v224:has(.people-pick-v224:checked){border-color:rgba(34,197,94,.35);background:#f0fdf4}
@media(max-width:420px){
  .people-tabs-v224{gap:6px}.people-tab-v224{border-radius:17px;padding:8px 4px 6px}.people-tab-v224 b{font-size:11px}.people-tab-v224 small{font-size:9.5px}.people-tab-v224 i{width:20px;height:20px;border-radius:7px}
  .people-grid-v224{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .people-card-v224{border-radius:15px;padding:6px 2px}
  .people-avatar-v224{width:38px;height:38px;font-size:15px}
  .people-card-v224 b{font-size:9px}
  .people-card-v224 small{font-size:8px}
  .people-save-group-v224{grid-template-columns:1fr;gap:7px}
  .people-save-group-v224 button,.people-save-group-v224 a{width:100%}
}


/* v225: people page audience ticks are independent from tabs + avatar oval fix */
.people-tabs-v224 .people-tab-v224 i{display:none!important}
.people-audience-picker-v225{display:grid;grid-template-columns:auto repeat(4,minmax(64px,1fr));gap:8px;align-items:center;margin:7px 0 10px;padding:8px;border:1px solid rgba(124,58,237,.10);background:linear-gradient(135deg,#fff,#fbf8ff);border-radius:22px;box-shadow:0 10px 24px rgba(35,24,72,.045)}
.people-audience-title-v225{font-size:11px;font-weight:1000;color:#6d28d9;white-space:nowrap;padding-inline:4px}.people-audience-item-v225{margin:0}.people-audience-item-v225 button,.people-audience-group-link-v225{width:100%;height:38px;border:0;border-radius:16px;background:#fff;color:#4b3868;display:flex;align-items:center;justify-content:center;gap:6px;font-family:var(--app-font);font-size:11.5px;font-weight:1000;text-decoration:none;box-shadow:inset 0 0 0 1px rgba(124,58,237,.12);touch-action:manipulation}.people-audience-item-v225 i,.people-group-audience-v225 i{width:15px;height:15px;border-radius:5px;border:2px solid rgba(124,58,237,.28);background:#fff;display:grid;place-items:center;flex:0 0 auto}.people-audience-item-v225.is-checked button,.people-audience-group-link-v225.is-checked{background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;box-shadow:0 10px 22px rgba(91,33,182,.20)}.people-audience-item-v225.is-checked i,.people-audience-group-link-v225.is-checked i{border-color:#fff;background:#fff}.people-audience-item-v225.is-checked i:after,.people-audience-group-link-v225.is-checked i:after,.people-group-audience-v225.is-checked i:after{content:'✓';font-size:10px;font-weight:1000;color:#6d28d9;line-height:1}.people-group-audience-v225{margin:0}.people-group-audience-v225 button{width:30px;height:30px;border:0;border-radius:12px;background:#fff;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(124,58,237,.14)}.people-group-audience-v225.is-checked button{background:linear-gradient(135deg,#7c3aed,#5b21b6);box-shadow:0 8px 18px rgba(91,33,182,.18)}.people-group-audience-v225.is-checked i{border-color:#fff;background:#fff}.people-avatar-v224{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;border-radius:50%!important;overflow:visible!important;aspect-ratio:1/1!important}.people-avatar-v224 img{width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;object-fit:cover!important;border-radius:50%!important;display:block!important;aspect-ratio:1/1!important}.people-card-v224{min-width:0!important}.people-card-v224 b,.people-card-v224 small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.people-group-chip-v224{grid-template-columns:minmax(0,1fr) auto auto auto!important}.people-group-chip-v224>a:first-child{min-width:0}.people-group-chip-v224>a:first-child b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:720px){.people-audience-picker-v225{grid-template-columns:1fr 1fr;gap:7px}.people-audience-title-v225{grid-column:1/-1;text-align:center}.people-audience-item-v225 button,.people-audience-group-link-v225{height:36px;font-size:11px}.people-avatar-v224{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important}.people-group-chip-v224{grid-template-columns:minmax(0,1fr) auto auto!important}.people-group-audience-v225{grid-column:2/3}}


/* v226: faster people page, green ticks, black group create button */
.people-page-v224 *{touch-action:manipulation}
.people-grid-v224{content-visibility:auto;contain-intrinsic-size:900px}
.people-card-v224{
  content-visibility:auto!important;
  contain-intrinsic-size:92px 104px!important;
  will-change:auto!important;
}
.people-avatar-v224,
.people-avatar-v224 img{
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  overflow:hidden!important;
  object-fit:cover!important;
}
.people-audience-item-v225 i,
.people-group-audience-v225 i,
.people-card-v224 em,
.people-pick-v224:checked ~ em{
  border-color:#22c55e!important;
  background:#22c55e!important;
  color:#fff!important;
  box-shadow:0 0 0 4px rgba(34,197,94,.13)!important;
}
.people-audience-item-v225.is-checked button,
.people-group-audience-v225.is-checked button{
  border-color:rgba(34,197,94,.35)!important;
  background:linear-gradient(135deg,#f0fdf4,#fff)!important;
  color:#15803d!important;
}
.people-create-group-v224,
.people-save-group-v224 button{
  background:linear-gradient(135deg,#111827,#000)!important;
  color:#fff!important;
  border-color:#111827!important;
  box-shadow:0 12px 28px rgba(17,24,39,.22)!important;
}
.people-search-v226{
  position:relative!important;
  z-index:5!important;
}
.people-search-suggest-v226{
  position:absolute;
  inset-inline:0;
  top:calc(100% + 6px);
  display:grid;
  gap:6px;
  max-height:245px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:7px;
  border-radius:18px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(124,58,237,.14);
  box-shadow:0 18px 42px rgba(35,24,72,.14);
}
.people-search-suggest-v226[hidden]{display:none!important}
.people-search-suggest-v226 button{
  border:0;
  border-radius:13px;
  min-height:36px;
  padding:7px 10px;
  text-align:start;
  background:#f7f3ff;
  color:#4c1d95;
  font-family:var(--app-font);
  font-size:12px;
  font-weight:950;
}
.people-card-v224[hidden]{display:none!important}
@media(max-width:680px){
  .people-avatar-v224,
  .people-avatar-v224 img{
    width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;
  }
  .people-search-suggest-v226{max-height:205px}
}


/* v227: emergency speed fix for people page */
.people-page-v224,
.people-page-v224 *{
  -webkit-tap-highlight-color:transparent;
}
.people-card-v224,
.people-grid-v224 > *{
  content-visibility:auto;
  contain-intrinsic-size:96px 92px;
}
.people-grid-v224{
  contain:layout style;
}
.people-card-v224 img,
.people-card-v224 .people-avatar-v224 img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
}
.people-search-suggest-v226 button{
  touch-action:manipulation!important;
}
.people-tabs-v224 a,
.people-tabs-v224 button,
.people-audience-item-v225 button,
.people-group-chip-v224 a,
.people-group-chip-v224 button,
.people-create-group-v224{
  touch-action:manipulation!important;
}


/* v230: chat header white gap / hidden messages fix */
.cchat-active-page,
.container.cchat-page.cchat-active-page{
  height:100dvh!important;
  min-height:100dvh!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}
.cchat-active-page .cchat-conversation{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:#fff!important;
}
.cchat-active-page .cchat-v146-header{
  flex:0 0 auto!important;
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  z-index:50!important;
  margin:0!important;
  transform:none!important;
}
.cchat-active-page .cchat-messages,
.cchat-active-page .chat-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  margin:0!important;
  padding-top:8px!important;
  padding-left:12px!important;
  padding-right:12px!important;
  padding-bottom:16px!important;
  scroll-padding-top:8px!important;
  background:#fff!important;
}
.cchat-active-page .cchat-pinned-message,
.cchat-active-page .cchat-reply-alert{
  flex:0 0 auto!important;
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  margin:6px 10px 0!important;
  z-index:20!important;
}
.cchat-active-page .cchat-compose,
.cchat-active-page .chat-form,
.cchat-active-page .chat-blocked-note{
  flex:0 0 auto!important;
  position:relative!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  z-index:60!important;
  margin:0!important;
}
.cchat-active-page .cchat-v148-modal[hidden],
.cchat-active-page .cchat-group-info-panel:not(.is-open):not(.active):not([open]),
.cchat-active-page .cchat-group-info:not(.is-open):not(.active):not([open]),
.cchat-active-page .cchat-task-hub:not(.is-open):not(.active):not([open]),
.cchat-active-page .cchat-profile-cta:not(.is-open):not(.active):not([open]){
  display:none!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:420px){
  .cchat-active-page .cchat-messages,
  .cchat-active-page .chat-messages{
    padding-top:6px!important;
    padding-left:9px!important;
    padding-right:9px!important;
  }
}


/* v231: web push notification card */
.push-enable-card-v231{display:grid!important;gap:10px!important;border:1px solid rgba(124,58,237,.12)!important;background:linear-gradient(135deg,#fff,#fbf8ff)!important}
.push-enable-card-v231 h2{margin:0!important;font-size:17px!important;font-weight:1000!important;color:#281a42!important}
.push-enable-card-v231 p{margin:0!important;line-height:1.9!important;color:#655477!important;font-size:13px!important}
.push-actions-v231{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important}
.push-test-btn-v231{background:#111827!important;color:#fff!important;min-width:74px!important}
.push-enable-card-v231 small{min-height:20px!important;color:#7c2d12!important;font-weight:850!important}
.push-enable-card-v231 small.is-ok{color:#15803d!important}
@media(max-width:420px){.push-actions-v231{grid-template-columns:1fr!important}.push-test-btn-v231{width:100%!important}}


/* v232: hard fix for chat first-message white cover + active chat full-screen */
body:has(.cchat-active-page) .ds-topbar,
body:has(.cchat-active-page) .ds-bottomnav,
body:has(.cchat-active-page) .resume-flow-pill{
  display:none!important;
}
body:has(.cchat-active-page) .app-shell{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  padding:0!important;
  margin:0 auto!important;
  overflow:hidden!important;
  background:#fff!important;
}
body:has(.cchat-active-page) .app-shell:before,
body:has(.cchat-active-page) .app-shell:after{
  display:none!important;
  content:none!important;
}
.container.cchat-page.cchat-active-page,
.cchat-active-page{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  display:block!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  background:#fff!important;
}
.cchat-active-page .cchat-conversation{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:#fff!important;
}
.cchat-active-page .cchat-v146-header{
  flex:0 0 auto!important;
  position:relative!important;
  top:auto!important;
  z-index:40!important;
  margin:0!important;
  min-height:0!important;
  transform:none!important;
}
.cchat-active-page .cchat-messages,
.cchat-active-page .chat-messages{
  flex:1 1 auto!important;
  order:20!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  margin:0!important;
  padding:8px 12px 18px!important;
  background:#fff!important;
  position:relative!important;
  z-index:1!important;
  transform:none!important;
}
.cchat-active-page .cchat-messages::before,
.cchat-active-page .chat-messages::before,
.cchat-active-page .cchat-messages::after,
.cchat-active-page .chat-messages::after{
  display:none!important;
  content:none!important;
}
.cchat-active-page .cchat-message:first-of-type,
.cchat-active-page .cchat-system-notice:first-of-type,
.cchat-active-page .cchat-empty-messages:first-of-type{
  margin-top:0!important;
}
.cchat-active-page .cchat-pinned-message,
.cchat-active-page .cchat-reply-alert{
  flex:0 0 auto!important;
  order:15!important;
  position:relative!important;
  margin:6px 10px 0!important;
  z-index:5!important;
}
.cchat-active-page .cchat-compose,
.cchat-active-page .chat-form,
.cchat-active-page .chat-blocked-note{
  flex:0 0 auto!important;
  order:30!important;
  position:relative!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  z-index:20!important;
  margin:0!important;
}
.cchat-active-page .cchat-new-pills{
  position:absolute!important;
  bottom:86px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  z-index:25!important;
}
.cchat-active-page .cchat-group-info-panel:not(.is-open):not(.active):not([open]),
.cchat-active-page .cchat-group-info:not(.is-open):not(.active):not([open]),
.cchat-active-page .cchat-task-hub:not(.is-open):not(.active):not([open]),
.cchat-active-page .cchat-profile-cta:not(.is-open):not(.active):not([open]){
  display:none!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@supports not selector(body:has(.cchat-active-page)){
  .cchat-active-page{margin-top:-82px!important}
}

body.ds-chat-active-room-v232 .ds-topbar,
body.ds-chat-active-room-v232 .ds-bottomnav,
body.ds-chat-active-room-v232 .resume-flow-pill{display:none!important}
body.ds-chat-active-room-v232 .app-shell{height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;padding:0!important;overflow:hidden!important;background:#fff!important}
body.ds-chat-active-room-v232 .app-shell:before,
body.ds-chat-active-room-v232 .app-shell:after{display:none!important;content:none!important}


/* v237: Delsa internal Del wallet and admin bank */
.delcoin-mini{width:42px;height:42px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#fff7ed,#f5f3ff);box-shadow:0 10px 28px rgba(124,58,237,.14);overflow:hidden}
.delcoin-mini img{width:100%;height:100%;object-fit:contain;animation:delCoinFloat 2.8s ease-in-out infinite}
.delcoin-big{width:116px;height:116px;border-radius:34px;display:grid;place-items:center;margin:auto;background:radial-gradient(circle,#fff 0,#fff7ed 46%,#ede9fe 100%);box-shadow:0 22px 60px rgba(124,58,237,.22), inset 0 0 0 1px rgba(255,255,255,.65);overflow:hidden}
.delcoin-big img{width:108%;height:108%;object-fit:contain;animation:delCoinFloat 3s ease-in-out infinite, delCoinGlow 2.4s ease-in-out infinite}
@keyframes delCoinFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.035)}}
@keyframes delCoinGlow{0%,100%{filter:drop-shadow(0 6px 14px rgba(124,58,237,.22))}50%{filter:drop-shadow(0 10px 26px rgba(236,72,153,.32))}}
.del-bank-hero{display:grid;grid-template-columns:130px 1fr;gap:18px;align-items:center;background:linear-gradient(135deg,#fff,#fbf5ff 55%,#fff7ed)}
.del-bank-hero h1{margin:0;font-size:30px;color:#5b21b6}
.del-suggest-wrap{position:relative}
.del-suggest-list{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid rgba(124,58,237,.16);border-radius:18px;box-shadow:0 18px 48px rgba(30,10,80,.16);padding:7px;display:grid;gap:5px;max-height:260px;overflow:auto}
.del-suggest-item{border:0;background:#fbf8ff;border-radius:14px;padding:8px;display:grid;grid-template-columns:38px 1fr;gap:8px;align-items:center;text-align:right}
.del-suggest-item span{width:38px;height:38px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#ede9fe}
.del-suggest-item img{width:100%;height:100%;object-fit:cover}
.del-suggest-item b,.del-suggest-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.del-suggest-item small{color:#786a88;font-size:11px}
.del-transfer-card,.del-pay-card{background:linear-gradient(135deg,#fff,#fbf8ff)}
.del-stat b{color:#6d28d9}
.pay-method-grid{align-items:stretch}
@media(max-width:520px){.del-bank-hero{grid-template-columns:1fr;text-align:center}.delcoin-big{width:98px;height:98px}}


/* v239: admin bank report and wallet anchor polish */
.del-bank-admin-v239{display:grid!important;gap:12px!important}
.del-bank-summary-v239{display:grid;grid-template-columns:1.35fr repeat(5,1fr);gap:8px;align-items:stretch}
.del-bank-balance-v239,.del-bank-stat-v239{border-radius:18px;background:#fff;border:1px solid rgba(124,58,237,.10);box-shadow:0 10px 26px rgba(30,10,80,.05);padding:10px;min-height:76px}
.del-bank-balance-v239{display:grid;grid-template-columns:74px 1fr;gap:10px;align-items:center;background:linear-gradient(135deg,#fff,#fbf5ff)}
.del-bank-balance-v239 .delcoin-big{width:66px;height:66px;border-radius:22px}
.del-bank-balance-v239 span,.del-bank-stat-v239 small{display:block;color:#7a6b88;font-size:11px;font-weight:850}
.del-bank-balance-v239 b,.del-bank-stat-v239 b{display:block;color:#3b2461;font-size:18px;font-weight:1000;margin-top:4px}
.del-bank-balance-v239 small{color:#6d28d9;font-weight:900}
.del-bank-stat-v239.in b,.del-bank-table-v239 .row.in b{color:#15803d}
.del-bank-stat-v239.out b,.del-bank-table-v239 .row.out b{color:#dc2626}
.del-bank-stat-v239.wallet{background:#f7f2ff}.del-bank-stat-v239.bank{background:#fff7ed}
.del-bank-security-note-v239{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important}
.del-bank-security-note-v239 b{font-weight:1000;color:#3b2461}
.del-bank-security-note-v239 span{color:#6d6178;font-size:12px;line-height:1.8}
.del-bank-action-card-v239{padding:12px!important}
.del-bank-action-card-v239 h2,.del-bank-filter-card-v239 h2{font-size:15px!important;margin:0 0 8px!important}
.del-bank-filter-grid-v239{display:grid;grid-template-columns:1.4fr repeat(7,minmax(92px,1fr)) auto auto;gap:7px;align-items:center}
.del-bank-table-v239{display:grid;gap:5px;margin-top:10px;max-height:62vh;overflow:auto;padding-left:2px}
.del-bank-table-v239 .head,.del-bank-table-v239 .row{display:grid;grid-template-columns:118px 1.1fr 1.1fr 105px 1.6fr;gap:7px;align-items:center}
.del-bank-table-v239 .head{position:sticky;top:0;z-index:2;background:#f5f0ff;border-radius:14px;padding:9px 10px;color:#4c1d95;font-size:12px}
.del-bank-table-v239 .row{background:#fff;border:1px solid rgba(124,58,237,.08);border-right:4px solid #16a34a;border-radius:14px;padding:8px 10px;font-size:12px}
.del-bank-table-v239 .row.out{border-right-color:#dc2626;background:#fffafa}
.del-bank-table-v239 small{display:block;color:#8a7d96;font-size:10px;margin-top:2px}
.del-bank-table-v239 em{font-style:normal;color:#7c3aed;font-weight:900}
#wallet-pay{scroll-margin-top:90px}
@media(max-width:900px){
  .del-bank-summary-v239{grid-template-columns:1fr 1fr}
  .del-bank-balance-v239{grid-column:1/-1}
  .del-bank-filter-grid-v239{grid-template-columns:1fr 1fr}
  .del-bank-table-v239 .head{display:none}
  .del-bank-table-v239 .row{grid-template-columns:1fr 1fr;gap:5px}
}
@media(max-width:520px){
  .del-bank-summary-v239,.del-bank-filter-grid-v239{grid-template-columns:1fr}
  .del-bank-security-note-v239{display:grid!important}
}


/* v240: showcase buy button and checkout */
.profile-showcase-buy-btn-v240{display:inline-flex!important;align-items:center;justify-content:center;margin-top:4px;padding:4px 10px;border-radius:999px;background:linear-gradient(135deg,#7c3aed,#ec4899);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:1000;box-shadow:0 7px 18px rgba(124,58,237,.22)}
.profile-showcase-mini-text .profile-showcase-buy-btn-v240{width:auto!important;min-height:22px}
.showcase-buy-page-v240{padding-bottom:90px}
.showcase-buy-card-v240{display:grid;grid-template-columns:minmax(160px,240px) 1fr;gap:16px;align-items:start;background:linear-gradient(135deg,#fff,#fbf8ff)!important}
.showcase-buy-media-v240{border-radius:26px;overflow:hidden;background:#f5f0ff;box-shadow:0 14px 36px rgba(30,10,80,.10)}
.showcase-buy-media-v240 img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.showcase-buy-info-v240{display:grid;gap:10px}
.showcase-buy-info-v240 h1{margin:0;font-size:22px;color:#3b2461}
.showcase-buy-price-v240{border-radius:20px;background:#fff;border:1px solid rgba(124,58,237,.10);padding:12px;display:flex;align-items:center;justify-content:space-between}
.showcase-buy-price-v240 span{color:#766982;font-size:12px;font-weight:850}.showcase-buy-price-v240 b{font-size:21px;color:#6d28d9;font-weight:1000}
.showcase-buy-split-v240{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.showcase-buy-split-v240 span{border-radius:15px;background:#fff;padding:8px 10px;color:#5f536d;font-size:12px;font-weight:850;border:1px solid rgba(124,58,237,.08)}
.showcase-buy-form-v240{display:grid;gap:10px;margin-top:4px}
@media(max-width:620px){.showcase-buy-card-v240{grid-template-columns:1fr}.showcase-buy-media-v240{max-width:240px;margin:auto}.showcase-buy-split-v240{grid-template-columns:1fr}}


/* v241: simple showcase checkout */
.showcase-buy-simple-v241{min-height:70vh;display:grid;place-items:center;padding-bottom:90px}
.showcase-buy-box-v241{width:min(420px,100%);display:grid!important;gap:14px!important;text-align:center;background:linear-gradient(135deg,#fff,#fbf8ff)!important}
.showcase-buy-box-v241 h1{margin:0;font-size:20px;color:#3b2461}
.showcase-buy-amount-v241{border-radius:22px;background:#fff;border:1px solid rgba(124,58,237,.12);padding:15px;display:grid;gap:6px;box-shadow:0 10px 26px rgba(30,10,80,.06)}
.showcase-buy-amount-v241 span{color:#7a6b88;font-size:12px;font-weight:900}
.showcase-buy-amount-v241 b{font-size:26px;color:#6d28d9;font-weight:1000}
.showcase-buy-form-v241{display:grid;gap:9px}
.showcase-buy-form-v241 .btn{width:100%}


/* v242: showcase shipping checkout */
.showcase-buy-simple-v242{min-height:70vh;display:grid;place-items:center;align-content:center;gap:10px;padding-bottom:90px}
.showcase-buy-warning-v242{width:min(460px,100%);border-radius:18px;background:#fef3c7;color:#78350f;border:1px solid rgba(245,158,11,.28);padding:10px 12px;font-size:12px;font-weight:900;line-height:1.8;box-shadow:0 10px 24px rgba(245,158,11,.12)}
.showcase-buy-box-v242{width:min(460px,100%);display:grid!important;gap:12px!important;text-align:center;background:linear-gradient(135deg,#fff,#fbf8ff)!important}
.showcase-buy-box-v242 h1{margin:0;font-size:20px;color:#3b2461}
.showcase-buy-amount-v242{border-radius:20px;background:#fff;border:1px solid rgba(124,58,237,.12);padding:12px;display:grid;gap:4px;box-shadow:0 10px 26px rgba(30,10,80,.06)}
.showcase-buy-amount-v242 span{color:#7a6b88;font-size:12px;font-weight:900}
.showcase-buy-amount-v242 b{font-size:25px;color:#6d28d9;font-weight:1000}
.showcase-buy-form-v242{display:grid;gap:8px;text-align:right}
.showcase-buy-form-v242 textarea{resize:vertical;min-height:44px}
.showcase-buy-form-v242 .btn{width:100%}


/* v243: Del logo amount display */
.del-amount-v243{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.del-amount-v243 img{width:20px;height:20px;object-fit:contain;display:inline-block;vertical-align:middle;filter:drop-shadow(0 3px 7px rgba(124,58,237,.18))}
.del-inline-wallet-v243{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}
.del-inline-wallet-v243 b{display:inline-flex;align-items:center;gap:4px;color:#6d28d9}
.del-inline-wallet-v243 img{width:18px;height:18px;object-fit:contain}
.showcase-wallet-balance-v243{border-radius:16px;background:#fff;border:1px solid rgba(124,58,237,.10);padding:8px 10px;color:#5f536d;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:8px}
.showcase-wallet-balance-v243 b{display:inline-flex;align-items:center;gap:4px;color:#6d28d9}
.showcase-wallet-balance-v243 img{width:18px;height:18px;object-fit:contain}
.profile-showcase-price-logo-v243{display:inline-flex!important;align-items:center;gap:3px}
.profile-showcase-price-logo-v243 img{width:14px;height:14px;object-fit:contain}
.del-stat .del-amount-v243 img{width:22px;height:22px}
.del-bank-stat-v239 .del-amount-v243 img,.del-bank-table-v239 .del-amount-v243 img{width:16px;height:16px}


/* v244: showcase trust stats and violation admin */
.showcase-trust-stats-v244{display:flex;align-items:center;gap:6px;margin:2px 4px 6px;white-space:nowrap;overflow:hidden}
.showcase-trust-stats-v244 span{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:1000;line-height:1;background:#f8fafc}
.showcase-trust-stats-v244 .ok{color:#15803d;background:#dcfce7}
.showcase-trust-stats-v244 .bad{color:#dc2626;background:#fee2e2}
.showcase-trust-stats-v244 b{font-size:11px}
.profile-showcase-card-v99 .showcase-trust-stats-v244 + .profile-showcase-strip{margin-top:0}
.profile-violation-form-v244{display:grid!important;gap:9px!important}
.violation-check-v244{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:900;color:#3b2461}
.violation-check-v244 input{accent-color:#dc2626}
.profile-violation-list-v244{display:grid!important;gap:8px!important;max-height:260px;overflow:auto}
.profile-violation-list-v244 div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:14px;background:#fff;padding:8px 10px;border:1px solid rgba(220,38,38,.10)}
.profile-violation-list-v244 span{color:#dc2626;font-weight:1000}
.profile-violation-list-v244 small{color:#6b6077;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* v245: priced showcase stats and grouped price input */
.showcase-price-input-v245{text-align:center;direction:ltr;font-variant-numeric:tabular-nums}
.profile-showcase-card-v99:not(:has(.showcase-trust-stats-v244)) .profile-showcase-strip{margin-top:0}


/* v246: payment gateway cleanup - payment pages no longer show wallet balance or decorative coin logos */


/* v250: professional chat action states */
.msg-menu button.is-busy,.cchat-reactions button.is-busy{opacity:.55;pointer-events:none}
.edited-chip-v250{font-style:normal;color:#8a7d96;font-size:10px}


/* v251: targeted chat bug fixes */
.cchat-messages{display:flex!important;flex-direction:column!important}
.cchat-message.mine,.chat-msg.mine{align-self:flex-end!important;margin-left:auto!important;margin-right:0!important;text-align:right!important}
.cchat-message.theirs,.chat-msg.theirs{align-self:flex-start!important;margin-right:auto!important;margin-left:0!important;text-align:left!important}
.rtl .cchat-message.mine,.rtl .chat-msg.mine{align-self:flex-end!important}
.rtl .cchat-message.theirs,.rtl .chat-msg.theirs{align-self:flex-start!important}
.cchat-compose,.cchat-private-line-form,.cchat-normal-in-task-group-v251{display:grid!important;visibility:visible!important;opacity:1!important}
body.cchat-create-open [data-chat-search-suggestions]{display:none!important}
.cchat-group-member-search{position:relative!important;z-index:20}
.cchat-group-member-suggestions-v251{position:absolute;inset-inline:0;top:calc(100% + 6px);z-index:80;display:grid;gap:6px;max-height:210px;overflow:auto;border:1px solid rgba(124,58,237,.12);border-radius:16px;background:#fff;box-shadow:0 16px 35px rgba(31,24,51,.14);padding:8px}
.cchat-group-member-suggestions-v251[hidden]{display:none!important}
.cchat-member-suggest-btn-v251{border:0;background:#fbfaff;border-radius:13px;padding:8px;display:grid;grid-template-columns:34px 1fr;gap:8px;text-align:start;align-items:center;color:#2b2438}
.cchat-member-suggest-btn-v251 span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eee7ff;color:#6d28d9;font-weight:900;overflow:hidden}
.cchat-member-suggest-btn-v251 img{width:100%;height:100%;object-fit:cover}
.cchat-member-suggest-btn-v251 b{font-size:12px;font-weight:950;line-height:1.2}
.cchat-member-suggest-btn-v251 small{display:block;color:#7d728a;font-size:10px;margin-top:2px}
[data-group-member-option].is-selected{outline:2px solid rgba(34,197,94,.45)!important;background:#ecfdf5!important}
.cchat-unblock-inline-v251{display:inline-flex!important;width:auto!important;margin-inline-start:8px;padding:7px 12px!important;font-size:12px!important}
.cchat-unblock-action-v251{background:#ecfdf5!important;color:#15803d!important}
.cchat-normal-in-task-group-v251{margin-bottom:8px}


/* v252: group create and composer fixes */
body.cchat-create-open [data-chat-search-area],
body.cchat-create-open .cchat-global-id-search-v252,
body:has([data-group-create][open]) [data-chat-search-area],
body:has([data-task-group-create][open]) [data-chat-search-area]{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
.cchat-active-page .cchat-text-composer-v252,
.cchat-active-page .cchat-compose[data-chat-form]{display:grid!important;flex:0 0 auto!important;min-height:58px!important;visibility:visible!important;opacity:1!important;background:#fff!important;border-top:1px solid rgba(124,58,237,.10)!important;box-shadow:0 -10px 22px rgba(35,10,70,.04)!important}
.cchat-active-page .cchat-messages{padding-bottom:12px!important}
.cchat-member-suggest-btn-v252{grid-template-columns:34px 1fr auto!important}
.cchat-member-suggest-btn-v252 em{font-style:normal;font-size:11px;font-weight:1000;color:#6d28d9;background:#f3e8ff;border-radius:999px;padding:5px 8px}
.v252-added-member{animation:v252-member-add .22s ease-out}
@keyframes v252-member-add{from{transform:translateY(-4px);opacity:.55}to{transform:none;opacity:1}}

/* V20 global Delsagram palette refresh: dark purple base + black depth + red alerts, color-only focused */
:root{
  --ds-v20-purple:#4c1d95;
  --ds-v20-purple-2:#7c3aed;
  --ds-v20-purple-soft:#f3e8ff;
  --ds-v20-black:#111827;
  --ds-v20-red:#dc2626;
  --ds-v20-red-soft:#fee2e2;
  --primary:#4c1d95;
  --primary2:#7c3aed;
}
body{
  background:linear-gradient(180deg,#fbfaff 0%,#f7f3ff 48%,#fff 100%)!important;
}
.ds-topbar{
  background:rgba(255,255,255,.88)!important;
  border-bottom:1px solid rgba(76,29,149,.10)!important;
  box-shadow:0 12px 30px rgba(17,24,39,.055)!important;
}
.ds-brand strong,
.ds-brand span,
.ds-brand{color:var(--ds-v20-black)!important}
.ds-logo-mark{background:linear-gradient(135deg,var(--ds-v20-purple),var(--ds-v20-purple-2))!important;color:#fff!important}
.auth-mini,.logo-upload-mini,.saved-top,.notif-top-link,.lang-switch button{
  background:#fff!important;
  color:var(--ds-v20-purple)!important;
  border:1px solid rgba(76,29,149,.12)!important;
  box-shadow:0 10px 24px rgba(17,24,39,.06)!important;
}
.lang-switch button.active,
.auth-mini:hover,.logo-upload-mini:hover,.saved-top:hover,.notif-top-link:hover{
  background:var(--ds-v20-purple-soft)!important;
  color:var(--ds-v20-purple)!important;
}
.ds-bottom-nav{
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(76,29,149,.09)!important;
  box-shadow:0 -14px 35px rgba(17,24,39,.08)!important;
}
.ds-bottom-nav a{color:var(--ds-v20-black)!important}
.ds-bottom-nav a.active,
.ds-bottom-nav .create-plus{
  background:linear-gradient(135deg,var(--ds-v20-purple),var(--ds-v20-purple-2))!important;
  color:#fff!important;
  box-shadow:0 14px 30px rgba(76,29,149,.24)!important;
}
.chat-unread-badge,.top-unread-badge,.cchat-unread-badge,.badge,.notification-badge{
  background:var(--ds-v20-red)!important;
  color:#fff!important;
  border-color:#fff!important;
}
.btn,.mini-btn,.ds-btn,.primary-btn,button[type="submit"]{
  border-color:rgba(76,29,149,.14)!important;
}
.btn:not(.danger):not(.outline):not(.secondary),.ds-btn-primary,.primary-btn,button[type="submit"]:not(.danger):not(.plain):not(.icon-only){
  background:linear-gradient(135deg,var(--ds-v20-purple),var(--ds-v20-purple-2))!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(76,29,149,.18)!important;
}
.danger,.btn.danger,.mini-btn.danger,[class*="delete"],button[name*="delete"]{
  background:var(--ds-v20-red-soft)!important;
  color:var(--ds-v20-red)!important;
  border-color:rgba(220,38,38,.18)!important;
}
input:focus,textarea:focus,select:focus{
  border-color:rgba(124,58,237,.55)!important;
  box-shadow:0 0 0 4px rgba(124,58,237,.10)!important;
}
.card,.panel,.ds-card,.profile-card,.ad-card,.form-card,.auth-card{
  border-color:rgba(76,29,149,.08)!important;
  box-shadow:0 14px 34px rgba(17,24,39,.055)!important;
}
