.profile-widgets { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.teamspeak-presence {
    display:inline-flex; align-items:center; gap:7px; padding:5px 8px; width:fit-content;
    border:1px solid var(--line); border-radius:8px; font-size:.85rem;
}
.teamspeak-icon { display:inline-block; filter:invert(.94); object-fit:contain; vertical-align:middle; }
.teamspeak-presence[data-status="online"] .presence-dot { background:#52c582; }
.teamspeak-presence[data-status="offline"] .presence-dot { background:#888; }

.giphy-dialog {
    width:min(calc(100% - 20px),580px); max-height:min(740px,calc(100dvh - 20px)); padding:12px;
    border:1px solid var(--glass-border); border-radius:16px; box-shadow:var(--glass-shadow);
    background:var(--glass-panel); color:var(--text);
}
.giphy-dialog::backdrop { background:#000b; }
.giphy-dialog header,.giphy-dialog footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.giphy-dialog footer { margin-top:12px; }
.giphy-search { display:flex; align-items:center; gap:8px; margin:12px 0; }
.giphy-search input { flex:1; min-width:0; }
.giphy-results {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px;
    max-height:calc(100dvh - 218px); overflow:auto;
}
.giphy-results button {
    min-height:68px; border:1px solid var(--line); border-radius:8px; padding:0; overflow:hidden;
    background:#1e1e1e; cursor:pointer;
}
.giphy-results button:is(:hover,:focus-visible) { border-color:#ddd; }
.giphy-results img { display:block; width:100%; height:100%; max-height:125px; object-fit:cover; }
.giphy-credit { display:block; max-width:130px; height:auto; }
.giphy-attachment { width:fit-content; max-width:100%; margin:10px 0; }
.giphy-media-link { position:relative; display:block; width:fit-content; max-width:100%; }
.giphy-attachment [data-giphy-image] { display:block; max-width:100%; border-radius:9px; }
.giphy-source {
    position:absolute; inset:auto 5px 5px auto; padding:2px 5px; border-radius:4px;
    background:#111e; color:#fff; font-size:.63rem; font-weight:700; line-height:1.4;
}
