/* P1N Community Engine 0.1.7: more compact private conversation and activity sidebar */
.ce-conversation{width:100%;max-width:990px!important;margin-inline:auto;border-radius:16px!important;box-shadow:0 14px 38px rgba(0,9,24,.23)!important}
.ce-conversation-head{position:relative!important;top:auto!important;padding:13px 18px!important;background:linear-gradient(100deg,#203d63,#112844)!important}
.ce-conversation-head>.avatar{width:42px!important;height:42px!important;flex:0 0 42px!important}
.ce-conversation-head h1{font-size:1.08rem!important}
.ce-message-stream{
 height:clamp(230px,39vh,395px)!important;min-height:230px!important;max-height:395px!important;
 padding:18px 18px!important;gap:10px!important;overflow-y:auto;scrollbar-gutter:stable;
 scrollbar-width:thin;scrollbar-color:#477ca8 #0d233b;overscroll-behavior:contain;
 background:linear-gradient(180deg,#112a46,#0f2039)
}
.ce-message-stream::-webkit-scrollbar{width:8px}
.ce-message-stream::-webkit-scrollbar-track{background:#0c213b;border-radius:10px}
.ce-message-stream::-webkit-scrollbar-thumb{background:#3c709f;border-radius:10px;border:2px solid #0c213b}
.ce-message-stream::-webkit-scrollbar-thumb:hover{background:#5ab5df}
.ce-message-row{max-width:100%;min-width:0}
.ce-message-bubble{max-width:min(76%,520px)!important;min-width:0!important;padding:10px 13px!important;border-radius:14px!important}
.ce-message-bubble .post-body{font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
.ce-message-bubble .post-body img{max-width:100%;max-height:250px;object-fit:contain}
.ce-message-controls{margin:5px 0 3px!important;gap:5px!important;opacity:.8;transition:opacity .15s ease}
.ce-message-bubble:hover .ce-message-controls,.ce-message-bubble:focus-within .ce-message-controls{opacity:1}
.ce-message-controls button{font-size:.72rem!important;padding:4px 8px!important;border:1px solid #497ba753!important;border-radius:7px!important;color:#bce8fc!important;background:#092642!important}
.ce-message-controls button:hover{background:#235681!important;color:white!important}
.ce-message-compose{padding:13px 18px 15px!important;background:#112b49!important}
.ce-message-compose>.ce-composer-label{display:block;font-weight:750;font-size:.86rem;margin:0 0 8px;color:#e0f6ff}
.ce-message-compose .ce-composer{border-radius:11px!important}
.ce-message-compose .ce-composer textarea[data-ce-textarea]{height:115px!important;min-height:96px!important;max-height:215px!important;padding:13px 15px!important;resize:vertical}
.ce-message-compose .ce-composer .ce-preview-output{min-height:112px!important;max-height:235px!important;padding:15px!important}
.ce-message-compose .ce-editor-top{min-height:38px!important}
.ce-message-compose .ce-toolbar{padding:5px 8px!important;min-height:43px!important;gap:2px!important}
.ce-message-compose .ce-tool{min-height:31px!important;min-width:31px!important;padding:6px!important}
.ce-message-compose .ce-upload-tool{min-height:31px!important}
.ce-message-compose .ce-editor-foot{padding:7px 11px!important}
.ce-message-compose .ce-message-compose-tools{margin-top:7px!important}
.ce-message-compose .form-actions{margin-top:7px!important;padding-top:9px!important}
.ce-message-compose .form-actions .btn{min-height:36px!important}
.ce-ajax-status{font-size:.78rem;font-weight:650;color:#77e3f2;min-height:1em;display:inline-flex;align-items:center}
.ce-presence-panel .panel-head h3{display:flex;align-items:center;gap:8px}
.ce-online-dot{display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;background:#2fe2ac;box-shadow:0 0 0 3px #2fe2ac22}
.ce-presence-list{padding:6px 9px 9px}
.ce-presence-person{display:flex;align-items:center;gap:9px;padding:7px 5px;border-radius:9px;min-width:0}
.ce-presence-person:hover{background:#1a45687b}
.ce-presence-person .avatar{width:33px!important;height:33px!important;flex:0 0 33px!important;object-fit:cover}
.ce-presence-person>span{display:flex;flex:1;flex-direction:column;min-width:0;gap:2px}
.ce-presence-person strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}
.ce-presence-person small{font-size:.69rem;color:#95bad6}
.ce-presence-person .ce-online-dot{flex:0 0 8px}
.ce-presence-empty{color:#9bbbd5;font-size:.77rem;margin:10px 5px 14px;line-height:1.4}
.ce-presence-foot{padding:8px 13px;border-top:1px solid #2c4c71;font-size:.7rem;color:#a0c7dc}
.ce-composer [data-ce-media-popover]:not([hidden]){display:block!important}
.ce-composer .ce-media-actions{display:flex;flex-wrap:wrap;gap:8px}
.ce-just-added{animation:ce-entry .28s ease-out both}
@keyframes ce-entry{from{opacity:.15;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
 .ce-conversation{max-width:100%!important;border-radius:12px!important}
 .ce-message-stream{height:clamp(215px,39vh,360px)!important;max-height:360px!important;padding:10px!important;scrollbar-gutter:auto}
 .ce-message-bubble{max-width:90%!important;padding:9px 10px!important}
 .ce-conversation-head{padding:10px!important;gap:7px!important}
 .ce-message-compose{padding:11px!important}
 .ce-message-compose .ce-composer textarea[data-ce-textarea]{height:105px!important}
 .ce-message-compose .form-actions{gap:8px!important;flex-wrap:wrap!important}
 .ce-message-compose .ce-toolbar{gap:1px!important}
}
@media(prefers-reduced-motion:reduce){.ce-just-added{animation:none}.ce-message-controls{transition:none}}
