/* WAHAJ prototype — Wahaj Mentor's chat inside a mission: the card's chat box, and the chat over the right column. */

/* ---------- on the mentor card: the chat box in place of the "Stuck?" row ---------- */
.mch-bar { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07)}
.mch-bar-in { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid #2c2c2e; background: #161617; color: #aeaeb2; font-size: 13.5px; text-align: start; cursor: text}
.mch-bar-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.mch-bar-in .ico { flex: none; color: var(--accent)}
.mch-bar-in:hover { border-color: var(--accent-line, rgba(0, 255, 111, .4)); color: #e5e5ea}
.mch-bar-go { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid #8b5cf6; background: rgba(139, 92, 246, 0.1); color: #a78bfa}
.mch-bar-go:hover { background: rgba(139, 92, 246, 0.2); color: #ffffff}

/* ---------- the chat, over the mission's right column ---------- */
.mch { position: absolute; inset-inline-start: 1040px; top: 92px; width: 392px; height: 732px; z-index: 69; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden}
.mch[hidden] { display: none}
.mch-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line)}
.mch-hav { width: 38px; height: 38px}
.mch-ht { flex: 1; min-width: 0}
.mch-ht b { display: block; font-size: 16px; color: var(--text)}
.mch-ht small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.mch-src { flex: none; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted)}
.mch-src.on { border-color: #8b5cf6; color: var(--accent-2-text, #a78bfa)}
.mch-ib { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2)}
.mch-ib:hover { background: var(--tile); color: var(--text)}

.mch-list { flex: 1; min-height: 0; overflow: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 12px}
.mch-m { display: flex; gap: 8px; align-items: flex-start}
.mch-m.u { justify-content: flex-end}
.mch-av { width: 26px; height: 26px; margin-top: 2px}
.mch-m .mface::before { animation: none}
.mch-m.last .mface::before, .mch-m.streaming .mface::before { animation: orbFace 5s steps(60, jump-none) infinite}
.mch-m.streaming .mface::before { animation-duration: 2.5s}
.mch-b { position: relative; max-width: 300px; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere}
.mch-m.m .mch-b { background: var(--panel-2); border: 1px solid var(--line); border-start-start-radius: 4px}
.mch-m.u .mch-b { background: var(--tile); border: 1px solid var(--line-2); border-start-end-radius: 4px; white-space: pre-wrap}
.mch-m.intro .mch-b { border-color: var(--line-2)}
.mch-b p { margin: 0}
.mch-b p + p { margin-top: 6px}
.mch-b ul { margin: 6px 0 0; padding-inline-start: 18px}
.mch-b li + li { margin-top: 3px}
.mcm-k { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2-text, #a78bfa)}
.mcm-l + .mcm-l { margin-top: 6px}
.mcm-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px}
.mcm-act { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--accent); font-size: 12.5px; font-weight: 600; color: var(--text)}
.mcm-act .ico { color: var(--accent)}
.mcm-act:hover { background: var(--tile)}
.mcm-note { margin-top: 8px; font-size: 12px; color: var(--muted)}
.mch-tag { position: absolute; inset-block-start: -8px; inset-inline-end: 8px; padding: 0 6px; border-radius: 999px; background: var(--panel); border: 1px solid #8b5cf6; font-size: 9.5px; font-weight: 700; line-height: 15px; color: var(--accent-2-text, #a78bfa)}
.mch-dots { display: inline-flex; gap: 4px; padding: 4px 0}
.mch-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: mcDot 1.2s ease-in-out infinite}
.mch-dots i:nth-child(2) { animation-delay: .15s}
.mch-dots i:nth-child(3) { animation-delay: .3s}
@keyframes mcDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0)} 40% { opacity: 1; transform: translateY(-3px)} }
.reduce-motion .mch-dots i { animation: none}

.mch-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0}
.mch-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 12.5px; color: var(--text-2)}
.mch-chip .ico { color: var(--accent)}
.mch-chip:hover { border-color: var(--accent); color: var(--text)}
.mch-in { display: flex; align-items: flex-end; gap: 8px; margin: 10px 12px 4px; padding: 6px 6px 6px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2)}
.mch-in:focus-within { border-color: var(--accent)}
.mch-in textarea { flex: 1; min-width: 0; height: 34px; max-height: 96px; padding: 7px 0; border: 0; outline: none; resize: none; background: none; color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.4}
.mch-in textarea::placeholder { color: var(--muted)}
.mch-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #0a0a0b)}
.mch-send.stop { background: var(--tile); color: var(--text); border: 1px solid var(--line-2)}
.mch-note { display: block; padding: 0 14px 10px; font-size: 11px; color: var(--muted); text-align: center}
