/* The movie-night chat window (web/night-chat.mjs). */
.night-chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 70; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #b9412c; background: #b9412c; color: #fff; font-weight: 600; box-shadow: 0 8px 30px #0008; }
.night-chat-launch:hover { background: #cf5038; }
.has-night-chat .feedback-invitation { bottom: 76px; }
.night-chat { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(380px, calc(100vw - 40px)); max-height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px #000a; }
.night-chat header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.night-chat h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.night-chat header button { font-size: 22px; min-width: 36px; padding: 0; }
.chat-thread { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; }
.chat-you { align-self: flex-end; max-width: 85%; background: var(--surface-strong); border-radius: 14px 14px 4px 14px; padding: 8px 12px; font-size: var(--text-body); overflow-wrap: anywhere; }
.chat-reply p { margin: 0; font-size: var(--text-body); line-height: 1.55; }
.chat-reply p + .chat-chips { margin-top: 8px; }
.chat-error p { color: #f3a18a; }
.chat-hint { color: var(--muted); font-size: var(--text-meta); line-height: 1.55; }
.chat-busy { color: var(--muted); font-size: var(--text-meta); display: flex; align-items: center; gap: 8px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chat-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: var(--text-caption); color: var(--ink); }
.chat-chips.undone span { text-decoration: line-through; color: var(--fog); }
.chat-chips em { font-size: var(--text-caption); color: var(--fog); font-style: normal; }
.chat-undo { border: 0; background: transparent; color: var(--accent); text-decoration: underline; font-size: var(--text-meta); padding: 2px 4px; min-height: 0; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--canvas); color: var(--ink); padding: 0 12px; font: inherit; font-size: 16px; }
.chat-form button { min-height: 42px; }
@media (max-width: 600px) {
  .night-chat { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100dvh - 80px); }
  .night-chat-launch { right: 12px; bottom: 12px; }
}
