/*
 * Chat: the Rocket.Chat of the company as an app of the desk (js/shell/chat.js). The window, the list on the left and
 * the bar come from Pošta (css/mail.css), the bubbles and the field from Orbit (css/theme.css, css/orbit.css).
 */
/* the mark fills its tile in the dock and on the desk, as the marks of HRM and Pošta */
.chat-win { --chat-accent: #f5233f; }
:root[data-theme="light"] .chat-win { --chat-accent: #e50026; }
/* the red dot of the mark lights only while something is unread (js/shell/chat.js watchChatUnread) */
.chat-mark__dot { display: none; }
body.has-chat-unread .chat-mark__dot { display: block; }
svg.chat-mark { display: block; width: 100% !important; height: 100% !important; }
.desk-app--chat .desk-app__icon { background: none; border: 0; padding: 0; overflow: visible; }
.chat-win .mail-body { grid-template-columns: 260px minmax(0, 1fr); }
.chat-rooms { gap: 1px; padding: 14px 10px; }
.chat-room { padding: 8px 10px; }
.chat-room__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room__sign { flex: none; width: 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
.chat-room__sign svg { width: 13px; height: 13px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-linecap: round; }
.chat-room.is-unread { color: var(--text-strong); font-weight: 650; }
.chat-room__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--chat-accent, #f5233f); }
.chat-none { margin: 0; padding: 10px; font-size: 13px; color: var(--text-muted); }
.chat-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.chat-head { padding: 14px 28px; border-bottom: 1px solid var(--line); }
.chat-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 650; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread { gap: 12px; }
.chat-msg { max-width: min(72%, 760px); }
.chat-author { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0 0 2px 4px; }
.chat-file { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.chat-system { align-self: center; margin: 0; font-size: 12px; color: var(--text-muted); }
/* no gold here: gold belongs to Orbit (Štěpán 13. 11. 2026). My messages and the send button are red, the accent of
   HRM, so the apps of the company read as one family. */
.chat-win .jv-msg--me .jv-bubble { background: var(--chat-accent); color: #fff; border: 0; box-shadow: none; }
.chat-win .jv-round--send, .chat-win .jv-round--send:hover { background: var(--chat-accent); color: #fff; border: 0; box-shadow: 0 6px 16px color-mix(in srgb, var(--chat-accent) 30%, transparent); }
.chat-win .jv-round--send:hover { background: color-mix(in srgb, var(--chat-accent) 88%, #fff); }
.chat-win .jv-round--send svg { filter: none; }
.chat-win .jv-input:focus, .chat-win .jv-input:focus-visible { border-color: color-mix(in srgb, var(--chat-accent) 60%, var(--line-strong, var(--line))); }
.chat-win .chat-room[aria-current="page"] { background: color-mix(in srgb, var(--text-strong) 10%, transparent); color: var(--text-strong); }
.chat-win .jv-round--mic.is-live { background: var(--chat-accent); border-color: transparent; color: #fff; animation: none; }
.chat-win .jv-foot { padding: 12px 28px 16px; }
@media (max-width: 820px) {
  .chat-win .mail-body { grid-template-columns: minmax(0, 1fr); }
  .chat-head { padding: 10px 12px; }
  .chat-win .jv-foot { padding: 10px 12px 12px; }
  .chat-msg { max-width: 90%; }
}

/* a message Orbit prepared sits in the field: a thin ring in the blue of the system (14. 11. 2026) */
.chat-win .jv-compose.is-staged .jv-field { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sys-blue, #0a84ff) 55%, transparent); border-radius: 14px; }
