.workspace-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-width: 0; }
.workspace-bar #notifications-button { display: inline-flex; gap: 5px; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 34px; height: 32px; padding: 4px 6px; border: 1px solid transparent; color: #f4edf5; background: transparent; border-radius: 6px; }
.workspace-bar #notifications-button:hover, .workspace-bar #notifications-button[aria-expanded="true"] { background: #ffffff18; border-color: #ffffff30; }
.workspace-bar #notifications-button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
#notifications-count, .conversation-unread { min-width: 19px; border-radius: 12px; padding: 1px 6px; line-height: 17px; font-size: 11px; font-weight: 750; text-align: center; }
#notifications-count { background: #ed705f; color: #201525; }
.conversation-list button > .conversation-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.conversation-list button.has-unread { color: white; font-weight: 750; }
.conversation-list button.has-unread.active { color: #34213c; }
.conversation-list button > .conversation-unread { margin-left: auto; flex: 0 0 auto; background: #f2e9f4; color: #43234c; overflow: visible; }
.conversation-list button > .conversation-unread.has-mentions { background: #fac7bd; color: #57251d; }
.message-notifications { position: fixed; top: 48px; right: 14px; z-index: 45; width: min(380px, calc(100vw - 24px)); border: 1px solid #ded8e1; border-radius: 10px; background: #fff; color: #251e29; box-shadow: 0 12px 38px #22132830; overflow: hidden; }
.notifications-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #ebe7ed; }
.notifications-heading h2 { margin: 0; font-size: 15px; }
.notification-list { overflow: auto; max-height: min(520px, 65vh); padding: 6px; }
.notification-conversation { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; text-align: left; padding: 12px; border: 0; border-radius: 6px; background: white; color: #251e29; }
.notification-conversation:hover, .notification-conversation:focus-visible { background: #f3eef7; }
.notification-conversation strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-detail { font-size: 12px; color: #716679; grid-row: 2; }
.notification-row-count { grid-column: 2; grid-row: 1 / 3; align-self: center; border-radius: 12px; background: #5c3469; color: white; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.notifications-empty { padding: 30px 18px; text-align: center; }
.notifications-empty p { font-size: 13px; line-height: 1.5; color: #73667b; margin-bottom: 4px; }
.message-new-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 9px; color: #b63c23; font-size: 12px; font-weight: 700; user-select: none; }
.message-new-divider::before, .message-new-divider::after { content: ''; height: 1px; background: #d75b42; flex: 1; }
.message-new-divider span { white-space: nowrap; }
.chat-pane .load-earlier { margin-top: 44px; }
.unread-banner { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; max-width: calc(100% - 28px); background: #1d648a; color: #fff; border-radius: 18px; box-shadow: 0 2px 7px #14354526; overflow: hidden; }
.unread-banner button { background: transparent; color: inherit; border: 0; border-radius: 0; padding: 7px 13px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.unread-banner button:hover { background: #ffffff18; }
.unread-banner button:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.unread-banner #jump-unread { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.unread-banner #mark-conversation-read { border-left: 1px solid #ffffff40; flex: 0 0 auto; }
.thread-unread-count { color: #1d648a; background: #e5f0f7; border-radius: 8px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.thread-panel .timeline-wrap { min-height: 0; }
.thread-panel .timeline-wrap > .messages { width: 100%; }
@media (max-width: 1200px) { .workspace-bar { grid-template-columns: 205px minmax(180px, 1fr) auto; } }
@media (max-width: 700px) {
  .workspace-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
  .workspace-actions { gap: 0; }
  .message-notifications { right: 8px; top: 46px; }
  .unread-banner { max-width: calc(100% - 14px); }
  .unread-banner button { padding: 7px 10px; font-size: 11px; }
}
