/* The chat on a tuning file: portal and workshop app (assets/js/chat.js). */
.vc-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid var(--line, #2e2528); border-radius: 16px; background: var(--panel, #161214); overflow: hidden; }
.vc-chat-log { display: flex; flex-direction: column; gap: 10px; height: 60vh; min-height: 280px; overflow-y: auto; padding: 14px; }
.vc-chat-full { justify-self: end; margin: 8px 8px 0; padding: 6px 10px; border: 1px solid var(--line, #2e2528); border-radius: 10px; background: #1e191b; color: var(--fg, #f4f1f2); font: inherit; font-size: 13px; cursor: pointer; }
.vc-chat.is-full { position: fixed; inset: 0; z-index: 100000; height: 100dvh; border: 0; border-radius: 0; }
.vc-chat.is-full .vc-chat-log { height: auto; min-height: 0; }
.vc-chat-empty { margin: auto; color: var(--muted, #a59ea0); font-size: 14px; text-align: center; }
.vc-chat-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #241d20; align-self: flex-start; overflow-wrap: anywhere; }
.vc-chat-msg.mine { align-self: flex-end; background: #4a151a; }
.vc-chat-msg.note { align-self: stretch; max-width: none; background: #38290f; border: 1px dashed #8a6a2a; }
.vc-chat-msg small { display: block; color: var(--muted, #a59ea0); font-size: 11px; margin-bottom: 3px; }
.vc-chat-msg p { margin: 0; white-space: pre-wrap; font-size: 15px; }
.vc-chat-sys { align-self: center; max-width: 90%; text-align: center; font-size: 13px; color: var(--muted, #a59ea0); }
.vc-chat-sys small { display: block; font-size: 11px; }
.vc-chat-media { display: block; margin-top: 6px; font-size: 12px; }
.vc-chat-media img, .vc-chat-media video { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; background: #000; }
.vc-chat-media a { display: inline-block; margin-top: 4px; color: inherit; }
.vc-chat-file { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); color: inherit; font-size: 14px; text-decoration: none; }
.vc-chat-file small { color: var(--muted, #a59ea0); }
.vc-chat-send { display: grid; gap: 8px; padding: 10px; border-top: 1px solid var(--line, #2e2528); background: #0f0c0d; }
.vc-chat-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted, #a59ea0); margin: 0; }
.vc-chat-note input { accent-color: var(--red, #e3141f); }
.vc-chat-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-chat-picked:empty { display: none; }
.vc-chat-picked span { padding: 4px 8px; border-radius: 999px; background: #241d20; font-size: 12px; overflow-wrap: anywhere; }
.vc-chat-picked button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; padding: 0 2px; }
.vc-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.vc-chat-attach { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 12px; border: 1px solid var(--line, #2e2528); background: #1e191b; cursor: pointer; font-size: 20px; }
.vc-chat-attach input { display: none; }
.vc-chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.vc-chat-row textarea { flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line, #2e2528); background: #0d0b0c; color: var(--fg, #f4f1f2); font: inherit; resize: none; }
.vc-chat-go { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--red, #e3141f); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vc-chat-go:disabled { opacity: .55; cursor: wait; }
.vc-chat-bar { height: 5px; border-radius: 3px; background: #2a2326; overflow: hidden; }
.vc-chat-bar[hidden] { display: none; }
.vc-chat-bar i { display: block; height: 100%; width: 0; background: var(--red, #e3141f); transition: width .2s; }
.vc-chat-error { margin: 0; color: #ff8b8b; font-size: 13px; }
.vc-chat-error[hidden] { display: none; }
