/* 042.4.6.4 DIRECT CHAT MVP */
.jw-chat-shell{padding-top:20px}
.jw-chat-hero{margin-bottom:18px}
.jw-chat-title-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.jw-chat-title-row h1{margin-bottom:0}
.jw-chat-title-row p{margin:0;color:rgb(84,95,112)}
.jw-chat-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.jw-chat-primary,.jw-chat-secondary,.jw-chat-search button,.jw-chat-person-row button,.jw-chat-compose button{
    display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:8px;
    font:inherit;font-weight:800;text-decoration:none;cursor:pointer
}
.jw-chat-primary,.jw-chat-search button,.jw-chat-person-row button,.jw-chat-compose button{
    border:1px solid rgb(27,84,166);background:rgb(27,84,166);color:rgb(255,255,255)
}
.jw-chat-secondary{border:1px solid rgb(183,194,210);background:rgb(255,255,255);color:rgb(15,57,111)}
.jw-chat-text-link{color:rgb(15,57,111);font-weight:700}
.jw-chat-new-panel,.jw-chat-list-panel,.jw-chat-thread-panel{
    border:1px solid rgb(214,221,231);border-radius:14px;background:rgb(255,255,255);box-shadow:0 2px 8px rgba(0,0,0,.05)
}
.jw-chat-new-panel{padding:18px;margin-bottom:18px}
.jw-chat-section-heading,.jw-chat-panel-heading,.jw-chat-thread-heading{
    display:flex;align-items:flex-start;justify-content:space-between;gap:14px
}
.jw-chat-section-heading h2,.jw-chat-panel-heading h2,.jw-chat-thread-heading h2{margin:0}
.jw-chat-section-heading p{margin:5px 0 0;color:rgb(84,95,112)}
.jw-chat-search{margin-top:16px}
.jw-chat-search label,.jw-chat-compose label{display:block;font-weight:800;margin-bottom:6px}
.jw-chat-search-row{display:flex;gap:8px}
.jw-chat-search-row input,.jw-chat-compose textarea{
    width:100%;box-sizing:border-box;border:1px solid rgb(183,194,210);border-radius:8px;padding:10px 12px;font:inherit;background:rgb(255,255,255)
}
.jw-chat-person-list{margin-top:12px;border-top:1px solid rgb(226,231,239)}
.jw-chat-person-row{
    display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid rgb(226,231,239)
}
.jw-chat-person-copy{display:flex;flex-direction:column;min-width:0}
.jw-chat-person-copy small{color:rgb(84,95,112);overflow-wrap:anywhere}
.jw-chat-layout{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);gap:16px;align-items:stretch}
.jw-chat-list-panel,.jw-chat-thread-panel{min-height:520px;overflow:hidden}
.jw-chat-panel-heading{padding:14px 16px;border-bottom:1px solid rgb(226,231,239);align-items:center}
.jw-chat-panel-heading span{
    display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;border-radius:999px;
    background:rgb(237,242,250);color:rgb(15,57,111);font-weight:800
}
.jw-chat-list{display:flex;flex-direction:column}
.jw-chat-list-item{
    display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 14px;
    border-bottom:1px solid rgb(226,231,239);text-decoration:none;color:inherit
}
.jw-chat-list-item:hover{background:rgb(248,250,253)}
.jw-chat-list-item.is-active{background:rgb(241,246,253);box-shadow:inset 4px 0 0 rgb(27,84,166)}
.jw-chat-list-item.has-unread{box-shadow:inset 4px 0 0 rgb(255,196,0)}
.jw-chat-list-item.is-active.has-unread{box-shadow:inset 4px 0 0 rgb(255,196,0)}
.jw-chat-list-main{display:flex;flex-direction:column;min-width:0}
.jw-chat-list-main span{color:rgb(84,95,112);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.jw-chat-list-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;font-size:12px;color:rgb(84,95,112)}
.jw-chat-list-meta b{
    display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;
    background:rgb(255,196,0);color:rgb(25,35,52);font-size:12px
}
.jw-chat-thread-panel{display:flex;flex-direction:column}
.jw-chat-thread-heading{padding:14px 16px;border-bottom:1px solid rgb(226,231,239)}
.jw-chat-message-stream{
    flex:1;min-height:260px;max-height:560px;overflow:auto;padding:16px;background:rgb(248,250,253)
}
.jw-chat-message{max-width:78%;margin:0 0 12px;padding:10px 12px;border:1px solid rgb(214,221,231);border-radius:12px;background:rgb(255,255,255)}
.jw-chat-message.is-mine{margin-left:auto;background:rgb(241,246,253);border-color:rgb(183,205,236)}
.jw-chat-message-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:5px;font-size:12px;color:rgb(84,95,112)}
.jw-chat-message-body{overflow-wrap:anywhere}
.jw-chat-compose{padding:14px 16px;border-top:1px solid rgb(226,231,239);background:rgb(255,255,255)}
.jw-chat-compose textarea{resize:vertical;min-height:82px}
.jw-chat-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.jw-chat-compose-actions small{color:rgb(84,95,112)}
.jw-chat-empty{padding:18px;color:rgb(84,95,112)}
.jw-chat-empty strong{color:rgb(25,35,52)}
.jw-chat-empty p{margin:5px 0 0}
.jw-chat-empty-thread{margin:auto;text-align:center}
@media (max-width:760px){
    .jw-chat-shell{padding-top:12px}
    .jw-chat-title-row{align-items:flex-start;flex-direction:column;gap:2px}
    .jw-chat-hero-actions{width:100%}
    .jw-chat-primary,.jw-chat-secondary{flex:1}
    .jw-chat-layout{grid-template-columns:1fr}
    .jw-chat-list-panel,.jw-chat-thread-panel{min-height:0}
    .jw-chat-thread-panel{min-height:430px}
    .jw-chat-message{max-width:90%}
    .jw-chat-search-row{align-items:stretch}
}
@media (max-width:520px){
    .jw-chat-section-heading{flex-direction:column}
    .jw-chat-search-row{flex-direction:column}
    .jw-chat-person-row{align-items:flex-start}
    .jw-chat-message{max-width:94%}
}/* 042.4.6.4.5 LIVE POLLING / READ-STATE SYNCHRONIZATION */
.jw-chat-live-status{
    display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
    padding:5px 8px;border-radius:999px;background:rgb(239,248,242);color:rgb(34,99,57);
    font-size:12px;font-weight:800
}
.jw-chat-live-status i{width:8px;height:8px;border-radius:50%;background:rgb(46,145,78)}
.jw-chat-live-status.is-delayed{background:rgb(247,249,252);color:rgb(84,95,112)}
.jw-chat-live-status.is-delayed i{background:rgb(130,139,153)}
.jw-chat-live-status.is-error{background:rgb(255,246,230);color:rgb(145,81,0)}
.jw-chat-live-status.is-error i{background:rgb(219,135,20)}
.jw-chat-new-jump{
    align-self:center;margin:-48px 0 10px;z-index:2;border:1px solid rgb(27,84,166);
    border-radius:999px;background:rgb(255,255,255);color:rgb(15,57,111);padding:7px 12px;
    font:inherit;font-size:13px;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.12);cursor:pointer
}
@media (max-width:760px){
    .jw-chat-thread-heading{align-items:flex-start}
    .jw-chat-live-status{margin-top:2px}
}

/* 042.4.6.4.5.3 CHAT ZERO-UNREAD PRESENTATION CORRECTION */
.jw-chat-unread[hidden],
.jw-chat-unread.jw-count-is-zero,
.jw-chat-list [data-unread-count="0"] .jw-chat-unread {
    display: none !important;
}

/* 042.4.6.4.5.4 CHAT VIEWPORT SHELL / INTERNAL SCROLLING */
body.jw-chat-viewport-mode{
    overflow:hidden !important;
    overscroll-behavior:none;
}
body.jw-chat-viewport-mode .jw-chat-host-header{
    display:none !important;
}
body.jw-chat-viewport-mode:not(.jw-chat-standalone) .jw-chat-host-footer{
    display:none !important;
}
.jw-chat-shell{
    --jw-chat-available-height:calc(100dvh - 12px);
    display:flex;
    flex-direction:column;
    height:var(--jw-chat-available-height);
    min-height:0;
    overflow:hidden;
    padding-top:0;
    padding-bottom:0;
}
.jw-chat-appbar{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:52px;
    padding:7px 2px 8px;
    border-bottom:1px solid rgb(226,231,239);
}
.jw-chat-appbar-copy{
    display:flex;
    align-items:baseline;
    gap:10px;
    min-width:0;
}
.jw-chat-appbar .eyebrow{
    margin:0;
    white-space:nowrap;
}
.jw-chat-appbar .jw-chat-title-row{
    gap:8px;
    flex-wrap:nowrap;
    min-width:0;
}
.jw-chat-appbar .jw-chat-title-row h1{
    font-size:24px;
    line-height:1.1;
    margin:0;
    white-space:nowrap;
}
.jw-chat-appbar .jw-chat-title-row p{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.jw-chat-appbar-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
}
.jw-chat-appbar .jw-chat-primary,
.jw-chat-appbar .jw-chat-secondary{
    min-height:34px;
    padding:6px 10px;
}
.jw-chat-new-panel{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    margin:12px 0 0;
}
.jw-chat-layout{
    flex:1 1 auto;
    min-height:0;
    height:auto;
    margin-top:10px;
    overflow:hidden;
}
.jw-chat-list-panel,
.jw-chat-thread-panel{
    min-height:0;
    height:100%;
}
.jw-chat-list-panel{
    display:flex;
    flex-direction:column;
}
.jw-chat-list{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}
.jw-chat-panel-heading{
    flex:0 0 auto;
    padding:10px 12px;
}
.jw-chat-list-heading-copy{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}
.jw-chat-list-heading-copy h2{
    white-space:nowrap;
}
.jw-chat-list-start{
    color:rgb(15,57,111);
    font-weight:800;
    text-decoration:none;
    white-space:nowrap;
}
.jw-chat-list-start:hover{
    text-decoration:underline;
}
.jw-chat-thread-panel{
    min-width:0;
    overflow:hidden;
}
.jw-chat-thread-heading{
    flex:0 0 auto;
    padding:9px 12px;
    align-items:center;
}
.jw-chat-thread-identity{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}
.jw-chat-thread-heading h2{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.jw-chat-mobile-back{
    display:none;
    color:rgb(15,57,111);
    font-weight:800;
    text-decoration:none;
}
.jw-chat-message-stream{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    -webkit-overflow-scrolling:touch;
}
.jw-chat-compose{
    flex:0 0 auto;
    padding:9px 12px;
}
.jw-chat-compose label{
    margin-bottom:4px;
}
.jw-chat-compose textarea{
    resize:none;
    min-height:54px;
    max-height:96px;
}
.jw-chat-compose-actions{
    margin-top:6px;
}
.jw-chat-new-jump{
    flex:0 0 auto;
}
@supports(height:100dvh){
    .jw-chat-shell{--jw-chat-available-height:calc(100dvh - 12px);}
}
@media (max-width:760px){
    .jw-chat-shell{
        width:100%;
        max-width:none;
        padding-left:0;
        padding-right:0;
    }
    .jw-chat-appbar{
        padding:6px 10px;
    }
    .jw-chat-appbar-copy .eyebrow,
    .jw-chat-appbar .jw-chat-title-row p{
        display:none;
    }
    .jw-chat-appbar .jw-chat-title-row{
        flex-direction:row;
    }
    .jw-chat-appbar .jw-chat-title-row h1{
        font-size:20px;
    }
    .jw-chat-appbar .jw-chat-primary,
    .jw-chat-appbar .jw-chat-secondary{
        flex:0 0 auto;
        min-height:32px;
        padding:5px 8px;
        font-size:13px;
    }
    .jw-chat-layout{
        display:block;
        margin-top:0;
        height:100%;
    }
    .jw-chat-list-panel,
    .jw-chat-thread-panel{
        height:100%;
        border-radius:0;
        border-left:0;
        border-right:0;
    }
    .jw-chat-shell.has-active-chat .jw-chat-list-panel{
        display:none;
    }
    .jw-chat-shell:not(.has-active-chat) .jw-chat-thread-panel{
        display:none;
    }
    .jw-chat-mobile-back{
        display:inline-flex;
        align-items:center;
        min-height:32px;
        padding:0 2px;
    }
    .jw-chat-thread-heading{
        min-height:48px;
        padding:7px 10px;
    }
    .jw-chat-thread-heading .eyebrow{
        display:none;
    }
    .jw-chat-thread-heading h2{
        font-size:18px;
    }
    .jw-chat-message-stream{
        padding:10px;
    }
    .jw-chat-message{
        max-width:92%;
        margin-bottom:9px;
    }
    .jw-chat-compose{
        padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    }
    .jw-chat-compose textarea{
        min-height:48px;
        max-height:84px;
    }
    .jw-chat-compose-actions small{
        display:none;
    }
}
@media (display-mode:standalone){
    body.jw-chat-viewport-mode .family-app-header,
    body.jw-chat-viewport-mode .site-header,
    body.jw-chat-viewport-mode .public-header{
        display:none !important;
    }
    .jw-chat-shell.has-active-chat .jw-chat-appbar{
        display:none;
    }
    .jw-chat-shell.has-active-chat .jw-chat-layout{
        margin-top:0;
    }
}

/* 042.4.6.4.5.4.1 CHAT COMPACT HEADER WILDCATS BRANDING */
.jw-chat-appbar{
    justify-content:flex-start;
}
.jw-chat-brand-mark{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    text-decoration:none;
}
.jw-chat-brand-mark img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.jw-chat-appbar-copy{
    flex:1 1 auto;
}
.jw-chat-appbar-actions{
    margin-left:auto;
}
@media (max-width:760px){
    .jw-chat-brand-mark{
        flex-basis:34px;
        width:34px;
        height:34px;
    }
}
@media (display-mode:standalone){
    .jw-chat-shell.has-active-chat .jw-chat-brand-mark{
        display:none;
    }
}

/* 042.4.6.5.1 REPLY-TO-MESSAGE FOUNDATION */
.jw-chat-message{
    position:relative;
}
.jw-chat-reply-preview{
    margin:0 0 7px;
    padding:7px 9px;
    border-left:3px solid rgb(255,196,0);
    border-radius:6px;
    background:rgba(15,57,111,.06);
    display:flex;
    flex-direction:column;
    gap:2px;
    font-size:12px;
    line-height:1.35;
}
.jw-chat-reply-preview strong{
    color:rgb(15,57,111);
    font-weight:800;
}
.jw-chat-reply-preview span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.jw-chat-message-reply{
    position:absolute;
    top:6px;
    right:7px;
    border:0;
    background:transparent;
    color:rgb(15,57,111);
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    opacity:0;
    pointer-events:none;
    padding:3px 5px;
    border-radius:5px;
}
.jw-chat-message:hover .jw-chat-message-reply,
.jw-chat-message:focus-within .jw-chat-message-reply{
    opacity:1;
    pointer-events:auto;
}
.jw-chat-message-reply:hover,
.jw-chat-message-reply:focus-visible{
    background:rgba(15,57,111,.08);
}
.jw-chat-compose-reply{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 0 7px;
    padding:7px 9px;
    border-left:3px solid rgb(255,196,0);
    border-radius:6px;
    background:rgba(15,57,111,.06);
}
.jw-chat-compose-reply[hidden]{
    display:none !important;
}
.jw-chat-compose-reply > div{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:1px;
}
.jw-chat-compose-reply span{
    font-size:12px;
}
.jw-chat-compose-reply small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.jw-chat-compose-reply button{
    flex:0 0 auto;
    border:0;
    background:transparent;
    color:rgb(15,57,111);
    font-weight:800;
    cursor:pointer;
}
@media (max-width:760px){
    .jw-chat-message-reply{
        opacity:1;
        pointer-events:auto;
        position:static;
        display:inline-flex;
        margin-top:5px;
        padding:3px 0;
    }
    .jw-chat-reply-preview{
        font-size:11px;
    }
}

/* 042.4.6.5.2 EMOJI PICKER + MESSAGE REACTIONS */
.jw-chat-message-react{border:0;background:transparent;color:rgb(15,57,111);font-size:12px;font-weight:800;cursor:pointer;margin-top:4px}.jw-chat-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.jw-chat-reactions:empty{display:none}.jw-chat-reaction-chip{border:1px solid rgba(15,57,111,.18);background:#fff;border-radius:999px;padding:2px 7px;font-size:13px;cursor:pointer}.jw-chat-reaction-chip.is-mine{border-color:rgb(255,196,0);background:rgba(255,196,0,.14)}.jw-chat-emoji-tools{position:relative;display:flex;justify-content:flex-end}.jw-chat-emoji-tools>button{border:0;background:transparent;color:rgb(15,57,111);font-weight:800;cursor:pointer}.jw-chat-emoji-picker{position:absolute;right:0;bottom:28px;z-index:30;width:310px;padding:10px;border:1px solid #ccd5e2;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(15,57,111,.18)}.jw-chat-emoji-picker[hidden]{display:none!important}.jw-chat-emoji-picker>strong{display:block;margin:7px 0 4px;color:rgb(15,57,111);font-size:12px}.jw-chat-emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.jw-chat-emoji-grid button{min-height:38px;border:1px solid transparent;border-radius:7px;background:transparent;font-size:22px;cursor:pointer}@media(max-width:760px){.jw-chat-emoji-picker{position:fixed;left:12px;right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:auto;max-height:42vh;overflow:auto}}


/* 042.4.6.5.2.1 EXPANDED QUICK EMOJI LIBRARY + PICKER USABILITY CORRECTION */
.jw-chat-emoji-picker{
    width:min(430px,calc(100vw - 32px));
    max-height:430px;
}
.jw-chat-emoji-picker-head{
    position:sticky;
    top:-10px;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:-10px -10px 7px;
    padding:9px 10px 7px;
    border-bottom:1px solid rgba(15,57,111,.12);
    background:#fff;
}
.jw-chat-emoji-picker-head>strong{
    color:rgb(15,57,111);
    font-size:13px;
}
.jw-chat-emoji-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border:1px solid rgba(15,57,111,.18);
    border-radius:999px;
    background:#fff;
    color:rgb(15,57,111);
    font:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}
.jw-chat-emoji-close:hover,
.jw-chat-emoji-close:focus-visible{
    background:rgba(15,57,111,.07);
}
.jw-chat-emoji-grid{
    grid-template-columns:repeat(8,1fr);
}
.jw-chat-emoji-grid-quick{
    padding-bottom:4px;
}
@media(max-width:760px){
    .jw-chat-emoji-picker{
        max-height:52vh;
    }
    .jw-chat-emoji-grid{
        grid-template-columns:repeat(6,1fr);
    }
}


/* 042.4.6.5.2.2 DESKTOP EMOJI PICKER CONTAINMENT + INTERNAL SCROLLING CORRECTION */
/* Desktop/browser only. Preserve the existing <=760px PWA/mobile picker rules unchanged. */
@media (min-width:761px){
    .jw-chat-emoji-picker{
        width:min(500px,calc(100vw - 64px));
        max-width:500px;
        max-height:min(520px,calc(100vh - 180px));
        overflow-y:auto;
        overflow-x:hidden;
        box-sizing:border-box;
        contain:layout paint;
    }
    .jw-chat-emoji-picker-head{
        position:sticky;
        top:-10px;
        z-index:5;
    }
    .jw-chat-emoji-picker .jw-chat-emoji-grid{
        width:100%;
        min-width:0;
        max-width:100%;
        grid-template-columns:repeat(8,minmax(0,1fr));
        box-sizing:border-box;
    }
    .jw-chat-emoji-picker .jw-chat-emoji-grid button{
        min-width:0;
        max-width:100%;
        overflow:hidden;
        box-sizing:border-box;
    }
    .jw-chat-emoji-picker .jw-chat-emoji-section,
    .jw-chat-emoji-picker > strong,
    .jw-chat-emoji-picker > .jw-chat-emoji-grid{
        min-width:0;
        max-width:100%;
        box-sizing:border-box;
    }
}


/* 042.4.6.5.3 SECURE ATTACHMENTS + PHOTOS */
.jw-chat-attachment-tools{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.jw-chat-attach-toggle{border:1px solid rgba(15,57,111,.18);background:#fff;color:rgb(15,57,111);font-weight:800;border-radius:7px;padding:5px 9px;cursor:pointer}
.jw-chat-attachment-selected{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}
.jw-chat-attachment-selected[hidden]{display:none!important}
.jw-chat-attachment-selected span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-chat-attachment-selected button{border:0;background:transparent;color:rgb(15,57,111);font-weight:800;cursor:pointer}
.jw-chat-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.jw-chat-attachment{display:flex;text-decoration:none;color:inherit;border:1px solid rgba(15,57,111,.14);border-radius:8px;background:#fff;overflow:hidden}
.jw-chat-attachment-image{flex-direction:column;width:min(240px,100%)}
.jw-chat-attachment-image img{display:block;width:100%;max-height:220px;object-fit:cover;background:#f5f7fa}
.jw-chat-attachment-image span{padding:6px 8px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-chat-attachment-file{flex-direction:column;padding:8px 10px;min-width:190px;max-width:320px}
.jw-chat-attachment-file strong,.jw-chat-attachment-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-chat-attachment-file span{font-size:11px;color:#5d6a79;margin-top:2px}
@media(max-width:760px){.jw-chat-attachment-image{width:min(220px,100%)}.jw-chat-attachment-tools{flex-wrap:wrap}}


/* 042.4.6.5.3.1 COMPACT COMPOSER UTILITIES + ATTACHMENT RENDERING + MESSAGE ACTION LAYOUT CORRECTION */
.jw-chat-compose-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 0 5px;
}
.jw-chat-compose-head>label{margin:0}
.jw-chat-compose-utilities{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:3px;
    flex:0 0 auto;
}
.jw-chat-compose-utilities .jw-chat-emoji-tools{
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
}
.jw-chat-compose-icon{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#737d89;
    cursor:pointer;
}
.jw-chat-compose-icon:hover,
.jw-chat-compose-icon:focus-visible{
    color:rgb(15,57,111);
    background:rgba(15,57,111,.07);
}
.jw-chat-compose-icon svg{
    width:22px;
    height:22px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.jw-chat-attachment-tools{
    margin:0 0 5px;
    min-height:0;
}
.jw-chat-attachment-tools:has(.jw-chat-attachment-selected[hidden]){
    display:none;
}
.jw-chat-attachment-selected{
    padding:4px 7px;
    border-radius:6px;
    background:rgba(15,57,111,.05);
}

/* Message actions: React left, Reply right; timestamp stays untouched. */
.jw-chat-message-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:5px;
}
.jw-chat-message-actions .jw-chat-reactions{
    margin-top:0;
    flex:1 1 auto;
}
.jw-chat-message-actions .jw-chat-message-reply{
    position:static;
    opacity:1;
    pointer-events:auto;
    margin:0 0 0 auto;
    padding:3px 5px;
    flex:0 0 auto;
}
.jw-chat-message:hover .jw-chat-message-reply,
.jw-chat-message:focus-within .jw-chat-message-reply{
    opacity:1;
    pointer-events:auto;
}

@media(max-width:760px){
    .jw-chat-compose-head{margin-bottom:4px}
    .jw-chat-compose-icon{
        width:42px;
        height:42px;
        padding:8px;
    }
    .jw-chat-compose-icon svg{
        width:24px;
        height:24px;
    }
    .jw-chat-message-actions{
        margin-top:6px;
    }
    .jw-chat-message-actions .jw-chat-message-reply{
        display:inline-flex;
        margin-left:auto;
        padding:3px 0 3px 6px;
    }
}


/* 042.4.6.5.3.2 ATTACHMENT LIVE SYNC + COMPOSER ACTION DENSITY CORRECTION */

/* Make composer utilities unmistakable without creating another row. */
.jw-chat-compose-icon{
    width:40px;
    height:40px;
    padding:5px;
}
.jw-chat-compose-icon svg{
    width:29px;
    height:29px;
    stroke-width:2.35;
}
.jw-chat-compose-utilities{
    gap:2px;
}
.jw-chat-attachment-selected{
    gap:6px;
    padding:5px 8px;
}
.jw-chat-attachment-selected strong{
    flex:0 0 auto;
    color:#445267;
    font-size:12px;
}
.jw-chat-attachment-selected span{
    min-width:0;
}

/* One compact message footer row: React/reactions left, Reply right. */
.jw-chat-message-actions{
    min-height:22px;
    margin-top:5px;
    align-items:center;
}
.jw-chat-message-actions-left{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:5px;
    min-width:0;
    flex:1 1 auto;
}
.jw-chat-message-actions-left .jw-chat-message-react{
    margin:0;
    padding:3px 0;
    flex:0 0 auto;
}
.jw-chat-message-actions-left .jw-chat-reactions{
    display:flex;
    align-items:center;
    margin:0;
    flex:0 1 auto;
}
.jw-chat-message-actions .jw-chat-message-reply{
    align-self:center;
    line-height:1.2;
    padding:3px 0 3px 8px;
}

/* Hide selected-file strip completely once JS clears it after success. */
.jw-chat-attachment-selected[hidden]{
    display:none!important;
}

@media(max-width:760px){
    .jw-chat-compose-icon{
        width:44px;
        height:44px;
        padding:6px;
    }
    .jw-chat-compose-icon svg{
        width:30px;
        height:30px;
        stroke-width:2.35;
    }
    .jw-chat-message-actions{
        margin-top:5px;
    }
}


/* 042.4.6.5.3.2.1 UPLOAD RESPONSE CASE COMPATIBILITY + COMPOSER ICON DENSITY CORRECTION */

/* Keep both composer utilities visually neutral and tightly packed. */
.jw-chat-compose-utilities{
    gap:1px;
}
.jw-chat-compose-icon,
#jw-chat-attach-toggle,
#jw-chat-emoji-toggle{
    width:34px;
    height:34px;
    min-width:34px;
    min-height:34px;
    padding:0;
    border:0;
    border-radius:5px;
    background:transparent!important;
    color:rgb(15,57,111);
    box-shadow:none!important;
}
.jw-chat-compose-icon svg,
#jw-chat-attach-toggle svg,
#jw-chat-emoji-toggle svg{
    width:30px;
    height:30px;
    display:block;
    stroke-width:2.25;
}
.jw-chat-compose-icon:hover,
.jw-chat-compose-icon:focus-visible,
#jw-chat-attach-toggle:hover,
#jw-chat-attach-toggle:focus-visible,
#jw-chat-emoji-toggle:hover,
#jw-chat-emoji-toggle:focus-visible{
    background:rgba(15,57,111,.06)!important;
    color:rgb(15,57,111);
    outline:2px solid rgba(15,57,111,.18);
    outline-offset:0;
}

/* Selected attachment strip stays compact and disappears when JS clears it. */
.jw-chat-attachment-tools{
    margin-bottom:4px;
}
.jw-chat-attachment-selected{
    padding:4px 7px;
}
.jw-chat-attachment-selected[hidden]{
    display:none!important;
}

@media(max-width:760px){
    .jw-chat-compose-icon,
    #jw-chat-attach-toggle,
    #jw-chat-emoji-toggle{
        width:38px;
        height:38px;
        min-width:38px;
        min-height:38px;
        padding:0;
        background:transparent!important;
    }
    .jw-chat-compose-icon svg,
    #jw-chat-attach-toggle svg,
    #jw-chat-emoji-toggle svg{
        width:33px;
        height:33px;
    }
}


/* 042.4.6.5.5.1 FIRST-CLASS CHAT POLLS MVP */
#jw-chat-poll-toggle{background:transparent!important}
.jw-chat-poll-compose{
    margin:6px 0 8px;
    padding:10px;
    border:1px solid rgb(204,215,229);
    border-radius:10px;
    background:rgb(248,250,253);
}
.jw-chat-poll-compose[hidden]{display:none!important}
.jw-chat-poll-compose-head,.jw-chat-poll-compose-actions{
    display:flex;align-items:center;justify-content:space-between;gap:10px
}
.jw-chat-poll-compose-head{margin-bottom:8px}
.jw-chat-poll-compose label{font-weight:800;margin:6px 0 4px}
.jw-chat-poll-compose input{
    width:100%;box-sizing:border-box;border:1px solid rgb(188,201,219);border-radius:7px;
    padding:8px 10px;font:inherit;background:white;color:rgb(20,42,74)
}
.jw-chat-poll-option-list{display:grid;gap:6px;margin-top:6px}
.jw-chat-poll-compose-actions{margin-top:8px}
.jw-chat-poll-compose-actions button,#jw-chat-poll-cancel{
    border:1px solid rgb(25,82,158);border-radius:7px;padding:6px 10px;font-weight:800;
    background:white;color:rgb(15,57,111);cursor:pointer
}
#jw-chat-poll-create{background:rgb(25,82,158)!important;color:white!important}
#jw-chat-poll-error{display:block;color:rgb(165,34,34);font-weight:700;margin-top:6px}
.jw-chat-active-poll{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:8px 12px;border-bottom:1px solid rgb(226,231,239);background:rgb(255,249,218)
}
.jw-chat-active-poll[hidden]{display:none!important}
.jw-chat-active-poll>div{min-width:0}
.jw-chat-active-poll span{display:block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:rgb(103,82,0)}
.jw-chat-active-poll strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:rgb(35,47,65)}
.jw-chat-active-poll button{border:0;border-radius:7px;background:rgb(15,57,111);color:white;padding:6px 10px;font-weight:800;cursor:pointer;white-space:nowrap}
.jw-chat-poll-card{
    margin:8px 0 4px;padding:11px;border:1px solid rgb(181,201,226);border-radius:10px;background:white
}
.jw-chat-poll-card.is-jump-highlight{outline:3px solid rgb(244,196,0);outline-offset:2px}
.jw-chat-poll-card-head,.jw-chat-poll-foot,.jw-chat-poll-option-top{
    display:flex;align-items:center;justify-content:space-between;gap:10px
}
.jw-chat-poll-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:rgb(15,57,111)}
.jw-chat-poll-state{font-size:11px;font-weight:900;color:rgb(35,126,77)}
.jw-chat-poll-card.is-closed .jw-chat-poll-state{color:rgb(105,112,123)}
.jw-chat-poll-question{display:block;font-size:16px;line-height:1.25;margin:5px 0 9px;color:rgb(18,39,69)}
.jw-chat-poll-options{display:grid;gap:6px}
.jw-chat-poll-option{
    width:100%;text-align:left;border:1px solid rgb(200,211,225);border-radius:8px;background:rgb(250,251,253);
    color:rgb(30,48,73);padding:7px 8px;cursor:pointer
}
.jw-chat-poll-option:hover:not(:disabled){border-color:rgb(25,82,158);background:rgb(245,249,255)}
.jw-chat-poll-option.is-selected{border-color:rgb(25,82,158);box-shadow:inset 3px 0 0 rgb(244,196,0)}
.jw-chat-poll-option:disabled{cursor:default;opacity:1}
.jw-chat-poll-option-top span:first-child{font-weight:700}
.jw-chat-poll-option-top span:last-child{font-size:12px;color:rgb(86,97,113)}
.jw-chat-poll-meter{display:block;height:5px;margin-top:5px;border-radius:4px;background:rgb(229,234,241);overflow:hidden}
.jw-chat-poll-meter i{display:block;height:100%;background:rgb(25,82,158);border-radius:4px}
.jw-chat-poll-foot{margin-top:8px;font-size:12px;color:rgb(84,95,112)}
.jw-chat-poll-close{border:0;background:transparent;color:rgb(15,57,111);font-weight:800;cursor:pointer;padding:3px 0}
.jw-chat-poll-loading{font-size:13px;color:rgb(84,95,112)}
@media(max-width:760px){
    .jw-chat-active-poll{padding:7px 9px}
    .jw-chat-poll-card{padding:9px}
    .jw-chat-poll-question{font-size:15px}
}


/* 042.4.6.5.5.2 POLL DEADLINE + RESULT VISIBILITY + COMPOSER ICON REFINEMENT */

/* Composer utility icons: about 92 percent of the 5.5.1 glyph size, quieter at rest. */
.jw-chat-compose-icon,
#jw-chat-attach-toggle,
#jw-chat-emoji-toggle,
#jw-chat-poll-toggle{
    width:32px;
    height:32px;
    min-width:32px;
    min-height:32px;
    border:0!important;
    outline-offset:1px;
    background:transparent!important;
    color:rgb(76,91,112);
    box-shadow:none!important;
}
.jw-chat-compose-icon svg,
#jw-chat-attach-toggle svg,
#jw-chat-emoji-toggle svg{
    width:28px;
    height:28px;
    stroke-width:2.05;
}
.jw-chat-compose-icon:hover,
.jw-chat-compose-icon:focus-visible,
#jw-chat-attach-toggle:hover,
#jw-chat-attach-toggle:focus-visible,
#jw-chat-emoji-toggle:hover,
#jw-chat-emoji-toggle:focus-visible,
#jw-chat-poll-toggle:hover,
#jw-chat-poll-toggle:focus-visible{
    color:rgb(15,57,111);
    background:rgba(15,57,111,.045)!important;
}
.jw-chat-poll-glyph{
    width:25px;height:25px;display:grid;grid-template-rows:repeat(3,1fr);gap:2px;
    align-items:center;justify-items:stretch
}
.jw-chat-poll-glyph i{
    display:block;position:relative;height:3px;margin-left:7px;border-radius:2px;background:currentColor
}
.jw-chat-poll-glyph i:before{
    content:"";position:absolute;width:4px;height:4px;border:2px solid currentColor;border-radius:2px;
    left:-7px;top:-2px;background:transparent
}
.jw-chat-poll-settings{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:9px
}
.jw-chat-poll-settings label{display:grid;gap:4px;font-size:12px}
.jw-chat-poll-settings input,.jw-chat-poll-settings select{
    width:100%;box-sizing:border-box;border:1px solid rgb(188,201,219);border-radius:7px;
    padding:8px 9px;background:white;color:rgb(20,42,74);font:inherit
}
.jw-chat-poll-compose-note{font-size:11px;color:rgb(90,101,116);margin-top:5px}
@media(max-width:760px){
    .jw-chat-compose-icon,
    #jw-chat-attach-toggle,
    #jw-chat-emoji-toggle,
    #jw-chat-poll-toggle{
        width:35px;min-width:35px;height:35px;min-height:35px
    }
    .jw-chat-compose-icon svg,
    #jw-chat-attach-toggle svg,
    #jw-chat-emoji-toggle svg{width:29px;height:29px}
    .jw-chat-poll-settings{grid-template-columns:1fr}
}


/* 042.4.6.5.5.2.1 POLL COMPOSER CONTAINMENT + MULTI-OPEN-POLL NAVIGATION */

/* Keep long poll creation usable inside the fixed Chat composer shell. */
.jw-chat-poll-compose{
    max-height:min(52vh,500px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
}
.jw-chat-poll-compose-actions{
    position:sticky;
    bottom:0;
    z-index:3;
    margin:8px -10px -10px;
    padding:9px 10px 10px;
    border-top:1px solid rgb(220,227,236);
    background:rgb(248,250,253);
}
.jw-chat-poll-compose-note{
    padding-bottom:2px;
}

/* One poll keeps the existing banner. Multiple open polls expose a compact tray. */
.jw-chat-active-poll-summary{
    min-width:0;
    flex:1 1 auto;
}
.jw-chat-open-poll-tray{
    border-bottom:1px solid rgb(220,227,236);
    background:rgb(255,252,235);
    padding:8px 10px 9px;
    max-height:220px;
    overflow-y:auto;
    overscroll-behavior:contain;
}
.jw-chat-open-poll-tray[hidden]{display:none!important}
.jw-chat-open-poll-tray-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:6px;
    color:rgb(69,59,15);
}
.jw-chat-open-poll-tray-head>strong{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.045em;
}
#jw-chat-open-poll-tray-close{
    border:0;
    background:transparent;
    color:rgb(15,57,111);
    font-weight:800;
    cursor:pointer;
    padding:3px 4px;
}
.jw-chat-open-poll-list{
    display:grid;
    gap:5px;
}
.jw-chat-open-poll-row{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    text-align:left;
    border:1px solid rgb(225,214,155);
    border-radius:7px;
    background:white;
    color:rgb(30,42,59);
    padding:7px 9px;
    cursor:pointer;
}
.jw-chat-open-poll-row:hover,
.jw-chat-open-poll-row:focus-visible{
    border-color:rgb(25,82,158);
    background:rgb(250,252,255);
}
.jw-chat-open-poll-row-question{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
}
.jw-chat-open-poll-row-meta{
    white-space:nowrap;
    font-size:11px;
    color:rgb(91,98,109);
}
@media(max-width:760px){
    .jw-chat-poll-compose{
        max-height:44vh;
    }
    .jw-chat-open-poll-tray{
        max-height:180px;
    }
    .jw-chat-open-poll-row{
        grid-template-columns:1fr;
        gap:2px;
    }
    .jw-chat-open-poll-row-meta{
        white-space:normal;
    }
}


/* 042.4.6.5.5.2.1.1 OPEN-POLL OVERLAY PANEL PRESENTATION CORRECTION */

/*
The 5.5.2.1 tray was laid out in normal flow inside the constrained Chat shell.
That left only a tiny slice visible. 5.5.2.1.1 promotes it to an overlay
anchored over the message area so it receives useful space without changing
the proven message/composer height calculations.
*/
.jw-chat-open-poll-tray{
    position:absolute;
    z-index:40;
    left:0;
    right:0;
    top:84px;
    bottom:0;
    max-height:none;
    overflow:visible;
    padding:14px;
    border:0;
    background:rgba(16,31,52,.20);
    backdrop-filter:blur(1px);
    -webkit-backdrop-filter:blur(1px);
}
.jw-chat-open-poll-tray[hidden]{display:none!important}
.jw-chat-open-poll-tray-panel{
    width:min(680px,calc(100% - 16px));
    max-height:min(58vh,520px);
    margin:0 auto;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgb(198,209,224);
    border-radius:12px;
    background:white;
    box-shadow:0 10px 28px rgba(20,35,56,.22);
}
.jw-chat-open-poll-tray-head{
    flex:0 0 auto;
    margin:0;
    padding:11px 13px;
    border-bottom:1px solid rgb(220,227,236);
    background:rgb(255,249,218);
}
.jw-chat-open-poll-tray-head>div{
    min-width:0;
}
.jw-chat-open-poll-tray-head span{
    display:block;
    margin-bottom:1px;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:rgb(103,82,0);
}
.jw-chat-open-poll-tray-head>div>strong{
    display:block;
    font-size:16px;
    text-transform:none;
    letter-spacing:0;
    color:rgb(30,42,59);
}
#jw-chat-open-poll-tray-close{
    flex:0 0 auto;
    border:1px solid rgb(25,82,158);
    border-radius:7px;
    padding:5px 9px;
    background:white;
}
.jw-chat-open-poll-list{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    display:grid;
    gap:7px;
    padding:10px;
    background:rgb(248,250,253);
}
.jw-chat-open-poll-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    min-height:62px;
    padding:9px 10px;
    align-items:center;
    border:1px solid rgb(206,216,229);
    background:white;
}
.jw-chat-open-poll-row-copy{
    min-width:0;
    display:grid;
    gap:4px;
}
.jw-chat-open-poll-row-question{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.25;
    font-size:14px;
}
.jw-chat-open-poll-row-meta{
    white-space:normal;
    font-size:11px;
}
.jw-chat-open-poll-row-view{
    flex:0 0 auto;
    border-radius:7px;
    background:rgb(15,57,111);
    color:white;
    padding:6px 10px;
    font-size:12px;
    font-weight:900;
}
.jw-chat-open-poll-overlay-active{
    overflow:hidden;
}

/* The right-hand Chat pane already establishes the positioning context. */
.jw-chat-thread,
.jw-chat-thread-panel,
.jw-chat-conversation,
.jw-chat-main{
    position:relative;
}

@media(max-width:760px){
    .jw-chat-open-poll-tray{
        top:70px;
        padding:8px;
    }
    .jw-chat-open-poll-tray-panel{
        width:100%;
        max-height:62vh;
        border-radius:10px;
    }
    .jw-chat-open-poll-row{
        grid-template-columns:minmax(0,1fr) auto;
        min-height:58px;
        padding:8px 9px;
    }
    .jw-chat-open-poll-row-view{
        padding:6px 8px;
    }
}


/* 042.4.6.5.6.1 UNIVERSAL SAFE CHAT HYPERLINKS */
.jw-chat-message-link{
    color:rgb(15,82,160);
    text-decoration:underline;
    text-decoration-thickness:1px;
    text-underline-offset:2px;
    overflow-wrap:anywhere;
    word-break:break-word;
}
.jw-chat-message-link:hover,
.jw-chat-message-link:focus-visible{
    color:rgb(9,55,111);
    text-decoration-thickness:2px;
}
.jw-chat-message-link:focus-visible{
    outline:2px solid currentColor;
    outline-offset:2px;
    border-radius:2px;
}


/* 042.4.6.5.6.2 GOVERNED ATTACHED-PDF PREVIEW */
.jw-chat-attachment-pdf{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:min(100%,340px);max-width:100%}
.jw-chat-attachment-file-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.jw-chat-attachment-file-main strong{overflow-wrap:anywhere}
.jw-chat-attachment-file-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jw-chat-attachment-file-actions a,.jw-chat-pdf-preview-button{font:inherit;font-weight:700;color:inherit;background:transparent;border:0;padding:2px 0;text-decoration:underline;cursor:pointer}
.jw-chat-pdf-overlay[hidden]{display:none}
.jw-chat-pdf-overlay{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:20px}
.jw-chat-pdf-overlay-backdrop{position:absolute;inset:0;border:0;background:rgba(8,22,42,.64);cursor:pointer}
.jw-chat-pdf-panel{position:relative;width:min(1000px,94vw);height:min(820px,88vh);background:#fff;border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column}
.jw-chat-pdf-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #d7deea}
.jw-chat-pdf-panel-actions{display:flex;align-items:center;gap:12px}
.jw-chat-pdf-panel-actions a{font-weight:700}
.jw-chat-pdf-panel-actions button{border:0;background:transparent;font:inherit;font-weight:800;cursor:pointer;padding:5px 8px}
.jw-chat-pdf-panel iframe{display:block;width:100%;height:100%;border:0;background:#f3f5f8}
@media(max-width:760px){
 .jw-chat-attachment-pdf{align-items:flex-start;flex-direction:column}
 .jw-chat-pdf-overlay{padding:8px 8px 82px}
 .jw-chat-pdf-panel{width:100%;height:100%;border-radius:10px}
 .jw-chat-pdf-panel-head{padding:8px 10px}
}


/* 042.4.6.5.6.2.1 INLINE PDF FIRST-PAGE MESSAGE PREVIEW */
.jw-chat-attachment-pdf-inline{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    width:min(100%,520px);
    max-width:100%;
}
.jw-chat-pdf-inline-preview{
    position:relative;
    display:block;
    width:100%;
    height:360px;
    overflow:hidden;
    padding:0;
    border:1px solid rgba(15,48,88,.18);
    border-radius:10px;
    background:#eef2f6;
    cursor:pointer;
    text-align:left;
}
.jw-chat-pdf-inline-frame{
    display:block;
    width:100%;
    height:100%;
    border:0;
    pointer-events:none;
    background:#eef2f6;
}
.jw-chat-pdf-inline-overlay{
    position:absolute;
    right:10px;
    bottom:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#0d2d55;
    font-weight:800;
    box-shadow:0 1px 4px rgba(0,0,0,.15);
    opacity:.92;
}
.jw-chat-pdf-inline-preview:hover .jw-chat-pdf-inline-overlay,
.jw-chat-pdf-inline-preview:focus-visible .jw-chat-pdf-inline-overlay{
    opacity:1;
}
.jw-chat-pdf-inline-preview:focus-visible{
    outline:3px solid rgba(32,96,190,.35);
    outline-offset:2px;
}
.jw-chat-attachment-pdf-inline .jw-chat-attachment-file-main{
    padding:0 2px;
}
.jw-chat-attachment-pdf-inline .jw-chat-attachment-file-actions{
    padding:0 2px 2px;
}
@media(max-width:760px){
    .jw-chat-attachment-pdf-inline{width:100%}
    .jw-chat-pdf-inline-preview{height:300px}
}


/* 042.4.6.5.6.2.2.1 PWA SAFE PDF IMAGE PREVIEW CORRECTION */
/* Automatic first-page preview is now a normal authenticated image, not a native PDF iframe. */
.jw-chat-pdf-inline-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    pointer-events:none;
    background:#eef2f6;
}
.jw-chat-pdf-pwa-surface[hidden]{display:none}
.jw-chat-pdf-pwa-surface{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    background:#eef2f6;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    padding:12px;
}
.jw-chat-pdf-pwa-surface img{
    display:block;
    max-width:100%;
    height:auto;
    object-fit:contain;
    background:#fff;
    box-shadow:0 2px 14px rgba(0,0,0,.12);
}
.jw-chat-pdf-pwa-surface p{
    margin:0;
    padding:2px 8px 8px;
    color:#46566b;
    font-size:12px;
    text-align:center;
}


/* 042.4.6.5.7.1 GOVERNED CHAT MESSAGE EDIT DELETE IMPLEMENTATION */
.jw-chat-message-meta-right{display:inline-flex;align-items:center;gap:7px}
.jw-chat-edited-indicator{font-size:11px;font-style:italic;color:rgb(101,112,128)}
.jw-chat-message-actions-right{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-left:auto}
.jw-chat-message-edit,.jw-chat-message-delete{
    border:0;background:transparent;padding:3px 0;color:rgb(55,75,103);
    font:inherit;font-size:12px;cursor:pointer
}
.jw-chat-message-delete{color:rgb(143,54,48)}
.jw-chat-message-edit:hover,.jw-chat-message-delete:hover{text-decoration:underline}
.jw-chat-message.is-deleted{opacity:.82}
.jw-chat-message-deleted-placeholder{font-style:italic;color:rgb(101,112,128)}
.jw-chat-reply-preview.is-deleted-reference span{font-style:italic;color:rgb(101,112,128)}
.jw-chat-message.is-deleted .jw-chat-reactions{display:none}
.jw-chat-edit-overlay[hidden]{display:none}
.jw-chat-edit-overlay{position:fixed;inset:0;z-index:10040;display:flex;align-items:center;justify-content:center;padding:18px}
.jw-chat-edit-backdrop{position:absolute;inset:0;background:rgba(7,25,49,.55)}
.jw-chat-edit-panel{position:relative;z-index:1;width:min(560px,100%);background:#fff;border-radius:14px;padding:14px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.jw-chat-edit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.jw-chat-edit-head strong{font-size:18px}
.jw-chat-edit-head button{border:0;background:transparent;font-weight:800;cursor:pointer}
.jw-chat-edit-panel textarea{box-sizing:border-box;width:100%;min-height:130px;max-height:45vh;resize:vertical;padding:10px;border:1px solid rgb(183,195,211);border-radius:9px;font:inherit}
.jw-chat-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.jw-chat-edit-error{margin-top:8px;color:rgb(159,37,28);font-weight:700;font-size:13px}
@media(max-width:760px){
 .jw-chat-message-actions-right{gap:8px}
 .jw-chat-message-edit,.jw-chat-message-delete{font-size:12px}
 .jw-chat-edit-overlay{padding:12px}
}


/* 042.4.6.5.8.2 FIRST-CLASS WORD/EXCEL ATTACHMENT PREVIEWS */
.jw-chat-attachment-office{display:flex;align-items:center;gap:10px;min-width:min(100%,340px);max-width:100%;padding:8px}
.jw-chat-office-inline-preview{position:relative;flex:0 0 84px;height:76px;border:1px solid rgba(15,57,111,.18);border-radius:8px;background:#f4f7fb;cursor:pointer;overflow:hidden;padding:0}
.jw-chat-office-icon{display:flex;align-items:center;justify-content:center;height:100%;font-size:14px;font-weight:900;color:rgb(15,57,111);letter-spacing:.5px}
.jw-chat-office-inline-overlay{position:absolute;left:0;right:0;bottom:0;padding:4px 3px;background:rgba(8,32,65,.82);color:#fff;font-size:10px;font-weight:800;text-align:center}
.jw-chat-office-overlay[hidden]{display:none}
.jw-chat-office-overlay{position:fixed;inset:0;z-index:10055;display:flex;align-items:center;justify-content:center;padding:20px}
.jw-chat-office-overlay-backdrop{position:absolute;inset:0;border:0;background:rgba(8,22,42,.64);cursor:pointer}
.jw-chat-office-panel{position:relative;width:min(1100px,95vw);height:min(850px,90vh);background:#fff;border-radius:12px;box-shadow:0 18px 60px rgba(0,0,0,.3);overflow:hidden;display:flex;flex-direction:column}
.jw-chat-office-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #d7deea}
.jw-chat-office-panel-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-chat-office-panel-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.jw-chat-office-panel-actions a{font-weight:700}
.jw-chat-office-panel-actions button{border:0;background:transparent;font:inherit;font-weight:800;cursor:pointer;padding:5px 8px}
.jw-chat-office-panel iframe{display:block;width:100%;height:100%;border:0;background:#f3f6fa}
@media(max-width:760px){
 .jw-chat-attachment-office{align-items:center}
 .jw-chat-office-inline-preview{flex-basis:72px;height:66px}
 .jw-chat-office-overlay{padding:8px 8px 82px}
 .jw-chat-office-panel{width:100%;height:100%;border-radius:10px}
 .jw-chat-office-panel-head{padding:8px 10px}
 .jw-chat-office-panel-actions{gap:8px}
}


/* 042.4.6.5.8.2.1 INLINE OFFICE ATTACHMENT PREVIEW + DOCUMENT FORMATTING CORRECTION */
.jw-chat-attachment-office{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:7px;
    width:min(100%,430px);
    min-width:0;
    max-width:430px;
    padding:8px;
    align-items:stretch;
}
.jw-chat-office-inline-surface{
    position:relative;
    width:100%;
    height:150px;
    overflow:hidden;
    border:1px solid rgba(15,57,111,.16);
    border-radius:8px;
    background:#fff;
}
.jw-chat-office-inline-frame{
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:#fff;
    pointer-events:none;
}
.jw-chat-office-inline-preview{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    border-radius:8px;
    background:transparent;
    cursor:pointer;
    padding:0;
}
.jw-chat-office-inline-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:7px 8px;
    background:linear-gradient(to bottom,rgba(8,32,65,0),rgba(8,32,65,.92) 45%);
    color:#fff;
    font-size:11px;
    font-weight:800;
    text-align:center;
    padding-top:22px;
}
.jw-chat-attachment-office .jw-chat-attachment-file-main{
    padding:0 2px 1px;
}
.jw-chat-attachment-office .jw-chat-attachment-file-main strong{
    white-space:normal;
    line-height:1.2;
}
@media(max-width:760px){
    .jw-chat-attachment-office{width:100%;max-width:100%;padding:6px}
    .jw-chat-office-inline-surface{height:132px}
}


/* 042.4.6.5.9.3 CHAT RICH-LINK CARD INTEGRATION */
.jw-chat-rich-link-card{
    display:block;
    margin-top:8px;
    padding:10px 12px;
    border:1px solid rgba(20,55,92,.18);
    border-radius:10px;
    background:rgba(255,255,255,.72);
    color:inherit;
    text-decoration:none;
    max-width:560px;
}
.jw-chat-rich-link-card:hover,
.jw-chat-rich-link-card:focus{
    border-color:rgba(20,55,92,.42);
    text-decoration:none;
}
.jw-chat-rich-link-site,
.jw-chat-rich-link-destination{
    display:block;
    font-size:11px;
    line-height:1.3;
    opacity:.72;
}
.jw-chat-rich-link-title{
    display:block;
    margin-top:3px;
    font-size:14px;
    line-height:1.3;
}
.jw-chat-rich-link-description{
    display:block;
    margin-top:4px;
    font-size:12px;
    line-height:1.4;
}
.jw-chat-rich-link-destination{margin-top:6px;}

/* 042.4.6.5.9.4 GOVERNED OPEN GRAPH IMAGE PREVIEW */
.jw-chat-rich-link-image{
    display:block;
    width:100%;
    max-height:220px;
    object-fit:cover;
    border-radius:8px;
    margin:0 0 9px 0;
}

/* 042.4.6.7.2.1.4 CHAT RECIPIENT LIVE FILTERING */
.jw-chat-filter-help{margin:6px 0 0;color:#5b6878;font-size:.9rem}
.jw-chat-filter-empty{margin:14px 0;color:#5b6878}
.jw-chat-group-create>label{display:block;font-weight:800;margin:16px 0 6px}
.jw-chat-group-create>label span{font-weight:400}
.jw-chat-group-create>#jw-chat-group-title{box-sizing:border-box;width:100%;max-width:520px;border:1px solid rgb(188,201,219);border-radius:8px;padding:11px 12px;font:inherit;color:inherit;background:#fff}
.jw-chat-group-create>#jw-chat-group-title:focus,.jw-chat-search-row input:focus{outline:2px solid rgba(21,91,180,.22);border-color:rgb(21,91,180)}

