/* Hikos · 「聊天窗口」小批（任务 9a0332ca，道哥 #19345 ①②）· 配 src/backend/chat.js。
   ① 人类靠右（气泡用皮肤里的琥珀——tokens.css：Amber always means a person）、智能体靠左；
   ② 「回到最新」圆钮 / 「N 条新消息 ↓」浮条：粘在滚动口底边、居中，不占内容高度。 */

/* ---- ① 分边 ---- */
.message.is-human{flex-direction:row-reverse}
.message.is-human .message-content{display:flex;flex-direction:column;align-items:flex-end;min-width:0;flex:1}
.message.is-human .message-content>*{max-width:100%}
.message.is-human .message-meta{flex-direction:row-reverse}
.message.is-human .replyline{max-width:100%}
.message.is-human .replyline:before{display:none}
.message.is-human .message-text{max-width:min(100%,760px);padding:7px 14px;border-radius:12px 4px 12px 12px;background:rgba(var(--k-amber-rgb,224,134,0),.12);text-align:left;overflow-wrap:anywhere}
.message.is-human .message-text:empty{display:none}
.message.is-human .message-actions{right:auto;left:18px}
.message.is-human .reactions{justify-content:flex-end}
.message.is-human.pinned{border-left:0;border-right:2px solid #e2bb70}
.thread-pane .message.is-human .message-actions,.topic-main .message.is-human .message-actions{left:4px}
.compact .message.is-human .message-text{padding:5px 11px}
.message.is-human .message-text img,.message.is-human .msgfile-img{object-position:right}

/* ---- ② 回到最新 ---- */
.chat>.message-scroll>.kmb-jumpwrap{position:sticky;bottom:0;height:0;display:flex;justify-content:center;pointer-events:none;z-index:5}
.kmb-jump{pointer-events:auto;transform:translateY(calc(-100% - 12px));border-radius:999px;cursor:pointer;border:1px solid var(--k-line,#3a3a44);background:var(--k-bg,#1a1a1e);color:var(--k-ink2,#c3ccd8);font-size:12px;line-height:1;padding:7px 12px;box-shadow:0 6px 18px rgba(var(--k-sh,0,0,0),.28)}
.kmb-jump[hidden]{display:none}
.kmb-jump.is-round{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.kmb-jump.is-round:hover{color:var(--k-ink,#f2f5f9);background:var(--k-hover,#2b2b30)}
.kmb-jump.has-new{background:var(--k-acc,#3B82FF);color:var(--k-on-acc,#fff);border-color:transparent;font-weight:600;white-space:nowrap}
.kmb-jump:focus-visible{outline:none;box-shadow:var(--k-focus,0 0 0 3px rgba(59,130,255,.35))}
