.communications{display:grid;gap:1rem;min-width:0}
.comm-tabs,.comm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}
.comm-tab,.comm-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.45rem .85rem;border:1px solid var(--line);border-radius:.65rem;color:var(--text);font-weight:650;text-decoration:none;background:var(--paper)}
.comm-tab[aria-current=page]{background:var(--ink);border-color:var(--ink);color:#fff}
.comm-tab:hover,.comm-back:hover,.comm-item:hover{border-color:var(--primary);text-decoration:none}
.comm-card{background:var(--paper);border:1px solid var(--line);border-radius:.85rem;padding:clamp(.75rem,2vw,1.4rem);display:grid;gap:.85rem;align-content:start;min-width:0}
.comm-card h2,.comm-card h3,.comm-card p{margin:0}
.comm-form,.comm-receipt,.comm-chat{display:grid;gap:.85rem;min-width:0}
.comm-form .btn,.comm-search .btn{justify-self:start}
.comm-search{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}
.comm-search label{flex:1 1 10rem;min-width:0}
.comm-form :is(input,select,textarea),.comm-search input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.comm-item{display:flex;align-items:center;justify-content:space-between;gap:.65rem;min-height:54px;border:1px solid var(--line);border-radius:.65rem;padding:.6rem .85rem;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.comm-item small,.comm-muted{display:block;color:var(--muted)}
.comm-unread,.comm-tag{font-weight:650;font-size:.84em;border-radius:999px;padding:.25rem .65rem;background:var(--wash);color:var(--text)}
.comm-unread{background:var(--ink);color:white}
.comm-bubble,.comm-publication{border-inline-start:3px solid var(--line);padding:.75rem .95rem;background:var(--wash);border-radius:.35rem;overflow-wrap:anywhere}
.comm-bubble.is-mine{border-inline-start-color:var(--primary)}
.comm-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.comm-detail>summary{min-height:44px;display:list-item;cursor:pointer;font-weight:650;color:var(--text)}
.comm-empty{color:var(--muted)}
@media(max-width:520px){.comm-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr))}.comm-tab{padding:.4rem}.comm-search label{flex-basis:100%}.comm-search .btn{flex:1}}
