.project-chat{margin:24px 0;padding:24px;border:1px solid #dce5de;border-radius:12px;background:#fff}
.mention-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.mention-suggestions:empty{display:none}
.project-chat .chat-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:18px 0}
.project-chat label{display:flex;flex-direction:column;gap:7px;font-size:13px;margin:0 0 12px}
.project-chat .chat-toolbar label{flex:1;min-width:180px;margin:0}
.project-chat input,.project-chat textarea{width:100%;padding:10px;border:1px solid #c5d1c9;border-radius:6px;font:inherit;box-sizing:border-box}
.project-chat button{padding:10px 14px;border:1px solid #c5d1c9;border-radius:6px;background:#edf3ee;color:#23362d;cursor:pointer;font:inherit}
.project-chat button:disabled{opacity:.55;cursor:wait}
.chat-messages{max-height:400px;overflow:auto;margin:15px 0;overscroll-behavior:contain}
.chat-message{padding:13px 15px;margin:10px 0;background:#f4f6f3;border-left:3px solid #a0b3a6;border-radius:6px}
.chat-message.grizzly{background:#edf5ef;border-color:#285b43}
.chat-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#56695e}
.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;line-height:1.5}
.chat-status{font-size:13px;min-height:1em}
.project-chat button{background:#f2f2f2;color:#0f110c;border-color:#d5d5d5}
.chat-message{background:#f2f2f2;border-color:#a5a5a5}.chat-message.grizzly{background:#fff6f7;border-color:#e6192d}
.chat-meta{color:#5a5a5a}

/* One continuous history, newest first; individual entries are plain rows. */
.chat-messages{height:280px;max-height:40vh;min-height:150px;border:1px solid #dedede;border-radius:7px;background:#fff;padding:0 14px}
.chat-message,.chat-message.grizzly{margin:0;padding:12px 0;border:0;border-bottom:1px solid #e5e5e5;border-radius:0;background:transparent}
.chat-message.grizzly .chat-meta strong{color:#c41225}
.chat-message:last-child{border-bottom:0}
@media(max-width:700px){.project-chat{padding:14px;margin:16px 0}.project-chat .chat-toolbar{gap:10px}.project-chat .chat-toolbar label{min-width:0;flex-basis:100%}.project-chat input,.project-chat select,.project-chat textarea{font-size:16px;min-height:44px;max-width:100%}.project-chat button{min-height:44px}.chat-messages{padding:0 10px;height:240px}.chat-meta{font-size:12px}.chat-message p{font-size:14px}.request-status button{min-height:44px}}
.request-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#555;margin-top:8px}.request-status button{padding:4px 9px;font-size:12px}.project-chat select{padding:8px;border:1px solid #ddd;border-radius:5px}.approval-status>details{border:1px solid #ddd;background:#fff;border-radius:7px;padding:10px 14px;margin:8px 0}.approval-status label{display:block;margin:10px 0}.approval-status textarea{width:100%;min-height:65px}.approval-status p{white-space:pre-wrap;font-size:13px}.unread-badge{font-size:11px;background:#fff0f1;color:#c41225;padding:3px 7px;border-radius:5px;white-space:nowrap}.project-filters{margin:0 0 12px}.project-filters .filters{margin:8px 0}.project-filters summary{font-size:13px}
