/* Section: projects, SINU AI pipeline and chat demo. */

.chat { display: flex; flex-direction: column; height: 380px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; animation: rise .3s ease both; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.tool { align-self: flex-start; font: 12px/1.4 var(--mono); color: var(--warm); padding: 6px 10px; border: 1px dashed var(--line); background: none; }
.msg.hint { align-self: center; color: var(--muted); font-size: 13px; text-align: center; background: none; }
.chat-asks { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat-asks button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.chat-asks button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.chat-asks button:disabled { opacity: .5; cursor: default; }
.pipe { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pipe button { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pipe button span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--surface-2); font: 11px var(--mono); }
.pipe button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pipe button.on span { background: var(--accent); color: var(--accent-ink); }
.pipe-detail { min-height: 4.6em; font-size: 14.5px; color: var(--muted); padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; margin-bottom: 20px; }
