/* ZEUS-SOURCE-OWNER: Johann Scheicher | Entwickler und Rechteinhaber: Johann Scheicher. Copyright (c) 2026 Johann Scheicher. Alle Rechte vorbehalten. */
.connect-shell{display:grid;grid-template-columns:300px minmax(0,1fr);height:calc(100dvh - 220px);min-height:420px;border:1px solid #d8ddd9;border-radius:20px;overflow:hidden;background:#f8faf9}.connect-sidebar{overflow:auto;padding:16px;background:#fff;border-right:1px solid #d8ddd9}.connect-sidebar input[type=search]{width:100%}.connect-thread{display:flex;width:100%;align-items:center;text-align:left;gap:10px;margin:7px 0;border:0;padding:12px}.connect-thread.selected{background:#d9eee8}.connect-thread>span:nth-child(2){min-width:0;flex:1}.connect-thread small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#66756f}.connect-avatar{display:grid;place-items:center;border-radius:50%;background:#176b57;color:white;width:42px;height:42px;flex-shrink:0;font-weight:bold}.connect-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.connect-conversation>header{display:flex;gap:10px;align-items:center;padding:14px;background:white;flex-wrap:wrap}.connect-conversation>header>div{flex:1;min-width:100px}.connect-conversation>header small{display:block;color:#66756f}.connect-conversation>header button{font-size:12px;padding:8px}#connect-messages{overflow:auto;flex:1;min-height:0;padding:18px;display:flex;flex-direction:column;gap:12px}.connect-bubble{max-width:85%;align-self:flex-start;padding:12px 16px;background:white;border:1px solid #dce4df;border-radius:16px;overflow-wrap:anywhere}.connect-bubble.mine{align-self:flex-end;background:#def1e9}.connect-bubble p{white-space:normal;margin:8px 0}.connect-bubble footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#53675d;font-size:11px}.connect-bubble footer button{font-size:11px;padding:4px 7px}.connect-bubble blockquote{margin:4px 0;padding:7px;border-left:3px solid #398568;background:#ffffff70}.connect-attachment img{max-width:100%;max-height:260px;border-radius:8px}.connect-attachment audio{max-width:100%}.connect-attachment a{display:block;color:#155b49}#connect-compose{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:white;border-top:1px solid #dce4df}#connect-compose textarea{flex:1 1 100%;min-height:58px;max-height:170px}#connect-compose small{flex-basis:100%;overflow-wrap:anywhere}.connect-file-button{position:relative;overflow:hidden;border:1px solid #c9d8ce;border-radius:10px;padding:10px;cursor:pointer;margin:0!important}.connect-file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}#connect-reply{padding:0 12px;display:flex;justify-content:space-between;overflow-wrap:anywhere}#connect-back{display:none}@media(max-width:700px){.connect-shell{grid-template-columns:1fr;height:calc(100dvh - 200px);min-height:350px}.connect-shell:not(.has-thread) .connect-conversation{display:none}.connect-shell.has-thread .connect-sidebar{display:none}#connect-back{display:block}.connect-bubble{max-width:94%}.connect-conversation>header{padding:8px}.connect-conversation>header small{max-height:34px;overflow:auto}#connect-compose button{font-size:12px;padding:8px}}

.connect-shell [hidden]{display:none!important}
.connect-image-preview{display:block;position:relative;max-width:min(460px,100%);padding:0;margin:6px 0;border:0;border-radius:10px;overflow:hidden;background:#e8eeeb;cursor:zoom-in}.connect-image-preview img{display:block;max-width:100%;max-height:300px;object-fit:contain}.connect-image-preview span{position:absolute;right:8px;bottom:8px;padding:4px 8px;border-radius:12px;background:#17211dcc;color:#fff;font-size:11px}.connect-image-lightbox{position:fixed;z-index:10000;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;padding:24px;background:#09100ee8}.connect-image-lightbox>img{max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain}.connect-image-lightbox>div{display:flex;gap:18px;align-items:center;color:#fff;padding-top:12px}.connect-image-lightbox a{color:#fff;text-decoration:underline}.connect-image-close{position:absolute;right:18px;top:18px;width:44px;height:44px;border-radius:50%;font-size:28px;background:#fff;color:#111}
#connect-file-preview{flex:1 1 100%;display:flex;gap:9px;overflow-x:auto;padding:8px;border-radius:13px;background:#e9eeeb;scrollbar-width:thin}#connect-file-preview[hidden]{display:none!important}#connect-file-preview figure{position:relative;flex:0 0 118px;margin:0;padding:5px;border-radius:10px;background:#fff;box-shadow:0 1px 5px #0002}#connect-file-preview img{display:block;width:108px;height:108px;border-radius:7px;object-fit:cover}#connect-file-preview figcaption{padding:6px 2px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.connect-file-icon{display:grid;width:108px;height:108px;place-items:center;background:#f2f1ec;border-radius:7px;font-size:30px}#connect-file-preview button{position:absolute;right:1px;top:1px;width:29px;height:29px;padding:0;border:2px solid #fff;border-radius:50%;background:#20262b;color:#fff;font-size:18px}.connect-image-name{max-width:min(460px,100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;opacity:.72}.connect-caption{margin-top:9px!important;padding-top:3px}

/* Familiar messenger layout with Z.E.U.S colours. */
.connect-conversation>header{background:#f7faf8;border-bottom:1px solid #d8e2dc;box-shadow:0 1px 4px #0b2b1d13}.connect-conversation>header #connect-audio-call,.connect-conversation>header #connect-call{width:42px;height:42px;padding:0;border:0;border-radius:50%;background:#e3f0e8;color:#126045;font-size:0}.connect-conversation>header #connect-audio-call svg,.connect-conversation>header #connect-call svg{display:block;width:21px;height:21px;margin:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.connect-conversation>header #connect-audio-call span,.connect-conversation>header #connect-call span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.connect-conversation>header #connect-audio-call:hover,.connect-conversation>header #connect-call:hover{background:#cfe6da}.connect-conversation>header .connect-menu summary{color:#245d48}.connect-bubble{position:relative;border:0;border-radius:5px 15px 15px;box-shadow:0 1px 2px #102b1f22}.connect-bubble>b{display:block;position:relative;z-index:1;margin:0 0 8px;line-height:1.35}.connect-bubble.mine{border-radius:15px 5px 15px 15px;background:#d7f4c8}.connect-bubble footer{justify-content:flex-end}.connect-attachment:has(.connect-image-preview){margin:6px -10px 0}.connect-attachment:has(.connect-image-preview) .connect-image-preview{width:100%;max-width:100%;margin:0;border-radius:11px}.connect-attachment:has(.connect-image-preview) .connect-image-preview img{width:100%;max-height:420px;object-fit:cover}.connect-attachment:has(.connect-image-preview) .connect-image-name{padding:4px 9px 0}.connect-caption{font-size:15px;line-height:1.45}#connect-compose{background:#eef1ed}#connect-compose textarea{border-radius:24px;border-color:#d6dfd9;padding:11px 16px}.connect-file-button{border-radius:22px;background:#fff}.connect-file-button:hover{background:#e4eee8}


