/* SEGREDUS Messenger Premium v1 - Scoped strictly to desktop chat page */
.sgmsg-page{max-width:1380px;margin:26px auto 65px;padding:0 20px}
.sgmsg-page .sectionhead{margin:0 0 24px}
.sgmsg-page .sectionhead h1{font-size:clamp(30px,4vw,47px);letter-spacing:-1.3px}
.sgmsg-layout{display:grid!important;grid-template-columns:minmax(310px,0.85fr) minmax(0,1.55fr)!important;gap:20px!important;align-items:stretch}
.sgmsg-layout>.panel{background:linear-gradient(135deg,#24192d,#1c1423)!important;border:1px solid #513450!important;border-radius:24px!important;box-shadow:0 18px 48px rgba(0,0,0,.13);min-width:0}
.sgmsg-layout>.panel>h2{margin:0 0 18px;font-size:20px;color:#fff}
.sgmsg-conversations{padding:24px!important;min-height:490px}
.sgmsg-conversations .sgmsg-contact{display:grid!important;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 12px;margin:0 -10px;border-bottom:1px solid #473148;border-radius:14px;color:#fff;text-decoration:none;transition:background .15s,border-color .15s;min-height:88px}
.sgmsg-conversations .sgmsg-contact:hover,.sgmsg-conversations .sgmsg-contact.sgmsg-active{background:#3b2540;border-color:#6a3e61}
.sgmsg-photo{width:55px;height:55px;border-radius:50%;background:linear-gradient(145deg,#d92790,#592f70);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;color:#fff;font-size:23px;font-weight:800}
.sgmsg-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.sgmsg-info{display:flex;min-width:0;flex-direction:column;gap:3px;overflow:hidden}
.sgmsg-info strong{color:#f4e8f5;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgmsg-info small{display:block;font-size:12px;color:#c9b3c8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgmsg-info .sgmsg-excerpt{font-size:13px;color:#bba9c2}
.sgmsg-date{align-self:start;padding-top:5px;font-size:11px;color:#b7a4b7;white-space:nowrap}
.sgmsg-chat-panel{padding:24px!important;min-height:490px}
.sgmsg-page .seg-chat-peer{padding:12px 0 20px;border-bottom:1px solid #4c344e}
.sgmsg-page .seg-chat-peer-avatar{width:64px!important;height:64px!important;min-width:64px!important;border-width:2px!important;font-size:26px!important}
.sgmsg-page .seg-chat-thread{min-height:310px;max-height:56vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#785270 transparent;padding:18px 8px}
.sgmsg-page .seg-chat-thread .bubble{max-width:min(80%,500px);border-radius:17px;overflow-wrap:anywhere}
.sgmsg-page form.send{display:flex;gap:10px;align-items:center;padding:12px 0 0;border-top:1px solid #4b334b}
.sgmsg-page form.send input[name=body]{flex:1;min-width:0;border-radius:999px;padding:13px 18px}
.sgmsg-page form.send button{border-radius:999px;background:#e92a92;color:#fff;font-weight:750;padding:12px 20px}
.sgmsg-welcome{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;color:#cfbcd1}
.sgmsg-welcome>span{font-size:64px;line-height:1;color:#ea3c9b}
.sgmsg-welcome strong{font-size:22px;color:#fff}
.sgmsg-welcome p{margin:0;max-width:350px}
@media(max-width:850px){.sgmsg-layout{grid-template-columns:1fr!important}.sgmsg-conversations,.sgmsg-chat-panel{min-height:0}.sgmsg-page{padding:0 12px}}
@media(max-width:480px){.sgmsg-layout>.panel{padding:17px!important;border-radius:18px!important}.sgmsg-conversations .sgmsg-contact{grid-template-columns:50px minmax(0,1fr) auto;gap:9px}.sgmsg-photo{height:47px;width:47px}.sgmsg-date{font-size:10px}.sgmsg-page .seg-chat-thread{max-height:48vh}}
