/* A channel cited in a conversation with guests that one of them cannot read: plain muted text, no link. */
@layer components {
  .mention.mention--inaccessible { background: var(--muted); color: var(--muted-foreground); padding: 0 3px; border-radius: 3px; }
  .message:is(:target, .is-mentioning-me) .mention.mention--channel.mention--inaccessible { background: var(--muted); box-shadow: none; }
}

/* The « open to the project's guests » box of the new-channel form. */
@layer components {
  .guest-box { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--guest); border-radius: var(--radius-sm); background: var(--guest-soft); }
  .guest-box[hidden] { display: none; }
  .guest-box label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
  .guest-box input { margin-top: 2px; accent-color: var(--primary); }
  .guest-box .hint { margin: 4px 0 0; }
}

/* The « Invité » text badge, on the model of the agent's. */
@layer components {
  .guest-badge { display: inline-block; padding: 1px 5px; border-radius: 4px; background: var(--guest-soft); color: var(--guest); font-size: 0.85em; font-weight: 700; white-space: nowrap; }
  .member-row-company { color: var(--muted-foreground); font-weight: 400; }
}

/* The team's reminder of a client in the channel: a band under the header, an icon in the sidebar. */
@layer components {
  .guest-band { display: flex; align-items: center; gap: 8px; flex: none; padding: 7px 14px; border-bottom: 1px solid var(--border); border-left: 3px solid var(--guest); background: var(--guest-soft); color: var(--foreground); font-size: 13px; }
  .guest-band svg { flex: none; color: var(--guest); }
  .sidebar-guests { display: inline-flex; flex: none; margin-left: auto; color: var(--guest); }
  .sidebar-guests + .sidebar-count, .sidebar-guests + .sidebar-dot { margin-left: 6px; }
}

/* In the search palette and the new-message dialog the badge sits in a flex row: it never shrinks. */
@layer components {
  :is(.search-palette-text, .new-message-option) .guest-badge { flex: none; }
}
