.k3mc{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:#182433;position:relative;z-index:11000}.k3mc [hidden]{display:none!important}.k3mc button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.k3mc button:disabled{opacity:.55;cursor:wait}.k3mc-launcher{position:fixed;right:22px;bottom:24px;width:58px;height:58px;border:0;border-radius:50%;background:linear-gradient(140deg,#148cff,#5260f4);box-shadow:0 6px 24px #007aff50;font-size:28px;color:#fff}.k3mc-badge{position:absolute;right:-4px;top:-5px;border-radius:14px;min-width:23px;padding:3px 5px;background:#f04452;color:white;font-size:11px;font-weight:700;border:2px solid white}.k3mc-panel{position:fixed;right:22px;bottom:94px;width:370px;height:min(590px,calc(100dvh - 115px));display:flex;flex-direction:column;border:1px solid #dde4ef;border-radius:24px;background:#fff;box-shadow:0 18px 65px #263b6233;overflow:hidden}.k3mc-head{display:flex;align-items:center;gap:10px;padding:16px;background:#ffffffed;border-bottom:1px solid #eef1f5;flex-shrink:0}.k3mc-head strong{display:block;font-size:17px;letter-spacing:-.3px}.k3mc-head small{display:block;font-size:11px;color:#8390a3;margin-top:3px}.k3mc-head>div{flex:1}.k3mc-room-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:#eaf3ff;font-size:22px}.k3mc-head-button{border:0;background:#f0f5fb;color:#3576cd;border-radius:50%;width:31px;height:31px;font-size:21px}.k3mc-list{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:14px 14px 8px;scrollbar-width:thin;background:linear-gradient(#f9fbff,#fff)}.k3mc-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 14px}.k3mc-message.mine{align-items:flex-end}.k3mc-meta{font-size:10px;font-weight:600;color:#7b899b;margin:0 7px 4px}.k3mc-bubble{max-width:86%;background:#edf0f5;color:#26354a;border-radius:18px 18px 18px 5px;padding:10px 13px;line-height:1.5;overflow:hidden}.k3mc-message.mine .k3mc-bubble{background:linear-gradient(135deg,#238bff,#0073f1);color:white;border-radius:18px 18px 5px 18px}.k3mc-text{white-space:pre-wrap;overflow-wrap:anywhere}.k3mc-time{font-size:9px;color:#97a1ae;margin:4px 6px 0}.k3mc-image-button{padding:0;border:0;background:transparent;display:block;max-width:100%}.k3mc-image{display:block;width:100%;max-width:240px;height:160px;object-fit:cover;border-radius:10px}.k3mc-image+.k3mc-text{margin-top:7px}.k3mc-status{font-size:10px;color:#7a879a;padding:5px 14px;flex-shrink:0;line-height:1.4}.k3mc-composer{display:flex;align-items:flex-end;gap:7px;padding:10px 10px 14px;border-top:1px solid #f1f3f7;background:#fff;flex-shrink:0}.k3mc-composer textarea{font-family:inherit;resize:none;font-size:16px;line-height:22px;min-height:40px;height:44px;max-height:100px;flex:1;min-width:0;border:1px solid #e1e7f0;border-radius:20px;padding:10px 12px;background:#f8faff;outline:0;color:#182433}.k3mc-composer textarea:focus{border-color:#7db7ff}.k3mc-tool{border:0;background:transparent;color:#007aff;font-size:25px;width:27px;height:42px;padding:0}.k3mc-send{border:0;background:#007aff;color:white;width:38px;height:38px;border-radius:50%;font-size:26px;font-weight:700;flex-shrink:0;margin-bottom:2px}.k3mc-emojis{display:grid;grid-template-columns:repeat(8,1fr);padding:8px;background:#f7f9fd;flex-shrink:0}.k3mc-emoji{border:0;background:none;font-size:23px;padding:5px}.k3mc-preview{display:flex;padding:8px 14px;align-items:center;gap:10px;background:#f5f8ff;flex-shrink:0}.k3mc-preview img{width:64px;height:54px;object-fit:cover;border-radius:9px}.k3mc-remove{border:0;border-radius:50%;font-size:24px;color:#d04553;background:#ffedf0}.k3mc-older,.k3mc-new{display:block;margin:0 auto 12px;padding:7px 13px;border:0;border-radius:20px;color:#007aff;background:#eaf3ff;font-size:11px}.k3mc-new{margin:4px auto}.k3mc-empty{text-align:center;color:#8a98ab;line-height:1.7;padding:30px 20px}.k3mc-lightbox{position:fixed;inset:0;background:#102039ed;display:flex;align-items:center;justify-content:center;z-index:2;padding:50px 18px}.k3mc-lightbox img{max-width:100%;max-height:90dvh;object-fit:contain}.k3mc-lightbox button{position:absolute;right:20px;top:15px;background:#fff;border:0;border-radius:50%;width:38px;height:38px;font-size:28px}.k3mc button:focus-visible{outline:3px solid #9acaff;outline-offset:2px}@media(max-width:480px){.k3mc-launcher{right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:54px;height:54px}.k3mc-panel{right:8px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 16px);height:min(580px,calc(100dvh - 100px - env(safe-area-inset-bottom)));border-radius:22px}.k3mc-composer{padding-bottom:12px}}

/* V59.9.16: bee launcher, visible unread count and raised mobile position. */
.k3mc-launcher{display:grid;place-items:center;width:64px;height:64px;background:linear-gradient(145deg,#fff8db,#ffe396);border:2px solid #fff;box-shadow:0 6px 22px #ad730635;color:#352b22;overflow:visible}
.k3mc-bee{display:block;width:47px;height:47px;transform-origin:50% 62%}
.k3mc-room-icon{background:#fff3cb}.k3mc-room-icon .k3mc-bee{width:32px;height:32px}
.k3mc-badge{right:-5px;top:-6px;min-width:26px;height:26px;line-height:22px;padding:0 5px;background:#ff3b49;border:2px solid #fff;font-size:14px;font-weight:750;box-shadow:0 2px 6px #c51e3033;font-variant-numeric:tabular-nums;z-index:1}
.k3mc-launcher.has-unread .k3mc-bee{animation:k3mc-bee-wiggle 3s ease-in-out infinite}
@keyframes k3mc-bee-wiggle{0%,38%,100%{transform:rotate(0) translateY(0)}6%,22%{transform:rotate(-13deg) translateY(-2px)}14%,30%{transform:rotate(13deg) translateY(-2px)}}
@media(max-width:767px){
 .k3mc-launcher{right:18px;bottom:calc(var(--k3mc-mobile-bottom,120px) + env(safe-area-inset-bottom));width:64px;height:64px}
 .k3mc-panel{right:8px;bottom:calc(var(--k3mc-mobile-bottom,120px) + 76px + env(safe-area-inset-bottom));width:min(390px,calc(100vw - 16px));height:min(580px,calc(100dvh - var(--k3mc-mobile-bottom,120px) - 92px - env(safe-area-inset-bottom)))}
}
@media(prefers-reduced-motion:reduce){.k3mc-launcher.has-unread .k3mc-bee{animation:none}}


/* V59.9.17: mobile chat like a messaging app; follow Safari visual viewport. */
@media(max-width:767px){
    .k3mc.k3mc-mobile-open .k3mc-launcher{display:none!important}
    .k3mc.k3mc-mobile-open .k3mc-panel{
        position:fixed;
        top:var(--k3mc-view-top,0px)!important;
        left:0!important;
        right:0!important;
        bottom:auto!important;
        width:100vw!important;
        max-width:none!important;
        height:var(--k3mc-view-height,100dvh)!important;
        max-height:none!important;
        margin:0!important;
        border:0;
        border-radius:0;
        box-shadow:none;
        display:flex;
        flex-direction:column;
        overflow:hidden;
        overscroll-behavior:contain;
        background:white;
    }
    .k3mc-panel .k3mc-head{
        min-height:64px;
        padding:calc(11px + env(safe-area-inset-top,0px)) 13px 11px;
        background:linear-gradient(110deg,#068afb,#0070e9);
        border-bottom:0;
        color:#fff;
        z-index:1;
    }
    .k3mc-panel .k3mc-head small{color:#e4f1ff}
    .k3mc-panel .k3mc-head-button{background:#ffffff24;color:white;flex:0 0 33px}
    .k3mc-panel .k3mc-list{
        display:flex;
        flex-direction:column;
        flex:1 1 auto;
        min-height:0;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
        overscroll-behavior:contain;
        touch-action:pan-y;
        padding:13px 13px 8px;
        background:#e7edf5;
    }
    .k3mc-panel .k3mc-message{flex-shrink:0}
    .k3mc-panel .k3mc-message:first-of-type{margin-top:auto}
    .k3mc-panel .k3mc-status{background:#f9fbff;color:#8190a6}
    .k3mc-panel .k3mc-composer{
        flex:0 0 auto;
        padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px));
        margin:0;
        align-items:center;
        background:#fff;
        border-top:1px solid #e7edf4;
    }
    .k3mc.k3mc-keyboard-open .k3mc-composer{padding-bottom:9px}
    .k3mc-panel .k3mc-composer textarea{font-size:16px}
    .k3mc-panel .k3mc-emojis{grid-template-columns:repeat(8,minmax(0,1fr))}
    .k3mc-panel .k3mc-emoji{min-width:0}
    .k3mc-panel .k3mc-lightbox{position:absolute;inset:0;z-index:4}
}

/* v59.9.18: lock the full mobile chat inside the visible iPhone viewport.
 * Only the message list and the members list can scroll. */
@media(max-width:767px){
    .k3mc.k3mc-mobile-open {position:fixed;inset:0;z-index:2147483000;pointer-events:none;}
    .k3mc.k3mc-mobile-open .k3mc-panel{
        top:var(--k3mc-view-top,0px)!important;
        left:var(--k3mc-view-left,0px)!important;
        right:auto!important;bottom:auto!important;
        width:100%!important;
        height:var(--k3mc-view-height,100%)!important;
        min-height:0!important;
        max-height:none!important;
        overflow:hidden!important;
        contain:layout style;
        display:flex;
        touch-action:none;
        pointer-events:auto;
    }
    .k3mc.k3mc-mobile-open .k3mc-head{flex:0 0 auto;padding-top:11px;min-height:60px}
    .k3mc.k3mc-mobile-open .k3mc-list{flex:1 1 0%;min-height:0;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain}
    .k3mc.k3mc-mobile-open .k3mc-composer{flex:0 0 auto;min-height:62px;margin:0;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px));position:relative;z-index:1}
    .k3mc.k3mc-mobile-open.k3mc-keyboard-open .k3mc-composer{padding-bottom:9px}
    .k3mc.k3mc-mobile-open .k3mc-composer textarea{font-size:16px!important;touch-action:manipulation}
    .k3mc.k3mc-mobile-open .k3mc-preview,.k3mc.k3mc-mobile-open .k3mc-emojis,.k3mc.k3mc-mobile-open .k3mc-status{flex-shrink:0}
}
/* Lightweight per-message read-status chip. */
.k3mc-receipt{border:0;background:transparent;color:#137bda;font-size:10px;padding:3px 6px;margin:3px 2px 0;border-radius:7px;max-width:95%;text-align:right}
.k3mc-receipt:hover{background:#edf5ff}
.k3mc-receipt-overlay{position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;background:#10294388;padding:18px;overscroll-behavior:contain}
.k3mc-receipt-sheet{display:flex;flex-direction:column;overflow:hidden;min-width:0;width:min(420px,100%);max-height:min(640px,85dvh);background:#fff;border-radius:20px;box-shadow:0 10px 60px #142e5666;touch-action:none}
.k3mc-receipt-title{padding:16px;display:flex;align-items:center;justify-content:space-between;color:#1a2c44;font-size:17px}
.k3mc-receipt-close{background:#edf3f9;border:0;border-radius:50%;font-size:24px;color:#526a83;width:34px;height:34px}
.k3mc-receipt-tabs{display:flex;gap:8px;padding:0 16px 12px;border-bottom:1px solid #e9eff6}
.k3mc-receipt-tab{flex:1;border:0;border-radius:12px;padding:10px 6px;background:#eaf0f6;color:#667a93;font-size:13px;font-weight:700}
.k3mc-receipt-tab[aria-selected=true]{background:#087cff;color:#fff}
.k3mc-receipt-members{flex:1;min-height:100px;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding:6px 16px 10px}
.k3mc-receipt-person{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px solid #f1f4f8}
.k3mc-receipt-avatar{width:36px;height:36px;min-width:36px;border-radius:50%;background:#dceaff;color:#1767bd;display:grid;place-items:center;font-size:14px;font-weight:700}
.k3mc-receipt-person-text{display:flex;flex-direction:column;min-width:0;gap:1px}
.k3mc-receipt-person-text strong{color:#253850;font-size:13px;overflow-wrap:anywhere}
.k3mc-receipt-person-text small{color:#8794a7;font-size:11px;overflow-wrap:anywhere}
.k3mc-receipt-empty{text-align:center;color:#7d8da1;padding:24px 8px;line-height:1.5}
.k3mc-receipt-footnote{border-top:1px solid #f1f4f8;margin:0;padding:9px 16px 14px;font-size:10px;line-height:1.4;color:#8090a5}
@media(max-width:767px){
 .k3mc-receipt-overlay{position:absolute;inset:0;align-items:flex-end;padding:0;touch-action:none}
 .k3mc-receipt-sheet{width:100%;max-height:82%;border-radius:19px 19px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
}
.k3mc-receipt-overlay{pointer-events:auto}
@media(max-width:767px){
 .k3mc.k3mc-mobile-open .k3mc-receipt-overlay{
  inset:auto;
  top:var(--k3mc-view-top,0px);
  left:var(--k3mc-view-left,0px);
  width:100%;height:var(--k3mc-view-height,100%);
 }
}

/* V59.9.21: safe clickable URLs and a mobile-friendly notification toggle. */
.k3mc-text .k3mc-link{color:#0869d7;text-decoration:underline;text-underline-offset:2px;font-weight:650;overflow-wrap:anywhere;word-break:break-word;cursor:pointer}
.k3mc-message.mine .k3mc-text .k3mc-link{color:#064bb5;background:#e9f4ff;border-radius:4px;padding:1px 3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.k3mc-text .k3mc-link:focus-visible{outline:2px solid #82b8ff;outline-offset:2px}
.k3mc-head .k3mc-sound-button{font-size:16px;line-height:1;flex:0 0 31px;display:grid;place-items:center;white-space:nowrap}
