/* BECHAT Messenger UI v3.4.1
 * Purpose-built messaging surface. Keeps the public Begoling theme separate.
 */
:root{
  --bc-orange:#ff6b35;
  --bc-orange-2:#ff8354;
  --bc-orange-soft:#fff2ec;
  --bc-navy:#142033;
  --bc-ink:#152033;
  --bc-muted:#7d8999;
  --bc-line:#e7ebf0;
  --bc-soft:#f4f6f8;
  --bc-white:#fff;
  --bc-blue:#3296e6;
}
body.begoling-app-page{background:#eef1f5}

/* Desktop shell: compact utility rail + calm conversation list + focused chat. */
.begoling-app{grid-template-columns:74px 360px minmax(0,1fr)!important;background:#eef1f5}
.begoling-app:not(.begolinginfo-hidden){grid-template-columns:74px 360px minmax(0,1fr) 326px!important}
.begolingrail{background:linear-gradient(180deg,#142033 0%,#101a2c 100%)!important;padding:12px 8px!important;gap:6px!important}
.begolingrail-logo{width:48px!important;height:48px!important;border-radius:16px!important;margin:0 0 8px!important;font-size:18px!important}
.begolingrail-btn,.begolingrail-avatar{width:52px!important;height:52px!important;border-radius:14px!important;color:#8491a6!important}
.begolingrail-btn small{font-size:8px!important;margin-top:3px!important}
.begolingrail-btn:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
.begolingrail-btn.active{background:rgba(255,255,255,.98)!important;color:var(--bc-orange)!important;box-shadow:0 8px 26px rgba(0,0,0,.18)!important}
.begolingrail-count{background:#43a9ed!important;color:#fff!important;border:2px solid #142033!important;min-width:19px!important;height:19px!important;font-size:9px!important}
.begolingrail-avatar{background:#fff2ec!important;color:#d95522!important;border:0!important}

/* Conversation list: denser and easier to scan, inspired by proven desktop messengers. */
.begoling-list{background:#fff!important;border-right:1px solid var(--bc-line)!important}
.begolinglist-head,.begolinglist-head-pro{padding:14px 14px 8px!important;min-height:82px!important;border:0!important}
.bechat-list-title-row{gap:10px!important}
.bechat-menu-button{width:38px!important;height:38px!important;border:0!important;background:#f2f4f7!important;color:#425069!important;border-radius:12px!important}
.begolinglist-head h2{font-size:22px!important;line-height:1.05!important;letter-spacing:-.035em!important}
.begolinglist-head .begolingmini-brand{font-size:9px!important;letter-spacing:.11em!important;color:var(--bc-orange)!important}
.begolingcircle-btn{width:38px!important;height:38px!important;border-radius:12px!important}
.begoling-search{height:42px!important;min-height:42px!important;margin:0 12px 8px!important;background:#f1f3f6!important;border:0!important;border-radius:12px!important;box-shadow:none!important}
.begoling-search input{font-size:12px!important}
.begolingfilter-tabs{margin:0 12px 8px!important;gap:4px!important}
.begolingfilter-tabs button{height:31px!important;min-height:31px!important;border-radius:9px!important;font-size:10px!important;background:#fff!important;border:1px solid #e6eaf0!important}
.begolingfilter-tabs button.active{background:var(--bc-navy)!important;border-color:var(--bc-navy)!important;color:#fff!important}
.begolingsync-line{padding:0 15px 7px!important;color:#9ba6b4!important}
.begolingconversation-list{padding:0 7px 18px!important}
.begolingconv-row,.begolingconversation-item{min-height:66px!important;margin:1px 0!important;padding:8px 9px!important;border-radius:12px!important}
.begolingconv-row:hover,.begolingconversation-item:hover{background:#f5f7f9!important;transform:none!important}
.begolingconv-row.active,.begolingconversation-item.active{background:#eaf4fd!important;box-shadow:inset 3px 0 0 #3296e6!important}
.begolingconv-avatar,.begolinguser-avatar{width:46px!important;height:46px!important;border-radius:50%!important}
.begolingconv-title,.begolingconv-name{font-size:12px!important;color:#162036!important}
.begolingconv-preview{font-size:10px!important;color:#7f8b9c!important;max-width:210px!important}
.begolingunread{background:#3aa6e9!important;font-size:9px!important;min-width:20px!important;height:20px!important}
.bechat-conversation-group-head{padding:12px 10px 5px!important}

/* Conversation canvas: clean Telegram-like readability with a proprietary BECHAT pattern. */
.begolingconversation-pane{
  background-color:#eef3e7!important;
  background-image:
    radial-gradient(circle at 12px 12px,rgba(74,103,66,.045) 0 1.5px,transparent 1.7px),
    radial-gradient(circle at 36px 34px,rgba(255,107,53,.035) 0 1.3px,transparent 1.5px),
    linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,0))!important;
  background-size:48px 48px,64px 64px,100% 100%!important;
}
.begolingconvo-header{height:64px!important;flex:0 0 64px!important;background:rgba(255,255,255,.97)!important;border-color:var(--bc-line)!important;padding:0 16px!important}
.begolingconvo-avatar{width:40px!important;height:40px!important}
.begolingconvo-title b{font-size:13px!important}
.begolingconvo-title span{font-size:10px!important;color:#8c97a6!important}
.begolingconvo-actions{gap:4px!important}
.begolingconvo-actions button{width:36px!important;height:36px!important;background:transparent!important;color:#6e7b8d!important;border-radius:10px!important}
.begolingconvo-actions button:hover{background:#f1f4f7!important;color:#1f89d5!important}
.begolingpinned-banner{width:100%!important;border-radius:0!important;border:0!important;border-bottom:1px solid #e3e8ed!important;background:rgba(255,255,255,.96)!important;box-shadow:none!important;padding:8px 16px!important;color:#267fc0!important}
.begolingmessages{padding:20px max(16px,calc((100% - 820px)/2)) 14px!important;gap:5px!important}
.begolingmessage{max-width:min(72%,620px)!important;border-radius:15px 15px 15px 5px!important;padding:8px 10px 6px!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.12)!important}
.begolingmessage.me{background:#ddf7c8!important;border-radius:15px 15px 5px 15px!important;box-shadow:0 1px 2px rgba(40,88,45,.10)!important}
.begolingmsg-body{font-size:13px!important;line-height:1.48!important;color:#1f2937!important}
.begolingmsg-sender{font-size:10px!important;color:#cf5728!important}
.begolingmessage time{font-size:8px!important;color:#8b97a5!important}
.begolingmessage.me time{color:#668465!important}
.begolingread-mark{color:#2f91d1!important}
.begolingreply-quote{border-left:3px solid #3a98db!important;background:rgba(50,150,230,.06)!important}

/* Native BECHAT sticker messages. */
.begolingmessage.sticker,.begolingmessage.sticker.me{background:transparent!important;box-shadow:none!important;padding:3px 6px!important}
.begolingmessage.sticker .begolingmsg-top,.begolingmessage.sticker .begolingmsg-meta{opacity:.72}
.bechat-sticker-message{font-size:54px!important;line-height:1.15!important;filter:drop-shadow(0 3px 2px rgba(15,23,42,.08));user-select:none}

/* Composer: one calm action row. */
.begolingcomposer{width:min(880px,calc(100% - 28px))!important;margin:7px auto 10px!important;padding:5px 7px!important;min-height:54px!important;border:1px solid #dfe4e9!important;border-radius:15px!important;background:#fff!important;box-shadow:0 6px 20px rgba(15,23,42,.06)!important;gap:3px!important}
.begolingcomposer textarea{min-height:42px!important;padding:11px 6px!important;font-size:13px!important}
.begolingattach,.begolingemoji-btn,.begolingvoice,.begolingsend{width:40px!important;height:40px!important;flex-basis:40px!important;border-radius:11px!important}
.begolingattach,.begolingemoji-btn,.begolingvoice{color:#68788a!important}
.begolingattach:hover,.begolingemoji-btn:hover,.begolingvoice:hover{background:#eff4f8!important;color:#248bd4!important}
.begolingsend{background:linear-gradient(145deg,var(--bc-orange),var(--bc-orange-2))!important}
.begolingreply-bar,.begolingchannel-readonly,.begolingvoice-composer-panel,.bechat-attachment-tray,.bechat-attachment-queue{width:min(880px,calc(100% - 28px))!important}

/* Expression center: a real right-side utility panel on desktop. */
.begolingemoji-picker.bechat-expression-panel{position:fixed!important;z-index:220!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:346px!important;height:100dvh!important;padding:0!important;border:0!important;border-left:1px solid var(--bc-line)!important;border-radius:0!important;background:#fff!important;box-shadow:-18px 0 48px rgba(15,23,42,.12)!important;display:flex!important;grid-template-columns:none!important;flex-direction:column!important;gap:0!important;overflow:hidden!important}
.bechat-expression-head{height:64px;flex:0 0 64px;display:flex;align-items:center;border-bottom:1px solid var(--bc-line);padding:0 8px 0 14px}
.bechat-expression-tabs{height:100%;display:flex;align-items:stretch;flex:1;gap:4px}
.bechat-expression-tabs button{position:relative;min-width:74px;border:0;background:transparent;color:#68778a;font-size:12px;font-weight:700;cursor:pointer}
.bechat-expression-tabs button.active{color:#1d8dd7}
.bechat-expression-tabs button.active:after{content:'';position:absolute;left:12px;right:12px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#1d9bea}
.bechat-expression-close{width:36px;height:36px;border:0;border-radius:10px;background:#f4f6f8;color:#6f7d8e;font-size:20px;cursor:pointer}
.bechat-expression-search{height:42px;margin:10px 12px 8px;border-radius:12px;background:#f2f4f7;display:flex;align-items:center;gap:8px;padding:0 11px;color:#8994a4}
.bechat-expression-search input{border:0;outline:0;background:transparent;min-width:0;flex:1;font-size:12px;color:#172033}
.bechat-expression-body{flex:1;min-height:0;overflow:auto;padding:4px 10px 14px}
.bechat-expression-section-title{padding:8px 5px 7px;color:#8190a2;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.bechat-expression-grid{display:grid;gap:4px}
.bechat-expression-grid.emoji{grid-template-columns:repeat(7,1fr)}
.bechat-expression-item{aspect-ratio:1;border:0;border-radius:10px;background:transparent;font-size:25px;cursor:pointer}
.bechat-expression-item:hover{background:#f1f4f7}
.bechat-expression-grid.stickers{grid-template-columns:repeat(4,1fr);gap:7px}
.bechat-sticker-item{aspect-ratio:1;border:1px solid #eef1f4;border-radius:16px;background:#fafbfc;font-size:42px;cursor:pointer;transition:.15s ease}
.bechat-sticker-item:hover{background:#f0f7fc;border-color:#d4e9f7;transform:translateY(-1px)}
.bechat-expression-grid.gifs{grid-template-columns:repeat(2,1fr);gap:7px}
.bechat-gif-item{border:0;border-radius:12px;overflow:hidden;background:#edf1f5;aspect-ratio:1.35;cursor:pointer;padding:0}
.bechat-gif-item img{width:100%;height:100%;object-fit:cover;display:block}
.bechat-expression-empty{min-height:220px;display:grid;place-items:center;align-content:center;text-align:center;padding:30px;color:#8996a7}
.bechat-expression-empty b{color:#344154;font-size:13px}.bechat-expression-empty span{font-size:10px;line-height:1.6;max-width:220px;margin-top:7px}
.bechat-expression-foot{height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-top:1px solid #edf0f4;color:#8693a4}
.bechat-expression-foot span{font-size:10px;font-weight:800}.bechat-expression-foot small{font-size:9px}

/* Info panel: calmer, on-demand context. */
.begolinginfo-panel{background:#fff!important;border-left:1px solid var(--bc-line)!important}
.begolinginfo-top{height:64px!important;border-color:var(--bc-line)!important}
.begolinginfo-card{padding:24px 16px 18px!important}
.begolingbig-avatar{width:76px!important;height:76px!important}
.begolinginfo-quick button{min-height:56px!important;border-radius:12px!important}
.begolinginfo-block{padding:15px 17px!important}

/* Account drawer: Zalo-like simplicity with Telegram-level capabilities. */
.bechat-drawer{width:350px!important;background:#fff!important;box-shadow:16px 0 52px rgba(15,23,42,.20)!important}
.bechat-drawer-profile{padding:20px 18px 14px!important;background:#fff!important}
.bechat-drawer-avatar{width:58px!important;height:58px!important}
.bechat-drawer-user b{font-size:15px!important}.bechat-drawer-user span{font-size:11px!important}
.bechat-emoji-status{margin:0 10px!important;border-radius:12px!important;min-height:46px!important}
.bechat-drawer-menu{padding:7px 8px!important}
.bechat-drawer-menu button{min-height:47px!important;border-radius:10px!important;padding:0 12px!important}
.bechat-drawer-menu button:hover{background:#f2f6f9!important}
.bechat-drawer-menu button>span{width:26px!important;color:#526277!important}
.bechat-drawer-menu button small{margin-left:auto;color:#9ba5b2;font-size:9px;font-weight:600}
.bechat-night-row,.bechat-add-account,.bechat-install-row,.bechat-signout-row{min-height:48px!important}

/* Group / Channel creation: focused setup cards. */
.begolingmodal-card-wide{width:min(520px,calc(100vw - 28px))!important;max-height:min(760px,calc(100dvh - 32px))!important;border-radius:18px!important;padding:20px!important}
.begolingmodal-card-wide .begolingmodal-head{margin-bottom:12px!important}
.begolingmodal-card-wide .begolingmodal-head h3{font-size:20px!important}
.begolingentity-form{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:13px 16px!important;align-items:start!important}
.begolingentity-form>label,.begolingentity-form>.begolingentity-permission,.begolingentity-form>.begolingselected-users,.begolingentity-form>.begolinguser-results,.begolingentity-form>button[type="submit"]{grid-column:1/-1!important}
.begolingentity-form>.bechat-entity-photo+label{grid-column:2!important;align-self:center!important}
.bechat-entity-photo{grid-column:1!important;grid-row:1!important;width:72px!important;height:72px!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#5eb0ed,#2e8bd5)!important;color:#fff!important;display:grid!important;place-items:center!important;align-content:center!important;gap:2px!important;cursor:pointer!important}
.bechat-entity-photo span{font-size:24px}.bechat-entity-photo small{font-size:8px;font-weight:700}
.begolingentity-form label{font-size:11px!important;font-weight:700!important;color:#4a5667!important}
.begolingentity-form input,.begolingentity-form textarea,.begolingentity-form select{border-radius:11px!important;border-color:#dfe5eb!important;background:#fff!important}
.begolingentity-permission{border-radius:12px!important;background:#f7f9fb!important;border:1px solid #edf0f4!important}
.begolingentity-form>button[type="submit"]{min-height:45px!important;border-radius:11px!important}

.bechat-storage-list{display:grid;gap:4px;margin-top:10px}
.bechat-storage-list>div{min-height:64px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 4px;border-bottom:1px solid #edf1f4}
.bechat-storage-list>div>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#fff1eb;color:var(--bc-orange)}
.bechat-storage-list section b,.bechat-storage-list section small{display:block}.bechat-storage-list section b{font-size:12px}.bechat-storage-list section small{font-size:9px;color:#8995a5;margin-top:4px;line-height:1.45}.bechat-storage-list button{border:0;border-radius:9px;background:#edf5fb;color:#2589ce;font-size:10px;font-weight:800;padding:8px 11px;cursor:pointer}

/* Desktop transition points. */
@media(max-width:1240px){
  .begoling-app,.begoling-app:not(.begolinginfo-hidden){grid-template-columns:70px 340px minmax(0,1fr)!important}
  .begolinginfo-panel{display:none!important}
  .begolinginfo-panel.mobile-open{display:block!important;position:fixed!important;z-index:210!important;right:0!important;top:0!important;bottom:0!important;width:330px!important}
}

/* Mobile: Zalo-like simplicity — one task per screen, bottom nav, sheets. */
@media(max-width:760px){
  body.begoling-app-page{background:#fff!important}
  .begoling-app,.begoling-app:not(.begolinginfo-hidden){display:block!important;background:#fff!important}
  .begoling-list{height:calc(100dvh - 64px)!important;border:0!important}
  .begolinglist-head,.begolinglist-head-pro{padding:max(10px,env(safe-area-inset-top)) 12px 7px!important;min-height:75px!important}
  .begolinglist-head h2{font-size:22px!important}
  .begoling-search{margin-left:10px!important;margin-right:10px!important}
  .begolingfilter-tabs{margin-left:10px!important;margin-right:10px!important;overflow-x:auto!important;scrollbar-width:none!important}
  .begolingconversation-list{padding-left:5px!important;padding-right:5px!important}
  .begolingconv-row,.begolingconversation-item{min-height:65px!important;border-radius:11px!important}
  .begolingconversation-pane{background-color:#eef3e7!important}
  .begolingconvo-header{height:58px!important;flex-basis:58px!important;padding:0 8px!important}
  .begolingconvo-actions button{width:34px!important;height:34px!important}
  .begolingmessages{padding:12px 8px 16px!important}
  .begolingmessage{max-width:86%!important}
  .begolingcomposer{width:calc(100% - 12px)!important;margin:5px 6px max(7px,env(safe-area-inset-bottom))!important;border-radius:14px!important;padding:4px 5px!important;min-height:51px!important}
  .begolingattach,.begolingemoji-btn,.begolingvoice,.begolingsend{width:38px!important;height:38px!important;flex-basis:38px!important}
  .begolingcomposer textarea{font-size:16px!important;min-height:38px!important}
  .begolingemoji-picker.bechat-expression-panel{top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:min(64dvh,560px)!important;border-left:0!important;border-top:1px solid var(--bc-line)!important;border-radius:18px 18px 0 0!important;box-shadow:0 -20px 52px rgba(15,23,42,.16)!important;padding-bottom:env(safe-area-inset-bottom)!important}
  .bechat-expression-head{height:56px;flex-basis:56px}
  .bechat-expression-grid.emoji{grid-template-columns:repeat(7,1fr)}
  .bechat-expression-grid.stickers{grid-template-columns:repeat(4,1fr)}
  .bechat-drawer{width:min(340px,92vw)!important;padding-top:env(safe-area-inset-top)!important}
  .begolingmodal-card-wide{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:18px!important;padding:16px!important}
  .begolingentity-form{grid-template-columns:68px minmax(0,1fr)!important;gap:10px 12px!important}
  .bechat-entity-photo{width:62px!important;height:62px!important}
}

/* Dark theme. */
html[data-bechat-theme="dark"] .begolingconversation-pane{background-color:#102019!important;background-image:radial-gradient(circle at 12px 12px,rgba(255,255,255,.035) 0 1.4px,transparent 1.6px),radial-gradient(circle at 36px 34px,rgba(255,107,53,.045) 0 1.2px,transparent 1.4px)!important}
html[data-bechat-theme="dark"] .begoling-list,html[data-bechat-theme="dark"] .begolingconvo-header,html[data-bechat-theme="dark"] .begolinginfo-panel,html[data-bechat-theme="dark"] .begolingcomposer,html[data-bechat-theme="dark"] .begolingemoji-picker.bechat-expression-panel{background:#111a27!important;border-color:#263140!important;color:#e8eef6!important}
html[data-bechat-theme="dark"] .begolingconv-row.active,html[data-bechat-theme="dark"] .begolingconversation-item.active{background:#183047!important;box-shadow:inset 3px 0 0 #3ba4e6!important}
html[data-bechat-theme="dark"] .begolingmessage:not(.me){background:#1a2736!important;color:#edf3f9!important}
html[data-bechat-theme="dark"] .begolingmessage.me{background:#294a2b!important;color:#fff!important}
html[data-bechat-theme="dark"] .begolingmsg-body{color:inherit!important}
html[data-bechat-theme="dark"] .bechat-expression-search,html[data-bechat-theme="dark"] .bechat-sticker-item{background:#172130!important;border-color:#293648!important;color:#e9eff6!important}
html[data-bechat-theme="dark"] .bechat-expression-search input{color:#e9eff6!important}
html[data-bechat-theme="dark"] .bechat-expression-tabs button{color:#8d9aae!important}html[data-bechat-theme="dark"] .bechat-expression-tabs button.active{color:#4db4f2!important}
html[data-bechat-theme="dark"] .bechat-expression-item:hover{background:#1b2a3a!important}
html[data-bechat-theme="dark"] .bechat-drawer-menu button:hover{background:#192434!important}


/* Social relationship layer retained from v3.2.1 */
.beChat-social-placeholder{display:none}
.beChat-social-placeholder[hidden]{display:none!important}
.beChat-relationship-bar,.bechat-relationship-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 18px;border-bottom:1px solid var(--bc-border,#e8edf4);background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}
.beChat-relationship-copy,.bechat-relationship-copy{display:flex;align-items:center;gap:8px;min-width:0}.bechat-relationship-copy span{font-size:12px;font-weight:800;color:#ff6b3d;background:#fff1eb;border-radius:999px;padding:6px 9px;white-space:nowrap}.bechat-relationship-copy small{color:#8090a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.beChat-relationship-actions,.bechat-relationship-actions{display:flex;gap:8px}.bechat-relationship-actions button,.bechat-relationship-info-actions button{border:1px solid #dce4ee;background:#fff;border-radius:10px;padding:8px 12px;font-weight:700;color:#22304a;cursor:pointer}.bechat-relationship-actions button:first-child,.bechat-relationship-info-actions button:first-child{background:#ff6b3d;border-color:#ff6b3d;color:#fff}.bechat-relationship-actions button.secondary.active,.bechat-relationship-info-actions button.active{background:#eef7ff;border-color:#b8dcff;color:#1677c8}.bechat-relationship-actions button:hover,.bechat-relationship-info-actions button:hover{transform:translateY(-1px)}
.beChat-relationship-info-actions,.bechat-relationship-info-actions{display:flex;gap:8px;margin-top:12px}.bechat-relationship-info-actions button{flex:1}
.beChat-people-tabs,.bechat-people-tabs,.beChat-group-people-tabs,.bechat-group-people-tabs{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;scrollbar-width:none}.bechat-people-tabs::-webkit-scrollbar,.bechat-group-people-tabs::-webkit-scrollbar{display:none}.bechat-people-tabs button,.bechat-group-people-tabs button{border:1px solid #dde5ef;background:#fff;color:#66758b;border-radius:999px;padding:8px 12px;font-weight:700;white-space:nowrap;cursor:pointer}.bechat-people-tabs button.active,.bechat-group-people-tabs button.active{background:#13233a;color:#fff;border-color:#13233a}
.beChat-network-row,.bechat-network-row{align-items:center;gap:12px}.beChat-network-actions,.bechat-network-actions{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.bechat-network-actions button{border-radius:9px;padding:8px 10px;font-weight:700}.bechat-friend-mini{background:#ff6b3d!important;color:#fff!important;border-color:#ff6b3d!important}.bechat-follow-mini.active{background:#eef7ff!important;color:#1677c8!important;border-color:#b8dcff!important}
#begolingGroupUserResults .begolinguser-go{min-width:46px;text-align:center;font-size:11px;font-weight:800;border-radius:999px;padding:6px 9px;background:#fff1eb;color:#ff6b3d}
body.beChat-dark .bechat-relationship-bar,body.begoling-dark .bechat-relationship-bar{background:rgba(19,29,45,.96);border-color:#27364c}.begoling-dark .bechat-relationship-actions button,.begoling-dark .bechat-relationship-info-actions button,.begoling-dark .bechat-people-tabs button,.begoling-dark .bechat-group-people-tabs button{background:#17263a;border-color:#2b3d56;color:#eaf1fb}.begoling-dark .bechat-people-tabs button.active,.begoling-dark .bechat-group-people-tabs button.active{background:#ff6b3d;border-color:#ff6b3d;color:#fff}
@media(max-width:760px){.bechat-relationship-bar{padding:7px 10px;gap:8px}.bechat-relationship-copy small{display:none}.bechat-relationship-actions{gap:6px}.bechat-relationship-actions button{padding:7px 9px;font-size:12px}.bechat-network-row{align-items:flex-start}.bechat-network-actions{width:100%;margin-left:50px;justify-content:flex-start}.bechat-people-tabs,.bechat-group-people-tabs{padding-bottom:8px}}

/* v3.2.2 Avatar + Premium Icon Refresh */
.bechat-svg-icon{width:20px;height:20px;display:block;flex:0 0 auto}
.begolingrail-btn>span,.bechat-drawer-menu button>span,.bechat-night-row>span,.bechat-add-account>span,.bechat-install-row>span,.begolinginfo-quick button>span{display:grid;place-items:center}
.begolingrail-btn>span .bechat-svg-icon{width:21px;height:21px;stroke-width:1.8}
.begolingrail-btn{border-radius:18px;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.begolingrail-btn:hover{transform:translateY(-1px)}
.begolingrail-btn.active{box-shadow:0 9px 24px rgba(255,107,53,.12)}
.begolingrail-btn.active>span{filter:drop-shadow(0 5px 12px rgba(255,107,53,.18))}
.bechat-workspace-icon .bechat-svg-icon,.bechat-empty-workspace .bechat-svg-icon{width:22px;height:22px}
.begolingempty-icon .bechat-svg-icon{width:34px;height:34px}

.bechat-drawer-profile{padding:24px 20px 18px;background:linear-gradient(180deg,#fff 0%,#fffaf7 100%);border-bottom:1px solid rgba(15,23,42,.06)}
.bechat-drawer-avatar-wrap{position:relative;width:72px;height:72px;flex:0 0 auto}
.bechat-drawer-avatar{width:72px!important;height:72px!important;border-radius:24px!important;border:3px solid #fff!important;box-shadow:0 12px 28px rgba(15,23,42,.11)!important;overflow:hidden;cursor:pointer;padding:0!important;background:#edf2f7!important;color:#607086!important}
.bechat-drawer-avatar img,.begolingprofile-avatar img,.bechat-edit-photo-preview img,.bechat-entity-photo-picker>img{width:100%;height:100%;object-fit:cover;display:block}
.bechat-avatar-edit{position:absolute;right:-4px;bottom:-4px;width:31px;height:31px;border-radius:11px;border:3px solid #fff;background:linear-gradient(135deg,#ff6b35,#ff8755);color:#fff;display:grid;place-items:center;box-shadow:0 7px 16px rgba(255,107,53,.28);cursor:pointer;padding:0;z-index:3}
.bechat-avatar-edit .bechat-svg-icon{width:14px;height:14px;stroke-width:2.1}
.bechat-drawer-user{min-width:0;padding-left:4px}.bechat-drawer-user b{font-size:17px;letter-spacing:-.02em}.bechat-drawer-user span{font-size:13px;color:#8090a6}
.bechat-emoji-status{margin:10px 10px 2px;border-radius:14px!important}

.bechat-drawer-menu button{min-height:53px;border-radius:14px;margin:2px 10px;padding:0 14px;transition:background .16s ease,transform .16s ease;color:#1e2d42}
.bechat-drawer-menu button:hover{background:#f5f8fb;transform:translateX(2px)}
.bechat-drawer-menu button>span{width:29px;color:#61738a}.bechat-drawer-menu button>span .bechat-svg-icon{width:20px;height:20px}.bechat-drawer-menu button>b{font-weight:650;letter-spacing:-.01em}
.bechat-night-row>span .bechat-svg-icon,.bechat-add-account>span .bechat-svg-icon,.bechat-install-row>span .bechat-svg-icon{width:20px;height:20px}

.begolingrail-avatar{border:2px solid rgba(255,255,255,.72)!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important;overflow:hidden!important}
.begolingrail-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

.begolingprofile-head{display:grid!important;grid-template-columns:90px minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;padding:22px!important;border:1px solid rgba(15,23,42,.07);border-radius:22px;background:linear-gradient(145deg,#fff,#fbfcfe)}
.begolingprofile-avatar{width:90px!important;height:90px!important;border-radius:28px!important;border:0!important;background:#eef3f8!important;box-shadow:inset 0 0 0 1px rgba(15,23,42,.05),0 10px 28px rgba(15,23,42,.09);overflow:hidden;cursor:pointer;padding:0;font-size:26px;font-weight:800;color:#52647b;display:grid;place-items:center}
.begolingprofile-identity{display:flex;flex-direction:column;gap:4px;min-width:0}.begolingprofile-identity>b{font-size:19px}.begolingprofile-identity>span{color:#6b7d93}.begolingprofile-identity>small{color:#9aa8b9;font-size:12px;margin-top:5px}
.bechat-profile-photo-actions{display:flex;flex-direction:column;gap:8px}.bechat-profile-photo-actions button{min-height:38px;padding:0 12px;border-radius:11px;border:1px solid #e4e9f0;background:#fff;color:#24364b;font-weight:650;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}.bechat-profile-photo-actions button:first-child{background:#fff3ee;border-color:#ffd7c8;color:#d94b1b}.bechat-profile-photo-actions button:last-child{background:#f8fafc;color:#718096}.bechat-profile-photo-actions .bechat-svg-icon{width:16px;height:16px}

.bechat-entity-photo-picker{position:relative;overflow:visible!important;cursor:default!important}.bechat-entity-photo-picker>span:first-child,.bechat-entity-photo-picker>.bechat-entity-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:21px;font-weight:800}.bechat-entity-photo-picker>span .bechat-svg-icon{width:29px;height:29px}.bechat-entity-photo-picker>button{position:absolute;right:-7px;bottom:-7px;width:31px;height:31px;border-radius:10px;border:3px solid #fff;background:#ff6b35;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 16px rgba(255,107,53,.25);padding:0;z-index:4}.bechat-entity-photo-picker>button .bechat-svg-icon{width:14px;height:14px}.bechat-entity-photo-picker>img{position:absolute;inset:0;border-radius:inherit;z-index:2}.bechat-entity-photo-picker>small{position:relative;z-index:3}

.bechat-edit-photo-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid #e7ebf1;background:#f9fbfd;border-radius:16px}.bechat-edit-photo-preview{width:64px;height:64px;border-radius:20px;background:#eef3f8;display:grid;place-items:center;overflow:hidden;color:#66788e;font-weight:800}.bechat-edit-photo-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px}.bechat-edit-photo-row small{color:#8b9aab;font-size:11px}.bechat-edit-photo-row>button{height:38px;padding:0 12px;border:1px solid #e4e9f0;border-radius:11px;background:#fff;color:#d94b1b;font-weight:650;display:flex;align-items:center;gap:7px;cursor:pointer}.bechat-edit-photo-row>button .bechat-svg-icon{width:15px;height:15px}
.begolinginfo-quick button>span .bechat-svg-icon{width:19px;height:19px}

@media(max-width:760px){
  .bechat-drawer-profile{padding:calc(18px + env(safe-area-inset-top)) 18px 16px}.bechat-drawer-avatar-wrap{width:64px;height:64px}.bechat-drawer-avatar{width:64px!important;height:64px!important;border-radius:21px!important}
  .begolingprofile-head{grid-template-columns:72px minmax(0,1fr)!important;padding:16px!important}.begolingprofile-avatar{width:72px!important;height:72px!important;border-radius:23px!important}.bechat-profile-photo-actions{grid-column:1/-1;flex-direction:row}.bechat-profile-photo-actions button{flex:1}
  .bechat-edit-photo-row{grid-template-columns:56px minmax(0,1fr)}.bechat-edit-photo-preview{width:56px;height:56px;border-radius:17px}.bechat-edit-photo-row>button{grid-column:1/-1;justify-content:center}
}
html[data-bechat-theme="dark"] .bechat-drawer-profile{background:linear-gradient(180deg,#17202d,#151d29);border-color:rgba(255,255,255,.06)}
html[data-bechat-theme="dark"] .bechat-drawer-menu button{color:#e7eef7}html[data-bechat-theme="dark"] .bechat-drawer-menu button:hover{background:#202b3a}
html[data-bechat-theme="dark"] .begolingprofile-head,html[data-bechat-theme="dark"] .bechat-edit-photo-row{background:#182230;border-color:rgba(255,255,255,.07)}
html[data-bechat-theme="dark"] .bechat-profile-photo-actions button,html[data-bechat-theme="dark"] .bechat-edit-photo-row>button{background:#202b3a;border-color:#2c394b;color:#e9eef5}


/* v3.2.4 chat frame stability + expression panel layout */
html,body.begoling-app-page,.begolingapp-root{height:100%}
body.begoling-app-page{min-height:100dvh;overflow:hidden}
#begolingApp.begoling-app{height:100dvh;min-height:100dvh;overflow:hidden;align-items:stretch}
#begolingApp .begolinglist-head,#begolingApp .begolingconversation-pane,#begolingApp .begolinginfo-panel,#begolingApp .begolinglist-empty{box-sizing:border-box}
.begoling-list,.begolingconversation-pane,.begolinginfo-panel{min-height:0;height:100dvh}
.begolingconversation-pane{display:flex!important;flex-direction:column;min-width:0;overflow:hidden;position:relative}
.begolingempty-chat{height:100%!important}
.begolingactive-chat{display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;height:100%;overflow:hidden}
.begolingactive-chat[hidden]{display:none!important}
.begolingmessages{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;padding-bottom:18px!important}
.begolingmessage-searchbar,.bechat-relationship-bar,.begolingpinned-banner,.begolingtyping,.begolingreply-bar,.begolingchannel-readonly,.begolingvoice-composer-panel,.bechat-attachment-tray,.bechat-attachment-queue,.begolingcomposer{flex:0 0 auto}
.begolingcomposer{position:relative!important;z-index:20;margin-top:auto!important}
.bechat-relationship-bar{flex-wrap:wrap!important;gap:10px!important}
.bechat-relationship-copy{flex:1 1 280px!important;min-width:0!important}
.bechat-relationship-actions{flex:0 0 auto;flex-wrap:wrap}
.begolingconvo-header,.begolingpinned-banner,.bechat-relationship-bar,.begolingmessage-searchbar{position:relative;z-index:5}
@media (min-width:1181px){
  #begolingApp.begolinginfo-hidden.bechat-expression-open .begolingactive-chat{padding-right:346px;box-sizing:border-box}
  #begolingApp.begolinginfo-hidden.bechat-expression-open .begolingmessages{padding-right:max(16px,calc((100% - 820px)/2) + 18px)!important}
}
@media (max-width:1180px){
  body.begoling-app-page{overflow:auto}
  #begolingApp.begoling-app{height:100dvh;min-height:100dvh}
}
@media (max-width:760px){
  body.begoling-app-page{overflow:hidden}
  .begolingmessages{padding-bottom:14px!important}
  .bechat-relationship-bar{padding:8px 10px!important}
}


/* v3.2.5 expression panel docking fix */
@media (min-width:1181px){
  #begolingApp.bechat-expression-open{grid-template-columns:74px 360px minmax(0,1fr) 346px!important}
  #begolingApp.bechat-expression-open .begolinginfo-panel{display:none!important}
  #begolingApp.bechat-expression-open .begolingemoji-picker.bechat-expression-panel:not([hidden]){
    position:relative!important;
    top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    width:100%!important;height:100dvh!important;min-height:0!important;
    box-shadow:none!important;border-left:1px solid var(--bc-line)!important;
  }
  #begolingApp.bechat-expression-open .begolingactive-chat{padding-right:0!important}
  #begolingApp.bechat-expression-open .begolingmessages{padding-right:max(16px,calc((100% - 820px)/2))!important}
  #begolingApp.bechat-expression-open .begolingcomposer,
  #begolingApp.bechat-expression-open .begolingreply-bar,
  #begolingApp.bechat-expression-open .begolingchannel-readonly,
  #begolingApp.bechat-expression-open .begolingvoice-composer-panel,
  #begolingApp.bechat-expression-open .bechat-attachment-tray,
  #begolingApp.bechat-expression-open .bechat-attachment-queue{width:min(840px,calc(100% - 24px))!important}
}


/* v3.2.6 commercial chat polish + relationship actions */
:root{--bechat-expression-width:320px;--bechat-surface:#ffffff;--bechat-muted-surface:#f8fafc;--bechat-chat-bg:#f7faef}
#begolingApp .begolingconversation-pane{background:var(--bechat-chat-bg)!important}
.begolingconvo-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;padding:16px 18px!important;background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--bc-line)!important;backdrop-filter:blur(16px)}
.begolingconvo-avatar{width:54px!important;height:54px!important;border-radius:18px!important;box-shadow:0 8px 22px rgba(15,23,42,.08)!important}
.begolingconvo-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important}
.begolingconvo-title b{font-size:17px!important;line-height:1.15!important}
.begolingconvo-title span{font-size:12px!important;color:#8a97aa!important}
.begolingconvo-actions{display:flex!important;align-items:center!important;gap:10px!important}
.begolingconvo-actions button{width:42px!important;height:42px!important;border-radius:14px!important;border:1px solid #e7edf4!important;background:#fff!important;color:#3a4a62!important;box-shadow:0 8px 18px rgba(15,23,42,.05)!important}
.begolingconvo-actions button:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(15,23,42,.08)!important}

.bechat-relationship-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;padding:12px 18px!important;background:linear-gradient(180deg,#fff8f4 0%,#fff 100%)!important;border-bottom:1px solid #f1e3da!important}
.bechat-relationship-copy{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.bechat-relationship-copy span{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:#ffefe7!important;color:#ef6b33!important;font-size:12px!important;font-weight:800!important}
.bechat-relationship-copy small{font-size:13px!important;color:#7d8da5!important;white-space:normal!important;line-height:1.4!important}
.bechat-relationship-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important}
.bechat-relationship-actions button,.bechat-relationship-info-actions button{min-height:40px!important;padding:0 15px!important;border-radius:13px!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important}
.bechat-relationship-actions button:first-child,.bechat-relationship-info-actions button:first-child{background:#ff6b3d!important;border-color:#ff6b3d!important;color:#fff!important}
.bechat-relationship-actions button.secondary,.bechat-relationship-info-actions button.secondary{background:#fff!important;border:1px solid #dfe7f1!important;color:#3b4c66!important}
.bechat-relationship-actions button.secondary.active,.bechat-relationship-info-actions button.active{background:#eef7ff!important;border-color:#badcff!important;color:#1874c9!important}
#begolingFriendSecondary{background:#fff!important;border:1px solid #dfe7f1!important;color:#3b4c66!important}

.begolingmessages{padding:18px 18px 14px!important;background:var(--bechat-chat-bg)!important}
.begolingmessages:after{content:'';display:block;height:6px}
.begolingreply-bar,.begolingchannel-readonly,.begolingvoice-composer-panel,.bechat-attachment-tray,.bechat-attachment-queue,.begolingcomposer{width:calc(100% - 24px)!important;max-width:none!important;margin-left:12px!important;margin-right:12px!important}
.begolingcomposer{margin-top:auto!important;margin-bottom:12px!important;border-radius:18px!important;min-height:58px!important;padding:6px 8px!important;box-shadow:0 10px 28px rgba(15,23,42,.07)!important}
.begolingcomposer textarea{min-height:44px!important;font-size:14px!important}

.begolingemoji-picker.bechat-expression-panel{width:var(--bechat-expression-width)!important;background:#fff!important}
.bechat-expression-head{padding:16px 18px!important;border-bottom:1px solid var(--bc-line)!important;background:#fff!important}
.bechat-expression-tabs{gap:10px!important}
.bechat-expression-tabs button{padding:0 2px 10px!important;font-weight:800!important;font-size:13px!important;color:#64748b!important;background:transparent!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important}
.bechat-expression-tabs button.active{color:#1c7ed6!important;border-bottom-color:#2f9bff!important}
.bechat-expression-search{padding:12px 16px!important;background:#fff!important;border-bottom:1px solid #eef2f6!important}
.bechat-expression-search input{height:46px!important;border-radius:14px!important;background:#f6f8fb!important}
.bechat-expression-body{padding:14px 14px 18px!important}
.bechat-expression-foot{padding:12px 16px!important;border-top:1px solid #eef2f6!important;background:#fff!important}

@media (min-width:1181px){
  #begolingApp.bechat-expression-open{grid-template-columns:74px 392px minmax(0,1fr) var(--bechat-expression-width)!important}
  #begolingApp.bechat-expression-open .begolingconversation-pane{min-width:0!important;overflow:hidden!important}
  #begolingApp.bechat-expression-open .begolingemoji-picker.bechat-expression-panel:not([hidden]){width:100%!important;height:100dvh!important}
  #begolingApp.bechat-expression-open .begolingmessages{padding-right:18px!important}
  #begolingApp.bechat-expression-open .begolingreply-bar,
  #begolingApp.bechat-expression-open .begolingchannel-readonly,
  #begolingApp.bechat-expression-open .begolingvoice-composer-panel,
  #begolingApp.bechat-expression-open .bechat-attachment-tray,
  #begolingApp.bechat-expression-open .bechat-attachment-queue,
  #begolingApp.bechat-expression-open .begolingcomposer{width:calc(100% - 24px)!important;max-width:none!important}
}
@media (max-width:1180px){
  .begolingreply-bar,.begolingchannel-readonly,.begolingvoice-composer-panel,.bechat-attachment-tray,.bechat-attachment-queue,.begolingcomposer{width:calc(100% - 16px)!important;margin-left:8px!important;margin-right:8px!important}
}
@media (max-width:760px){
  .begolingconvo-header{padding:12px 12px!important;gap:10px!important}
  .begolingconvo-avatar{width:46px!important;height:46px!important;border-radius:15px!important}
  .bechat-relationship-bar{grid-template-columns:1fr!important;padding:10px 12px!important}
  .bechat-relationship-actions{justify-content:flex-start!important;width:100%!important}
  .bechat-relationship-actions button,.bechat-relationship-info-actions button{flex:1 1 auto!important;min-width:0!important}
}


/* v3.2.7 compact expressions popup - remove permanent right column */
@media (min-width:1181px){
  #begolingApp.bechat-expression-open,
  #begolingApp.begolinginfo-hidden.bechat-expression-open{
    grid-template-columns:74px 392px minmax(0,1fr)!important;
  }
  #begolingApp.bechat-expression-open .begolinginfo-panel{display:none!important}
  #begolingApp.bechat-expression-open .begolingconversation-pane{min-width:0!important;overflow:hidden!important}
  #begolingApp.bechat-expression-open .begolingactive-chat{padding-right:0!important}
  #begolingApp.bechat-expression-open .begolingmessages{padding-right:18px!important}
  #begolingApp .begolingemoji-picker.bechat-expression-panel:not([hidden]){
    position:absolute!important;
    z-index:260!important;
    top:auto!important;
    right:6px!important;
    bottom:64px!important;
    left:auto!important;
    width:330px!important;
    height:430px!important;
    min-height:0!important;
    border:1px solid #e4e9ef!important;
    border-radius:18px!important;
    box-shadow:0 22px 54px rgba(15,23,42,.18)!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  #begolingApp.bechat-expression-open .begolingreply-bar,
  #begolingApp.bechat-expression-open .begolingchannel-readonly,
  #begolingApp.bechat-expression-open .begolingvoice-composer-panel,
  #begolingApp.bechat-expression-open .bechat-attachment-tray,
  #begolingApp.bechat-expression-open .bechat-attachment-queue,
  #begolingApp.bechat-expression-open .begolingcomposer{
    width:calc(100% - 24px)!important;
    max-width:none!important;
  }
}


/* BECHAT v3.3.0 — complete interaction polish. */
.bechat-connection-banner{position:absolute;z-index:80;top:76px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:calc(100% - 24px);padding:8px 10px 8px 12px;border:1px solid #fed7aa;border-radius:999px;background:rgba(255,247,237,.96);color:#9a3412;box-shadow:0 10px 30px rgba(124,45,18,.12);font-size:11px;backdrop-filter:blur(12px)}
.bechat-connection-banner[hidden]{display:none!important}.bechat-connection-dot{width:8px;height:8px;border-radius:50%;background:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.13)}.bechat-connection-banner button{border:0;border-radius:999px;background:#fff;color:#c2410c;font-weight:800;padding:6px 10px;cursor:pointer}.bechat-offline .begolingsync-line>i{background:#f97316!important}
.bechat-jump-latest{position:absolute;z-index:45;right:18px;bottom:82px;display:flex;align-items:center;gap:6px;min-height:38px;padding:0 11px;border:1px solid #e2e8f0;border-radius:999px;background:rgba(255,255,255,.96);color:#334155;box-shadow:0 10px 26px rgba(15,23,42,.14);font-size:11px;font-weight:800;cursor:pointer;backdrop-filter:blur(10px)}.bechat-jump-latest[hidden]{display:none!important}.bechat-jump-latest>span{font-size:16px;color:#1d8dd7}.bechat-jump-latest>i{min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:#ff6b35;color:#fff;font-size:9px;font-style:normal}
.bechat-date-separator{position:sticky;top:8px;z-index:4;align-self:center;margin:9px auto 7px;padding:5px 10px;border-radius:999px;background:rgba(61,78,70,.74);color:#fff;font-size:9px;font-weight:800;letter-spacing:.01em;box-shadow:0 3px 10px rgba(15,23,42,.08);pointer-events:none;backdrop-filter:blur(8px)}
.begolingconv-preview.has-draft{color:#d95522!important;font-weight:700!important}.begolingconv-preview.has-draft::first-letter{color:#d95522}
.bechat-composer-status{position:absolute;right:104px;bottom:100%;margin-bottom:5px;padding:4px 7px;border-radius:8px;background:#172033;color:#fff;font-size:9px;font-weight:700;box-shadow:0 6px 18px rgba(15,23,42,.15)}.begolingcomposer.is-sending{opacity:.86}.begolingcomposer.is-sending .begolingsend{cursor:wait}.begolingcomposer .begolingsend:disabled{opacity:.55;transform:none!important}
.bechat-drop-zone{position:absolute;z-index:70;inset:76px 16px 78px;display:grid;place-items:center;border:2px dashed #4aa5e8;border-radius:24px;background:rgba(239,248,255,.94);pointer-events:none;backdrop-filter:blur(8px)}.bechat-drop-zone[hidden]{display:none!important}.bechat-drop-zone>div{display:flex;flex-direction:column;align-items:center;gap:7px;padding:24px;text-align:center;color:#285d86}.bechat-drop-zone span{width:50px;height:50px;border-radius:17px;display:grid;place-items:center;background:#fff;color:#208bd6;font-size:28px;box-shadow:0 10px 26px rgba(32,139,214,.14)}.bechat-drop-zone b{font-size:16px}.bechat-drop-zone small{color:#71859a}
.begolingmessages.dragging{overflow:hidden!important}.begolingmessage.highlight{animation:bechat-message-highlight 1.5s ease}@keyframes bechat-message-highlight{0%,35%{box-shadow:0 0 0 4px rgba(50,150,230,.25),0 1px 2px rgba(15,23,42,.12)}100%{box-shadow:0 1px 2px rgba(15,23,42,.12)}}
.begolingconversation-item:focus-visible,.begolingrail-btn:focus-visible,.begolingconvo-actions button:focus-visible,.begolingcomposer button:focus-visible,.bechat-jump-latest:focus-visible{outline:3px solid rgba(50,150,230,.28)!important;outline-offset:2px!important}
html[data-bechat-theme="dark"] .bechat-connection-banner{background:rgba(67,35,20,.96);border-color:#7c3f20;color:#fed7aa}html[data-bechat-theme="dark"] .bechat-connection-banner button{background:#202b3a;color:#fed7aa}html[data-bechat-theme="dark"] .bechat-jump-latest{background:rgba(24,34,48,.96);border-color:#334155;color:#e5edf6}html[data-bechat-theme="dark"] .bechat-date-separator{background:rgba(15,23,42,.78)}html[data-bechat-theme="dark"] .bechat-drop-zone{background:rgba(18,39,55,.94);border-color:#3d95d3;color:#d7efff}
@media(max-width:760px){.bechat-connection-banner{top:64px;max-width:calc(100% - 16px);white-space:nowrap}.bechat-jump-latest{right:10px;bottom:70px}.bechat-jump-latest b{display:none}.bechat-drop-zone{inset:66px 8px 68px;border-radius:18px}.bechat-date-separator{top:6px}.bechat-composer-status{right:90px}}


/* v3.3.0 shared-content panel */
.bechat-shared-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:8px 0 10px;padding:4px;border-radius:12px;background:#f3f6f9}.bechat-shared-tabs button{min-height:32px;border:0;border-radius:9px;background:transparent;color:#738196;font-size:10px;font-weight:800;cursor:pointer}.bechat-shared-tabs button.active{background:#fff;color:#1e88cf;box-shadow:0 2px 8px rgba(15,23,42,.07)}.bechat-shared-list{display:grid;gap:7px}.bechat-shared-empty{padding:16px 8px;text-align:center;color:#95a1b0;font-size:10px}.bechat-shared-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.bechat-shared-media-item{position:relative;aspect-ratio:1;border:0;border-radius:10px;background:#edf2f6;overflow:hidden;padding:0;cursor:pointer;color:#53657b}.bechat-shared-media-item img{width:100%;height:100%;object-fit:cover;display:block}.bechat-shared-video-icon{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;background:linear-gradient(145deg,#dce8f1,#eef4f8)}.bechat-shared-media-item small{position:absolute;left:5px;right:5px;bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;z-index:2}.bechat-shared-file,.bechat-shared-link{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:52px;padding:7px;border-radius:11px;color:#26364a;text-decoration:none}.bechat-shared-file:hover,.bechat-shared-link:hover{background:#f5f8fb}.bechat-shared-file>span,.bechat-shared-link>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef7ff;color:#238bcf;font-size:14px}.bechat-shared-file div,.bechat-shared-link div{min-width:0}.bechat-shared-file b,.bechat-shared-link b,.bechat-shared-file small,.bechat-shared-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bechat-shared-file b,.bechat-shared-link b{font-size:10px}.bechat-shared-file small,.bechat-shared-link small{margin-top:3px;color:#8a97a8;font-size:8px}.bechat-shared-file>i{font-style:normal;color:#7b8ca0}.bechat-shared-link{grid-template-columns:34px minmax(0,1fr)}
html[data-bechat-theme="dark"] .bechat-shared-tabs{background:#172130}html[data-bechat-theme="dark"] .bechat-shared-tabs button.active{background:#263446;color:#61baf1}html[data-bechat-theme="dark"] .bechat-shared-file,html[data-bechat-theme="dark"] .bechat-shared-link{color:#e7eef7}html[data-bechat-theme="dark"] .bechat-shared-file:hover,html[data-bechat-theme="dark"] .bechat-shared-link:hover{background:#1c2938}
/* v3.3.0: explicit drop-zone replaces legacy pseudo drop hints. */
.begolingmessages.dragging::after{display:none!important;content:none!important}

/* v3.4.0 News entry */
.begolingrail-link{text-decoration:none!important;appearance:none}.begolingrail-link:visited{color:inherit}.begolingrail-link:hover{color:inherit}


/* BECHAT v3.4.1 — Expressions popup fix.
 * Keep Emoji / Stickers / GIFs out of the permanent right column and never cover the composer send action.
 */
#begolingApp .begolingemoji-picker.bechat-expression-panel[hidden]{display:none!important}
#begolingApp .begolingemoji-picker.bechat-expression-panel:not([hidden]){
  position:absolute!important;
  z-index:320!important;
  top:auto!important;
  right:4px!important;
  bottom:calc(100% + 10px)!important;
  left:auto!important;
  width:min(360px,calc(100vw - 32px))!important;
  height:min(430px,calc(100dvh - 150px))!important;
  min-height:280px!important;
  max-height:430px!important;
  padding:0!important;
  border:1px solid #e3e8ee!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 22px 58px rgba(15,23,42,.20)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#begolingApp.bechat-expression-open,
#begolingApp.begolinginfo-hidden.bechat-expression-open{
  grid-template-columns:74px 392px minmax(0,1fr)!important;
}
#begolingApp.bechat-expression-open .begolinginfo-panel{display:block!important}
#begolingApp.bechat-expression-open .begolingactive-chat{padding-right:0!important}
#begolingApp.bechat-expression-open .begolingmessages{padding-right:max(16px,calc((100% - 820px)/2))!important}
#begolingApp.bechat-expression-open .begolingcomposer,
#begolingApp.bechat-expression-open .begolingreply-bar,
#begolingApp.bechat-expression-open .begolingchannel-readonly,
#begolingApp.bechat-expression-open .begolingvoice-composer-panel,
#begolingApp.bechat-expression-open .bechat-attachment-tray,
#begolingApp.bechat-expression-open .bechat-attachment-queue{width:calc(100% - 24px)!important;max-width:none!important}

/* Keep the whole composer row usable while Expressions is open. */
.begolingcomposer{overflow:visible!important}
.begolingcomposer textarea{min-width:0!important}
.begolingcomposer .begolingsend{position:relative!important;z-index:2!important;flex:0 0 40px!important}

@media (max-width:760px){
  #begolingApp .begolingemoji-picker.bechat-expression-panel:not([hidden]){
    position:fixed!important;
    z-index:520!important;
    top:auto!important;
    right:8px!important;
    bottom:calc(62px + env(safe-area-inset-bottom))!important;
    left:8px!important;
    width:auto!important;
    height:min(52dvh,430px)!important;
    min-height:260px!important;
    max-height:430px!important;
    border:1px solid #e3e8ee!important;
    border-radius:18px!important;
    box-shadow:0 20px 58px rgba(15,23,42,.22)!important;
    padding-bottom:0!important;
  }
}
html[data-bechat-theme="dark"] #begolingApp .begolingemoji-picker.bechat-expression-panel:not([hidden]){
  background:#111a27!important;
  border-color:#2b3949!important;
}
