.lc-bubble,.lc-panel,.lc-badge { box-sizing: border-box; font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
.lc-bubble {
    position: fixed; right: 22px; bottom: 22px; z-index: 2147483000;
    width: 58px; height: 58px; border: none; border-radius: 50%;
    background: #1972f5; color: #fff; cursor: pointer;
    box-shadow: 0 8px 24px rgba(25,114,245,.4);
    display: flex; align-items: center; justify-content: center;
}
.lc-bubble:hover { transform: scale(1.04); }
.lc-bubble svg { width: 28px; height: 28px; fill: #fff; }
.lc-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    background: #e74c3c; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 800;
    padding: 0 5px; display: none; align-items: center; justify-content: center; border: 2px solid #fff;
}
.lc-badge.show { display: flex; }
.lc-online {
    position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px;
    background: #22c55e; border: 2px solid #fff; border-radius: 50%;
    display: none; box-shadow: 0 0 0 2px rgba(34,197,94,.25);
}
.lc-online.show { display: block; }
.lc-media { display: block; max-width: 220px; max-height: 180px; border-radius: 8px; margin-bottom: 6px; }
.lc-clip {
    width: 40px; height: 40px; border-radius: 50%; background: #eef2f7; color: #3b4a63;
    display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
    border: 1px solid #e1e5ec; transition: background .15s, color .15s, border-color .15s;
}
.lc-clip:hover { background: #e8f1ff; color: #1972f5; border-color: #c5dbff; }
.lc-clip svg { width: 20px; height: 20px; display: block; }
.lc-preview {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #eef4ff;
    font-size: 12px; color: #17233b;
}
.lc-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.lc-preview button { margin-left: auto; border: none; background: none; font-size: 18px; cursor: pointer; }
.lc-panel {
    position: fixed; right: 22px; bottom: 92px; z-index: 2147483001;
    width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 16px 50px rgba(23,35,59,.22);
    display: none; flex-direction: column;
}
.lc-panel.open { display: flex; }
.lc-head {
    background: linear-gradient(135deg, #0d1b2a, #1972f5);
    color: #fff; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 10px;
}
.lc-ava {
    width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #1972f5;
    display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex-shrink: 0;
}
.lc-ava img { width: 100%; height: 100%; object-fit: cover; }
.lc-head-txt { flex: 1; min-width: 0; }
.lc-head-txt b { display: block; font-size: 14px; }
.lc-head-txt span { font-size: 12px; opacity: .85; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; display: inline-block; margin-right: 5px; }
.lc-dot.on { background: #22c55e; }
.lc-x { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.lc-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6f9; }
.lc-empty { text-align: center; color: #8a94a6; font-size: 13px; padding: 40px 16px; }
.lc-row { display: flex; margin-bottom: 10px; }
.lc-row.me { justify-content: flex-end; }
.lc-bub {
    max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.4;
    word-wrap: break-word; white-space: pre-wrap;
}
.lc-row.them .lc-bub { background: #fff; color: #17233b; border-bottom-left-radius: 4px; }
.lc-row.me .lc-bub { background: #1972f5; color: #fff; border-bottom-right-radius: 4px; }
.lc-meta { font-size: 10px; color: #8a94a6; margin: 0 4px 4px; }
.lc-form { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid #e1e5ec; align-items: center; }
.lc-form input[type="text"] {
    flex: 1; border: 1px solid #e1e5ec; border-radius: 20px; padding: 10px 14px; font-size: 13px; outline: none;
}
.lc-form input:focus { border-color: #1972f5; }
.lc-form button {
    border: none; background: #1972f5; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
@media (max-width: 480px) {
    .lc-panel { right: 8px; left: 8px; width: auto; bottom: 84px; }
    .lc-bubble { right: 14px; bottom: 14px; }
}
