/* Список чатов */
#side-chat .panel-head .icon-button.active { color: var(--accent); background: #1e96eb1c; }
#chat-groups { display: flex; gap: 6px; flex: none; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.group-chip, #group-add { flex: none; }
.group-chip.active { border-color: var(--group, var(--accent)); background: color-mix(in srgb, var(--group, var(--accent)) 18%, var(--card)); }
.group-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; }
#chat-bulk { display: flex; align-items: center; gap: 2px; flex: none; padding: 2px 4px 2px 8px; border: 1px solid var(--accent); border-radius: 12px; background: var(--card); animation: rise .16s ease-out; }
#chat-bulk .grow { flex: 1; font-size: 13px; }
#chat-bulk input { width: 18px; height: 18px; }
#chat-list li { margin-bottom: 2px; }
.chat-item { display: flex; align-items: center; gap: 8px; position: relative; border-radius: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chat-item.grouped { background: color-mix(in srgb, var(--group) 13%, transparent); box-shadow: inset 4px 0 0 var(--group); padding-left: 12px; }
.chat-item.grouped:hover, .chat-item.grouped.active { background: color-mix(in srgb, var(--group) 24%, transparent); }
.chat-item.picked { outline: 2px solid var(--accent); outline-offset: -2px; }
.pick-box { display: grid; place-content: center; width: 20px; height: 20px; flex: none; border: 2px solid var(--muted); border-radius: 6px; }
.picked .pick-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-box .icon { width: 14px; height: 14px; color: inherit; margin: 0; stroke-width: 3; }
.chat-text { flex: 1; min-width: 0; }
.chat-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item small { display: flex; align-items: center; gap: 8px; }
.model-badge { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 150px; padding: 0 7px 0 5px; border-radius: 9px; font-size: 11px; line-height: 17px; background: color-mix(in srgb, currentColor 14%, transparent); }
.model-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .model-badge .icon, .model-badge .icon { width: 12px; height: 12px; margin: 0; flex: none; color: inherit; }
.chat-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 8px 2px; }
.chat-empty { padding: 10px; }
#chat-badge { display: flex; flex: none; max-width: 45%; }
#view-chat .view-header { box-shadow: inset 0 -3px 0 var(--group, transparent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; padding: 0; }
.swatch.active { border-color: var(--text); box-shadow: inset 0 0 0 3px var(--card); }
#chat-actions, #chat-sort-menu { width: 260px; }
@media (max-width: 760px) { #side-chat .panel-head .panel-title { flex: 1; font-size: 18px; font-weight: 700; color: var(--text); } .chat-item { min-height: 58px; } }
