.im-nav svg,.im-center svg{width:20px;height:20px;flex:none}
.sidebar-bottom a.im-nav{display:flex;align-items:center;gap:9px}.sidebar-bottom a.im-nav.selected{background:#1238bc;color:white;border-radius:9px}
body:has(.im-center) .workspace{background-color:#faf9f5;background-image:radial-gradient(#d8d8d3 1px,transparent 1px);background-size:16px 16px}
.content:has(.im-center){max-width:none;width:100%;padding:clamp(14px,2vw,34px);box-sizing:border-box}
.content:has(.im-center) .footer-note,.content:has(.im-center) .mobile-tools{display:none}
.im-center{--im-blue:#1137bd;display:grid;grid-template-columns:minmax(215px,26%) minmax(0,1fr);gap:clamp(12px,1.7vw,26px);height:calc(100dvh - 132px);min-height:480px;color:#172039;font-family:Inter,"Microsoft YaHei",sans-serif}
.im-center button,.im-picker button,.im-shortcut{cursor:pointer;font-family:inherit}
.im-list,.im-conversation{background:white;border:1px solid #dce0e5;border-radius:17px;box-shadow:0 5px 18px #141f3e0b;min-width:0;min-height:0}
.im-list{position:relative;display:flex;flex-direction:column;padding:20px 15px;gap:15px}.im-list header,.im-head,.im-head aside,.im-tools,.im-msg,.im-search,.im-row,.im-menu button,.im-picker .im-people label{display:flex;align-items:center}
.im-list header,.im-head{justify-content:space-between}.im-list h1,.im-head h2{margin:0;color:#151923;font-size:clamp(18px,1.6vw,25px);line-height:1.35}
.im-center button,.im-picker button{background:transparent;border:0;color:inherit}
.im-center .im-new,.im-send,.im-center .im-send{border:0;background:#1238bd;color:white;font-weight:650}.im-center .im-new,.im-add{width:36px;height:36px;border-radius:50%;font-size:22px}
.im-search{gap:8px;background:#f3f4f7;border-radius:9px;padding:0 10px;color:#606a79}.im-search input,.im-tools textarea{border:0!important;background:transparent!important;min-width:0;width:100%;padding:10px 0;box-shadow:none!important;font:inherit;color:#1b2641}
.im-rows{overflow:auto;min-height:0;flex:1}.im-rows h3{margin:17px 4px 7px;color:#667183;font-size:12px;letter-spacing:.04em}.im-rows h3:first-child{margin-top:4px}
.im-row{width:100%;gap:10px;padding:10px;text-align:left;border-radius:10px}.im-row.chosen,.im-row:hover{background:#f1f3fa}.im-row span:has(>b){min-width:0;flex:1}.im-row b,.im-row small{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.im-row small,.im-head p,.im-head small,.im-msg small,.im-notes time{color:#687184}.im-row small,.im-head small{font-size:12px}.im-glyph{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#e8edff;color:var(--im-blue);font:700 22px sans-serif}
.im-row .im-badge{background:#173abd;color:white;padding:2px 6px;border-radius:14px;margin-left:auto;font:600 11px sans-serif}.im-empty-link,.im-link,.im-shortcut{border:0;background:transparent;color:#2344ba!important;font-size:13px;padding:5px 8px}
.im-conversation{display:flex;flex-direction:column;position:relative;padding:0 clamp(14px,2vw,30px) 16px}.im-head{min-height:88px;gap:12px;border-bottom:1px solid #e3e7ee}.im-head p{font-size:13px;margin:5px 0 0}.im-head aside{gap:8px}.im-head .im-add,.im-head .im-back{border:1px solid #d9dfe9}.im-menu,.im-tray{z-index:3;background:#fff;box-shadow:0 7px 25px #18284d29;border:1px solid #dde3ef;border-radius:12px;padding:8px;position:absolute}
.im-menu{top:58px;right:14px}.im-menu button{width:100%;padding:10px 18px;border-radius:6px}.im-menu button:hover,.im-tray button:hover{background:#eef2ff}
.im-stream,.im-notes{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}.im-stream{padding:18px 0}.im-msg{align-items:flex-start;gap:9px;margin-bottom:18px}.im-msg>div{max-width:min(82%,570px);min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.im-msg small{font-size:12px}.im-msg small time,.im-notes time{font-size:11px;margin-left:8px;color:#737e91}.im-msg p{margin:0;border-radius:3px 12px 12px;background:#f2f3f7;padding:10px 14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.im-msg.mine{flex-direction:row-reverse}.im-msg.mine>div{align-items:flex-end}.im-msg.mine p{background:var(--im-blue);color:white;border-radius:12px 3px 12px 12px}
.im-msg .market-sticker,.im-msg .market-sticker img{width:clamp(108px,13vw,172px);height:auto;padding:0;border:0;background:transparent;box-shadow:none;object-fit:contain}
.im-photo{max-height:190px;max-width:100%;border-radius:8px}.im-empty{color:#717c91;text-align:center;margin:30px 0;font-size:14px}
.im-faces{display:inline-flex;align-items:center;flex:none;padding-left:4px}.im-faces .avatar{width:25px;height:25px;border:2px solid white;margin-left:-5px;font-size:10px}.im-person{position:relative}.im-person i{position:absolute;right:0;bottom:0;width:8px;height:8px;border-radius:50%;background:#aab1be;border:1px solid white}.im-person i.online{background:#219b72}.im-msg>.avatar,.im-person .avatar{width:34px;height:34px;flex:none}
.im-compose{position:relative;margin-top:4px;border:1px solid #d6dce8;border-radius:14px;box-shadow:0 4px 16px #1d2f5110;padding:9px 10px}.im-selection:empty{display:none}.im-selection{font-size:13px;padding:4px;color:#2645ab}.im-selection img{width:45px;height:auto}.im-tools{gap:5px}.im-tools>button:not(.im-send),.im-image{display:grid;place-items:center;width:32px;height:34px;color:#57637c;font-size:20px;flex:none}.im-tools textarea{resize:none;border-left:1px solid #d9deeb!important;padding:5px 10px!important;font-size:14px;line-height:1.5;border-radius:0;min-height:30px}.im-send{border-radius:8px;padding:9px 17px;white-space:nowrap}.im-send:disabled{opacity:.55}.im-image{cursor:pointer;position:relative}.im-image input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.im-tray{bottom:calc(100% + 6px);left:0;right:0;display:flex;flex-wrap:wrap;max-height:min(42vh,275px);overflow:auto;gap:4px}.im-tray button{display:flex;align-items:center;gap:6px;border-radius:8px;padding:5px}.im-tray .market-sticker img{width:68px;height:auto}.im-center [hidden],.im-picker [hidden]{display:none!important}
.im-filters{display:flex;flex-wrap:wrap;gap:6px;padding:15px 0}.im-filters button{padding:6px 12px;border-radius:20px;background:#f2f4f8;font-size:13px}.im-filters button.on{background:#1238bd;color:white}
.im-notes article{position:relative;border-bottom:1px solid #e6e8ee;padding:14px 5px 14px 15px}.im-notes article.fresh:before{content:'';position:absolute;left:0;top:21px;width:6px;height:6px;border-radius:50%;background:#2447c9}.im-notes p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.im-picker{display:grid;gap:14px}.im-picker>label{display:grid;gap:6px;font-size:14px}.im-people{max-height:34vh;overflow:auto}.im-picker .im-people label{gap:9px;padding:8px 5px}.im-picker .im-people input{width:16px;height:16px;accent-color:#1238bd}.im-picker .im-send{justify-self:end}
.im-center .im-back{display:none}.im-center :focus-visible,.im-picker :focus-visible{outline:2px solid #264bd3;outline-offset:2px}
@media(max-width:760px){.im-center{grid-template-columns:1fr;height:calc(100dvh - 132px);min-height:330px}.im-list{display:none}.list-open .im-list{display:flex}.list-open .im-conversation{display:none}.im-center .im-back{display:block;border-radius:50%;width:32px;height:32px;font-size:20px}.im-head{min-height:65px}.im-head>div{flex:1}.im-head aside .im-faces{display:none}.im-head small{font-size:10px}.im-head p{font-size:11px}.im-head h2{font-size:17px}.im-conversation{padding:0 10px 10px}.im-tools{gap:1px}.im-tools>button:not(.im-send),.im-image{width:25px}.im-send{padding:8px 10px}.im-list{padding:15px}.im-compose{padding:6px}.im-tools textarea{font-size:13px}}

.im-sticker-grid{display:flex;flex-wrap:wrap;gap:4px;width:100%}
.im-sticker-tabs{position:sticky;top:-8px;display:flex;gap:4px;align-items:center;flex-wrap:wrap;width:100%;padding:5px 0 8px;background:white;border-bottom:1px solid #e3e7ef;z-index:1}
.im-sticker-tabs button{padding:5px 10px;border-radius:18px;font-size:13px}
.im-sticker-tabs button[aria-pressed="true"]{background:#1238bd;color:white}

.im-sticker-grid .mascot-option img{width:68px;height:68px;object-fit:contain}

.im-tools > button[data-im="stickers"]:is(:hover, :focus-visible) {
  color: #1738be;
  background: #e8edff;
  border-radius: 8px;
}
.im-tools > button[data-im="stickers"]:focus-visible {
  outline: 2px solid #1738be;
  outline-offset: 2px;
}
