/* Chat sidebar — scrolling chat replay panel */ /* Container fills the right sidebar grid area */ .chat-sidebar { overflow-y: auto; height: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--color-border); } /* Header: "Chat" title + hide toggle */ .chat-sidebar-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); padding: 0.5rem 0.75rem; flex-shrink: 0; font-size: 0.85rem; font-weight: 600; color: var(--color-text); } /* Chat title in header */ .chat-sidebar-title { font-weight: 600; } /* Approximate timing indicator */ .chat-timing-indicator { font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-muted); margin-inline-start: 0.5rem; font-weight: 400; } /* Hide toggle button — × or chevron */ .chat-hide-toggle { border: 1px solid var(--color-border); background: transparent; color: var(--color-muted); font-size: 0.75rem; padding: 0.15rem 0.4rem; cursor: pointer; line-height: 1; } .chat-hide-toggle:hover { color: var(--color-text); background: transparent; } /* Show toggle — small tab on the right edge when sidebar is hidden */ .chat-show-toggle { position: fixed; right: 0; top: 50%; transform: translateY(-50%); border: 1px solid var(--color-border); border-right: none; background: var(--color-surface); color: var(--color-muted); font-size: 0.7rem; padding: 0.4rem 0.2rem; cursor: pointer; writing-mode: vertical-lr; text-orientation: mixed; letter-spacing: 0.05em; z-index: 10; } .chat-show-toggle:hover { color: var(--color-text); background: var(--color-overlay); } /* Message list scrolls inside the flex column */ .chat-message-list { flex: 1; overflow-y: auto; min-height: 0; } /* Individual message */ .chat-message { display: grid; grid-template-columns: auto 1fr; gap: 0 0.4em; padding: 0.1rem 0.5rem; margin-bottom: 0.3rem; cursor: pointer; } .chat-message:hover { background: var(--color-surface); } /* VOD-relative timestamp — left gutter column */ .chat-timestamp { grid-column: 1; font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-muted); white-space: nowrap; padding-top: 0.1em; } /* Message content — right column, handle + text inline */ .chat-message-content { grid-column: 2; font-size: 0.8rem; line-height: 1.4; word-break: break-word; } /* Author display name — inline before text */ .chat-author { font-weight: 600; color: var(--color-text); margin-right: 0.3em; white-space: nowrap; } /* Message body text — inline with author */ .chat-text { color: var(--color-text); } /* "Now" divider — marks current playback position */ .chat-now-divider { border-top: 2px solid var(--color-primary); padding: 0.15rem 0.75rem; font-family: var(--font-mono); font-size: 0.65rem; color: var(--color-primary); flex-shrink: 0; } /* Reply indicator — shown above message text when reply_snippet is Some. Spans both grid columns so it doesn't displace the timestamp/content row. */ .chat-reply-indicator { grid-column: 1 / -1; font-size: 0.7rem; color: var(--color-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; margin-bottom: 0.15rem; padding-left: 0.4em; } .chat-reply-indicator:hover { color: var(--color-text); } .chat-reply-indicator--orphan { cursor: default; } .chat-reply-indicator--orphan:hover { color: var(--color-subtle); } /* Error state */ .chat-error { text-align: center; padding: 1.5rem 1rem; color: var(--color-error); font-size: 0.8rem; } .chat-error p { margin-bottom: 0.75rem; } .chat-error button { padding: 0.35rem 0.75rem; background: transparent; color: var(--color-error); border: 1px solid var(--color-error); cursor: pointer; font-family: var(--font-ui); font-size: 0.75rem; } .chat-error button:hover { background: var(--color-error); color: var(--color-base); } /* Empty state */ .chat-empty { text-align: center; color: var(--color-muted); padding: 2rem; font-size: 0.85rem; } /* Loading state */ .chat-loading { padding: 1rem 0.75rem; font-size: 0.8rem; color: var(--color-muted); font-family: var(--font-mono); } /* "Jump to now" sticky button — shown when user has manually scrolled */ .chat-jump-to-now { position: sticky; bottom: 0; padding: 0.4rem; background: var(--color-surface); border-top: 1px solid var(--color-border); text-align: center; font-size: 0.75rem; color: var(--color-primary); cursor: pointer; flex-shrink: 0; } .chat-jump-to-now:hover { background: var(--color-overlay); }