/* Phase 2G floating, minimizable PR chat. No message content stored in browser storage. */
.prismChatDock{position:fixed;z-index:10030;right:22px;bottom:20px;pointer-events:none;font-family:Inter,'Segoe UI',Arial,sans-serif;color:#164750}
.prismChatDock>*{pointer-events:auto}
.prismChatBubble{display:flex;gap:10px;align-items:center;background:linear-gradient(110deg,#057c7a,#0daea0);border:1px solid #59c9c0;color:white;padding:12px 16px;border-radius:30px;font-size:14px;font-weight:800;box-shadow:0 10px 26px #056b7280;cursor:pointer;margin-left:auto;min-height:45px}
.prismChatBubble>span:first-child{font-size:19px}.prismChatBadge,.prismChatNavBadge{display:inline-flex;align-items:center;justify-content:center;padding:2px 6px;border-radius:12px;min-width:20px;background:#ef6676;color:white;font-size:11px;font-weight:800}
.prismChatNavBadge{margin-left:auto}
.prismChatPanel{position:absolute;bottom:55px;right:0;width:min(400px,calc(100vw - 24px));height:min(560px,calc(100dvh - 100px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:18px;box-shadow:0 16px 55px rgba(0,78,81,.24);border:1px solid #a9dcd8}
.prismChatDock[data-position="top"] .prismChatPanel{position:fixed;bottom:auto;top:76px;right:22px;height:min(560px,calc(100dvh - 100px))}
.prismChatHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(113deg,#006d73,#009d91);color:#fff;padding:13px 15px;flex:none}
.prismChatHeader strong{display:block;font-size:15px}.prismChatHeader small{display:block;color:#d7fcf8;font-size:11px;margin-top:3px}
.prismChatControls{display:flex;gap:6px}.prismChatControls button{width:31px;height:31px;border-radius:8px;border:1px solid #cafff450;background:#ffffff1e;color:white;font-size:18px;cursor:pointer}
.prismChatControls button:hover{background:#ffffff38}
.prismChatPick{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:end;gap:7px;padding:12px 12px 10px;border-bottom:1px solid #deeeec;background:#f7fffd;flex:none}
.prismChatPick label{grid-column:1 / -1;font-size:11px;font-weight:800;color:#29676b}
.prismChatPick select{width:100%;min-width:0;height:35px;border:1px solid #b3ddd8;border-radius:8px;padding:6px;font-size:12px;color:#184951;background:#fff}
.prismChatPick button{background:#fff;border:1px solid #b3ddd8;border-radius:9px;height:35px;color:#0b827e;font-size:20px;cursor:pointer}
.prismChatMessages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:13px 13px 18px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#effbf9 0%,#f8fcfc 100%)}
.prismChatPlaceholder{padding:18px 12px;text-align:center;font-size:13px;color:#68828a;line-height:1.55}
.prismChatMsg{max-width:89%;align-self:flex-start;border-radius:13px 13px 13px 4px;padding:10px 12px;background:#fff;border:1px solid #deedeb;box-shadow:0 2px 7px #0077780a;word-break:break-word}
.prismChatMsg.own{background:#d5f7f0;border:1px solid #a6e1d8;align-self:flex-end;border-radius:13px 13px 4px 13px}
.prismChatMsg.pending{opacity:.75}.prismChatMsg.error{border-color:#df9ba5;background:#fff5f5}
.prismChatMsg .who{font-size:10px;color:#377879;font-weight:800;margin-bottom:4px}
.prismChatMsg .body{white-space:pre-wrap;font-size:13px;color:#234a56;line-height:1.45}
.prismChatMsg .meta{font-size:10px;color:#758c92;text-align:right;margin-top:6px}
.prismChatMsg .retry{background:transparent;color:#af3646;border:0;font-size:11px;cursor:pointer;text-decoration:underline;display:inline-block;padding:5px 0 0}
.prismChatStatus{color:#677f83;background:#fff;min-height:18px;padding:3px 12px 1px;font-size:11px;flex:none}
.prismChatStatus.error{color:#b12e48}
.prismChatComposer{display:flex;align-items:flex-end;gap:8px;padding:11px;background:#fff;border-top:1px solid #deeeed;flex:none}
.prismChatComposer textarea{flex:1;resize:none;border:1px solid #b9deda;border-radius:10px;padding:10px;min-height:45px;max-height:125px;color:#194850;font-size:13px;line-height:1.35}
.prismChatComposer button{flex:none;border:0;background:linear-gradient(100deg,#0a8d88,#009c8a);color:#fff;border-radius:10px;padding:12px 16px;font-weight:750;cursor:pointer}
.prismChatComposer button:disabled{background:#bfd9d5;cursor:not-allowed}
.visuallyHidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){.prismChatDock{right:9px;bottom:9px}.prismChatPanel{width:calc(100vw - 18px);height:min(75dvh,560px);right:0}.prismChatDock[data-position="top"] .prismChatPanel{top:8px;right:9px;height:calc(100dvh - 80px)}.prismChatBubble{min-height:42px;padding:10px 14px}}
@media(prefers-reduced-motion:reduce){.prismChatPanel,.prismChatBubble{transition:none!important}}

/* Phase 2AR private PR chat attachment controls */
.prismChatComposer #prismChatAttach{font-size:22px;display:inline-flex;align-items:center;justify-content:center;
 padding:0;width:43px;height:43px;min-width:43px;border:1px solid #85cfc5;border-radius:12px;
 color:#0a746b;background:linear-gradient(140deg,#eafffb,#b8e8df);box-shadow:inset 0 2px 3px #fff,0 3px 9px #08796a20;cursor:pointer}
.prismChatComposer #prismChatAttach:hover:not(:disabled){filter:brightness(1.06);box-shadow:0 0 10px #16c5aa77,inset 0 1px 4px #fff}
.prismChatComposer #prismChatAttach:disabled{opacity:.38;cursor:not-allowed}
.prismChatAttachment{margin-top:7px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center;
 background:#ffffffbd;border:1px solid #a8ddd5;border-radius:10px;padding:7px 8px;font-size:11px}
.prismChatAttachment .name{min-width:0;overflow-wrap:anywhere;font-weight:700;color:#164c51}
.prismChatAttachment .attachmentSize{font-size:10px;color:#627c80;font-weight:500}
.prismChatAttachment button{background:#e2f6f1;border:1px solid #9edbd0;border-radius:8px;
 padding:6px 8px;color:#007869;font-size:11px;font-weight:800;cursor:pointer}
.prismChatAttachment button:hover{background:#b9eee2}
.prismChatImgPreview{display:block;width:100%;max-height:210px;object-fit:contain;margin-top:8px;border-radius:8px;cursor:zoom-in}
@media(max-width:650px){.prismChatComposer #prismChatAttach{min-width:40px;width:40px;height:42px}}

/* Phase 2AR.1: reversible sending state and server-enforced message unsend. */
.prismChatMsg .unsend,.prismChatMsg .discard{border:0;background:transparent;cursor:pointer;
 text-decoration:underline;font-size:11px;padding:5px 9px 0 0;display:inline-block}
.prismChatMsg .unsend{color:#9d3957}.prismChatMsg .discard{color:#637a86}
.prismChatMsg .unsend:hover,.prismChatMsg .discard:hover{filter:brightness(.72)}
