/* t392u-A3 «مراسلاتي» — console patterns (.seg, .scs-kb/.scs-col/.scs-card, .st-grp/.st-row, chip row + bottom sheet) on portal tokens. RTL, ≥44px targets, no horizontal page scroll. */
.cmsg-main{max-width:1000px;margin:0 auto;padding:16px;overflow-x:hidden}
.cmsg .field{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}.cmsg .input{min-height:44px}.cmsg .mini,.cmsg .btn{min-height:44px;min-width:44px}
.cmsg .seg{display:flex;gap:4px;padding:3px;border-radius:999px;background:rgba(255,255,255,.06);margin:14px 0 10px;max-width:260px}
.cmsg .seg button{flex:1;min-height:44px;border-radius:999px}.cmsg .seg button.on{background:rgba(255,255,255,.14)}
.cmsg .scs-kb{display:grid;grid-auto-flow:column;grid-auto-columns:86%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory}
@media (min-width:760px){.cmsg .scs-kb{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}}
.cmsg .scs-col{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:16px;background:rgba(255,255,255,.05);min-width:0}.cmsg .scs-col>header{display:flex;justify-content:space-between}
.cmsg-card{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:12px;background:rgba(255,255,255,.07);cursor:pointer;overflow-wrap:anywhere;min-height:44px}
.cmsg .badge{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:#2878e6;color:#fff;font-size:12px;padding:0 6px}
.cmsg-card .badge{position:absolute;inset-inline-end:10px;top:10px}
.cmsg .st-row{display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:6px 10px;cursor:pointer}
.cmsg .chips{display:flex;flex-wrap:wrap;gap:6px}.cmsg .chip{padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.1)}
.cmsg .sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:flex-end;z-index:20}.cmsg .sheet-bg[hidden]{display:none}
.cmsg .sheet{width:100%;max-height:70vh;overflow:auto;padding:16px;border-radius:16px 16px 0 0;background:#14151c;display:flex;flex-direction:column;gap:10px}
.cmsg .check{display:flex;align-items:center;gap:10px;min-height:44px}
.cmsg-th{display:flex;align-items:center;gap:10px}.cmsg-msgs{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px;max-height:60vh;overflow-y:auto}
.cmsg-msgs .m{padding:8px 12px;border-radius:12px;background:rgba(255,255,255,.06);max-width:85%;overflow-wrap:anywhere}.cmsg-msgs .m.me{align-self:flex-end;background:rgba(40,120,230,.25)}
.cmsg-send{display:flex;gap:8px;align-items:center}.cmsg-send .input{flex:1;min-width:0}
