
/* Messenger V2 */
.nav-chat-mention{margin-left:5px;font-weight:900;color:#ff4b66}.ms-page{max-width:1500px;margin:0 auto}.ms-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.ms-head h1{margin:2px 0 3px;font-size:34px}.ms-head p{margin:0;color:#7b8190}.ms-kicker{font-size:12px;font-weight:900;letter-spacing:.12em;color:#7b62db}.ms-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid #d9dce5}.ms-btn.primary{background:#202531;color:white;border-color:#202531}.ms-btn.ghost{background:white;color:#252a36}.ms-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.ms-tab{padding:9px 13px;border:1px solid #e1e3ea;border-radius:999px;text-decoration:none;color:#555c69;font-weight:750;background:#fff}.ms-tab span{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;margin-left:5px;border-radius:999px;background:#f0f1f5;font-size:12px}.ms-tab.active{background:#252a36;color:white;border-color:#252a36}.ms-tab.active span{background:rgba(255,255,255,.16)}.ms-shell{display:grid;grid-template-columns:360px minmax(0,1fr);min-height:650px;border:1px solid #e0e2ea;border-radius:18px;overflow:hidden;background:#fff}.ms-list{border-right:1px solid #e5e7ed;background:#fafbfc;overflow:auto}.ms-thread{display:block;margin:10px;padding:12px 13px 11px;border:1px solid #e1e4ea;border-left:4px solid #c7cbd5;border-radius:13px;background:#fff;text-decoration:none;color:#252936;transition:.12s}.ms-thread:hover{transform:translateY(-1px);box-shadow:0 5px 18px rgba(31,37,50,.06)}.ms-thread.active{box-shadow:0 0 0 2px rgba(72,77,90,.08)}.ms-thread.type-personal{border-left-color:#f39a35}.ms-thread.type-product{border-left-color:#7359d9}.ms-thread.type-task{border-left-color:#ee6ea6}.ms-thread.unread .ms-thread-title{font-weight:900}.ms-thread-line{display:flex;align-items:center;gap:7px;min-height:24px}.ms-type-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:7px;font-size:10px;font-weight:900;letter-spacing:.06em;background:#f0f1f4;color:#5b616e}.type-personal .ms-type-badge,.ms-chat-head.type-personal .ms-type-badge{background:#fff1df;color:#b96b17}.type-product .ms-type-badge,.ms-chat-head.type-product .ms-type-badge{background:#eee9ff;color:#6246c3}.type-task .ms-type-badge,.ms-chat-head.type-task .ms-type-badge{background:#ffe7f1;color:#c74d83}.ms-at{font-weight:950;color:#ed3558}.ms-unread-dot{width:8px;height:8px;border-radius:50%;background:#e33c50;margin-left:auto}.ms-thread-title{display:block;margin-top:7px;font-size:14px}.ms-thread-sub,.ms-thread-preview,.ms-thread time{display:block;color:#858b97;font-size:12px;margin-top:4px}.ms-thread-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ms-main{display:flex;flex-direction:column;min-width:0}.ms-chat-head{min-height:84px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8eaf0;border-top:4px solid #c7cbd5}.ms-chat-head.type-personal{border-top-color:#f39a35}.ms-chat-head.type-product{border-top-color:#7359d9}.ms-chat-head.type-task{border-top-color:#ee6ea6}.ms-chat-head h2{font-size:20px;margin:5px 0 0}.ms-sub{font-size:12px;color:#858b97;margin-top:3px}.ms-messages{flex:1;min-height:450px;max-height:650px;overflow:auto;padding:20px;background:#f7f8fb}.ms-message{max-width:78%;margin:0 0 16px}.ms-message.mine{margin-left:auto}.ms-meta{display:flex;gap:7px;align-items:center;font-size:11px;color:#8b909a;margin:0 6px 5px}.ms-message.mine .ms-meta{justify-content:flex-end}.ms-bubble{padding:11px 13px;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid #e0e3ea;white-space:pre-wrap;overflow-wrap:anywhere}.ms-message.mine .ms-bubble{background:#ece8ff;border-color:#dbd3ff;border-radius:14px 14px 4px 14px}.ms-quote{border-left:3px solid #9ca3b0;background:#eef0f5;border-radius:8px;padding:7px 9px;margin:0 0 5px;font-size:11px}.ms-quote b,.ms-quote span{display:block}.ms-forward-label{font-size:10px;font-weight:800;color:#8b909a;margin:0 5px 4px}.ms-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,240px));gap:7px;margin-top:6px}.ms-attachments img,.ms-attachments video{width:100%;max-height:280px;object-fit:cover;border-radius:12px;border:1px solid #dde0e8;background:#111}.ms-message-actions{display:flex;gap:8px;align-items:center;margin-top:5px;font-size:11px}.ms-mini,.ms-react summary,.ms-forward summary{border:0;background:none;color:#737a88;cursor:pointer;padding:2px 0;font-size:11px}.ms-react,.ms-forward{position:relative}.ms-react>div,.ms-forward>form{position:absolute;z-index:20;bottom:22px;background:#fff;border:1px solid #dfe2e9;border-radius:10px;padding:7px;box-shadow:0 8px 28px rgba(20,25,35,.15);display:flex;gap:4px}.ms-react form{display:inline}.ms-react button{border:0;background:#f4f5f8;border-radius:7px;padding:5px;cursor:pointer}.ms-forward>form{right:0;min-width:260px}.ms-forward select{max-width:210px}.ms-read{margin-left:auto;font-weight:900;color:#6a75d8;cursor:help}.ms-reaction-row{display:flex;gap:5px;margin-top:5px}.ms-reaction-row span{font-size:11px;padding:3px 7px;background:#fff;border:1px solid #dfe2e9;border-radius:999px}.ms-compose{padding:12px 14px;border-top:1px solid #e4e6ed;background:#fff;position:relative}.ms-compose-row{display:flex;gap:8px;align-items:flex-end}.ms-compose textarea{flex:1;resize:none;min-height:46px;max-height:120px;border:1px solid #d8dbe3;border-radius:12px;padding:11px 12px;font:inherit}.ms-attach,.ms-emoji-toggle,.ms-send{min-width:44px;height:44px;border-radius:12px;border:1px solid #d8dbe3;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-weight:900}.ms-send{padding:0 15px;background:#252a36;color:#fff;border-color:#252a36}.ms-emoji-panel{position:absolute;bottom:72px;left:54px;width:260px;padding:9px;background:#fff;border:1px solid #dfe2e9;border-radius:12px;box-shadow:0 10px 34px rgba(20,25,35,.15);z-index:25}.ms-emoji-panel button{border:0;background:none;font-size:20px;padding:5px;cursor:pointer}.ms-mention-box{position:absolute;bottom:72px;left:108px;width:320px;max-height:230px;overflow:auto;background:#fff;border:1px solid #dfe2e9;border-radius:12px;box-shadow:0 10px 34px rgba(20,25,35,.15);z-index:25}.ms-mention-box button{display:flex;justify-content:space-between;width:100%;border:0;border-bottom:1px solid #f0f1f4;background:#fff;padding:9px 11px;cursor:pointer}.ms-mention-box span{color:#8a909c}.ms-reply-preview{display:flex;justify-content:space-between;align-items:center;background:#f0f1f5;border-radius:9px;padding:7px 10px;margin-bottom:8px;font-size:12px}.ms-reply-preview button{border:0;background:none;font-size:18px}.ms-select-empty,.ms-list-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#8c929e;min-height:300px}.ms-new-page{max-width:900px}.ms-new-card{background:#fff;border:1px solid #e0e2e9;border-radius:16px;padding:20px;display:grid;gap:9px}.ms-new-card select{height:46px;border:1px solid #d7dae2;border-radius:11px;padding:0 11px;font:inherit}@media(max-width:900px){.ms-shell{grid-template-columns:1fr}.ms-list{max-height:300px;border-right:0;border-bottom:1px solid #e5e7ed}.ms-message{max-width:92%}.ms-head{align-items:flex-start;flex-direction:column}}

/* Messenger V2.1 fixes */
.ms-reply-preview[hidden],.ms-emoji-panel[hidden],.ms-mention-box[hidden]{display:none!important}


/* Messenger V2.2 composer */
.ms-compose{padding:14px 16px!important;overflow:visible}
.ms-compose-row{display:grid!important;grid-template-columns:48px 48px minmax(0,1fr) auto;gap:10px!important;align-items:end!important;width:100%;box-sizing:border-box}
.ms-compose textarea{width:100%;min-width:0;box-sizing:border-box;min-height:48px!important;height:48px;max-height:120px;padding:12px 14px!important;line-height:22px}
.ms-attach,.ms-emoji-toggle{width:48px!important;min-width:48px!important;height:48px!important;padding:0!important;box-sizing:border-box}
.ms-send{width:auto!important;min-width:112px!important;height:48px!important;padding:0 18px!important;white-space:nowrap;box-sizing:border-box}
.ms-emoji-panel{bottom:74px!important;left:74px!important;width:390px!important;max-width:calc(100vw - 390px);max-height:310px;overflow:auto;padding:12px!important;display:grid;grid-template-columns:repeat(8,1fr);gap:3px}
.ms-emoji-panel[hidden]{display:none!important}
.ms-emoji-panel button{font-size:22px!important;line-height:1;width:40px;height:40px;padding:0!important;border-radius:8px}
.ms-emoji-panel button:hover{background:#f1f2f6}
@media(max-width:900px){.ms-compose-row{grid-template-columns:44px 44px minmax(0,1fr)}.ms-send{grid-column:1/-1;width:100%!important}.ms-emoji-panel{left:14px!important;max-width:calc(100vw - 60px);grid-template-columns:repeat(6,1fr)}}


/* Messenger V2.3 composer exact alignment */
.ms-compose{padding:14px 16px!important;overflow:visible}
.ms-compose-row{
  display:grid!important;
  grid-template-columns:48px 48px minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.ms-compose-row>*{align-self:center!important;margin-top:0!important;margin-bottom:0!important}
.ms-attach,.ms-emoji-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:48px!important;
  min-width:48px!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  line-height:1!important;
  vertical-align:middle!important;
}
.ms-compose textarea{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:12px 14px!important;
  box-sizing:border-box!important;
  line-height:22px!important;
  resize:none!important;
  vertical-align:middle!important;
}
.ms-send{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:112px!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  padding:0 18px!important;
  margin:0!important;
  box-sizing:border-box!important;
  line-height:1!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
@media(max-width:900px){
  .ms-compose-row{grid-template-columns:44px 44px minmax(0,1fr)!important;align-items:center!important}
  .ms-attach,.ms-emoji-toggle{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important}
  .ms-compose textarea{height:44px!important;min-height:44px!important;max-height:44px!important;padding:10px 12px!important}
  .ms-send{grid-column:1/-1;width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important}
}
