.control-communications{border-top:4px solid #008c9c}.communication-filters{display:flex;gap:16px;margin:12px 0}.communication-filters label{flex:1;max-width:320px}.communication-list{max-height:560px;overflow:auto;overscroll-behavior:contain}.communication-item{padding:18px 4px;border-top:1px solid #dce5ed}.communication-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.communication-item p,.feedback-event p{white-space:pre-wrap;overflow-wrap:anywhere}.communication-item .actions{gap:8px;margin-top:12px;flex-wrap:wrap}.feedback-receipt{display:inline-block;border-radius:8px;padding:5px 10px;font-weight:650;font-size:13px}.feedback-receipt.accepted{background:#def5e8;color:#136b40}.feedback-receipt.pending{background:#fff0da;color:#8a4b00}.feedback-accept{background:#16804a}.feedback-event{border-left:3px solid #c6dfdf;padding:8px 12px;margin:8px 0}.feedback-event p{margin:5px 0}.map-comment-item{overflow-wrap:anywhere}#worker-map-inbox summary{padding:12px 0}#worker-map-inbox .map-comment-item{margin:8px 0}#feedback-dialog-actions{flex-wrap:wrap}@media(max-width:640px){.communication-filters{flex-direction:column;gap:8px}.communication-filters label{max-width:none}.communication-item .actions>*{min-height:44px}.communication-list{max-height:520px}.control-communications .workday-panel-heading{align-items:stretch}.control-communications .workday-panel-heading>.actions{flex-wrap:wrap}}

@media(max-width:640px){.communication-item .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.communication-item .actions>*{width:auto;min-width:0;margin:0}.communication-item .actions>a{grid-column:1 / -1}}

/* The manager inbox keeps everyday actions visible and secondary controls folded. */
.control-communications.panel{padding:14px 18px}
.control-communications>.workday-panel-heading{gap:8px;margin-bottom:8px;align-items:center}
.control-communications>.workday-panel-heading h2{margin:0;font-size:17px}
.control-communications [data-communication-count]{margin:2px 0 0;font-size:12px}
.control-communications>.workday-panel-heading>.actions{gap:6px;margin:0;align-items:center}
.control-communications>.workday-panel-heading button{min-height:36px;padding:6px 10px;font-size:13px}
.control-communications .communication-filters{gap:12px;margin:6px 0 10px;align-items:center}
.control-communications .communication-filters label{display:flex;gap:7px;align-items:center;margin:0;max-width:300px;min-width:0;font-size:12px}
.control-communications .communication-filters select{min-width:0;margin:0;min-height:36px;padding:6px 8px;font-size:13px}
.control-communications .communication-item{padding:10px 0}
.control-communications .communication-heading{gap:3px 8px;line-height:1.35;font-size:13px}
.control-communications .communication-heading strong{font-size:14px}
.control-communications .communication-meta{font-size:12px}
.control-communications .feedback-receipt{padding:3px 7px;font-size:12px;border-radius:6px}
.control-communications .communication-body{margin:6px 0;line-height:1.4}
.control-communications .communication-history{margin:5px 0;font-size:13px}
.control-communications .communication-history summary{cursor:pointer;padding:3px 0}
.control-communications .feedback-event{margin:5px 0;padding:5px 9px}
.control-communications .communication-item blockquote{margin:6px 0;padding:5px 9px}
.control-communications .communication-item .actions{display:flex;gap:5px;align-items:center;margin:6px 0 0;flex-wrap:wrap}
.control-communications .communication-item .actions button,.control-communications .communication-item .actions a,.control-communications .communication-more>summary{min-height:34px;padding:6px 9px;font-size:12px;line-height:1.3;margin:0;width:auto}
.control-communications .communication-item .actions>button,.control-communications .communication-item .actions>a{flex:0 0 auto}
.control-communications .communication-more{margin:0;min-width:0}
.control-communications .communication-more>summary{display:flex;align-items:center;gap:5px;cursor:pointer;border:1px solid #dce5e1;border-radius:7px;color:#29574b;font-weight:650;background:#fff;list-style:none}
.control-communications .communication-more>summary::-webkit-details-marker{display:none}
.control-communications .communication-more>summary::after{content:'▾'}
.control-communications .communication-more[open]>summary::after{content:'▴'}
.control-communications .communication-more[open]{flex-basis:100%}
.control-communications .communication-more[open]>summary{width:max-content}
.control-communications [data-communication-sync]{margin:7px 0 0;font-size:11px}
@media(max-width:640px){
 .control-communications.panel{padding:12px 8px}
 .control-communications>.workday-panel-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:stretch}
 .control-communications>.workday-panel-heading>.actions button{flex:1 1 120px}
 .control-communications>.workday-panel-heading button{min-height:44px}
 .control-communications .communication-filters{flex-direction:row;gap:8px;align-items:stretch}
 .control-communications .communication-filters label{display:block;flex:1;max-width:none}
 .control-communications .communication-filters select{display:block;width:100%;min-height:44px;margin-top:2px}
 .control-communications .communication-meta{flex-basis:100%;margin-top:2px}
 .control-communications .communication-item .actions button,.control-communications .communication-item .actions a,.control-communications .communication-more>summary{min-height:44px}
 .control-communications .communication-history summary{min-height:44px;display:flex;align-items:center}
 .control-communications .communication-history summary::before{content:"▸";margin-right:6px}
 .control-communications .communication-history[open] summary::before{content:"▾"}
}

/* Chat lives outside the board flow; native dialog keeps focus and Escape reliable. */
.communication-tab{position:fixed;right:0;top:46%;z-index:45;min-height:64px;min-width:44px;padding:14px 10px;border-radius:12px 0 0 12px;background:#007e8d;color:#fff;box-shadow:0 3px 14px #183b4a33;writing-mode:vertical-rl;font-size:15px}
body.map-fullscreen-open .communication-tab{display:none}
body:has(.communication-drawer[open]){overflow:hidden}
dialog.communication-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(520px,100%);max-width:100%;height:100%;height:100dvh;max-height:100%;padding:0;border:0;border-radius:16px 0 0 16px;background:#fff;box-shadow:-8px 0 32px #183b4a33;overflow:hidden}
dialog.communication-drawer[open]{display:flex;flex-direction:column;animation:communication-slide-in .18s ease-out}
dialog.communication-drawer::backdrop{background:#102d3a55}
.communication-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px 16px;border-bottom:1px solid #dce5ed;background:#f3f8f9}
.communication-drawer-header h2{font-size:17px;margin:0;line-height:1.3}
.communication-drawer-header button{flex:none;min-height:48px;padding:10px 14px}
.communication-drawer .control-communications.panel{flex:1;min-height:0;margin:0;padding:12px 16px max(16px,env(safe-area-inset-bottom));border:0;border-radius:0;overflow:auto;overscroll-behavior:contain}
.communication-drawer .control-communications>.workday-panel-heading h2{display:none}
.communication-drawer .control-communications>.workday-panel-heading{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.communication-drawer .workday-panel-heading>.actions{display:flex;flex-wrap:wrap}
.communication-drawer .workday-panel-heading>.actions button{flex:1;min-height:44px}
.communication-drawer .communication-list{max-height:none;overflow:visible}
.communication-drawer .communication-filters label{display:block}
.communication-drawer .communication-filters select{width:100%;margin-top:3px}
@keyframes communication-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){dialog.communication-drawer[open]{animation:none}}
@media(max-width:600px){
 dialog.communication-drawer{width:100%;border-radius:0}
 .communication-drawer-header{padding-left:12px;gap:8px}
 .communication-drawer-header h2{font-size:16px}
 .communication-drawer-header button{padding:10px;min-height:48px}
 .communication-drawer .control-communications.panel{padding-left:12px;padding-right:max(12px,env(safe-area-inset-right))}
}

.communication-drawer .zone-conversation.panel{margin:16px 0 0;padding:12px 0 0;border:0;border-top:1px solid #dce5ed;border-radius:0}
.communication-drawer .zone-conversation h2{font-size:16px;margin:0 0 8px}
.communication-drawer .zone-conversation>.workday-panel-heading{display:block}
