.conversations{display:grid;gap:10px}
.conversation-card{display:flex;width:100%;align-items:center;gap:13px;padding:14px;text-align:left;color:var(--text);cursor:pointer;transition:border-color .15s,transform .15s}
.conversation-card:hover{border-color:#46616d;transform:translateY(-1px)}
.account-avatar{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#28504f,#233843);color:#a8f0e5;font-weight:800;font-size:13px}
.conversation-copy{min-width:0;flex:1}
.conversation-card-head,.conversation-card-foot,.conversation-names,.conversation-card-meta{display:flex;align-items:center}
.conversation-card-head,.conversation-card-foot{justify-content:space-between;gap:10px}
.conversation-names{gap:9px;min-width:0}
.conversation-names strong{font-size:15px}
.conversation-names .program{color:var(--muted);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-card-head time{font-size:11px}
.conversation-card-foot{margin-top:6px}
.preview{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9fb0b8;font-size:13px}
.preview b{color:#d6e2e7;font-weight:650}
.conversation-card-meta{gap:8px;flex:0 0 auto}
.message-count{font-size:11px;color:var(--muted);min-width:19px;text-align:right}
.unread-dot{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#dc3545;box-shadow:0 0 0 3px #dc35451a}
.conversation-toolbar{display:flex;align-items:center;gap:12px;padding:11px 13px;margin-bottom:12px}
.conversation-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.cache-clear-button{padding:7px 8px;border:1px solid #425660;border-radius:10px;background:#1b2b35;color:#c0d0d7;font-size:11px;line-height:1.2;white-space:nowrap}
.cache-clear-button:disabled{opacity:.55;cursor:wait}
.back-button{width:40px;height:40px;border:0;border-radius:12px;background:#22343e;color:var(--cyan);font-size:34px;line-height:30px}
.conversation-heading{min-width:0;flex:1}
.conversation-heading strong{font-size:17px}
.conversation-heading .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icon-button.small{width:40px;height:40px;border-radius:12px}
.older-wrap{text-align:center;padding:4px 0 13px}
.older-wrap .secondary{background:#263a44;color:#c0d0d7;border:1px solid #354b57}
.chat-timeline{display:flex;flex-direction:column;gap:11px;height:calc(100vh - 255px);height:calc(100dvh - 255px);min-height:240px;overflow-y:auto;overscroll-behavior:contain;padding:4px 3px 14px}
.chat-message{align-self:center;width:100%;max-width:700px;padding:12px 14px;background:#1b2b35;border:1px solid #2c404b;border-radius:5px 16px 16px 16px;scroll-margin:18px}
.chat-message.highlight{border-color:var(--cyan);box-shadow:0 0 0 2px #53d6c633}
.chat-message-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}
.chat-message h3{font-size:14px;margin:10px 0 0}
.chat-message pre{font-family:inherit;font-size:16px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px clamp(18px,7.5vw,30px) 0;color:#e0e9ed}
.loading{text-align:center;color:var(--muted);padding:32px 10px}
.new-message-wrap{text-align:center;padding:0 0 9px}
.new-message-wrap .secondary{background:#dff5f1;color:#14665d;border:1px solid #b8e8df}
.history-load-status{display:flex;align-items:center;justify-content:center;gap:9px;padding:5px 8px 9px;color:#b54747;font-size:12px;text-align:center}
.history-load-status[hidden]{display:none}
.history-load-status button{border:1px solid #e3bcbc;border-radius:8px;padding:5px 10px;background:#fff4f4;color:#a33b3b;font-size:12px;white-space:nowrap}
@media(max-width:520px){.conversation-toolbar{gap:8px;padding:10px 9px}.conversation-actions{gap:5px}.cache-clear-button{padding:7px 6px;font-size:10px}.conversation-card{padding:12px 11px;gap:10px}.account-avatar{width:42px;height:42px;flex-basis:42px;border-radius:14px}.conversation-card-foot{align-items:flex-start}.conversation-card-meta{gap:5px}.preview{font-size:12px}}
