/* Listas coloridas na extremidade direita do cabeçalho da conversa. */
.cor-lista-0 { --list-color: #facc15; }
.cor-lista-1 { --list-color: #ef4444; }
.cor-lista-2 { --list-color: #a855f7; }
.cor-lista-3 { --list-color: #f97316; }
.cor-lista-4 { --list-color: #14b8a6; }
.cor-lista-5 { --list-color: #3b82f6; }
.detail-header { position: relative; }
.detail-actions { align-items: center; }
.chat-list-wrap { position: relative; flex: none; margin-left: auto; }
.chat-list-trigger { white-space: nowrap; }
.chat-list-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: min(290px, calc(100vw - 24px)); max-height: min(460px, calc(100dvh - 145px)); overflow-y: auto; padding: 10px; border: 1px solid rgba(182,218,197,.24); border-radius: 14px; background: #1b2420; box-shadow: 0 16px 45px rgba(0,0,0,.5); color: #eef8f1; }
.chat-list-menu[hidden] { display: none; }
.chat-list-menu > strong { display: block; padding: 7px 9px 10px; font-size: 13px; }
.chat-list-menu > small { display: block; padding: 10px 8px 2px; color: #9db2a5; font-size: 11px; line-height: 1.4; }
.chat-list-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; font-size: 13px; }
.chat-list-option:hover, .chat-list-option[aria-pressed="true"] { background: rgba(255,255,255,.08); }
.chat-list-option > span:nth-child(2) { flex: 1; }
.chat-list-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--list-color); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.chat-list-option > span:nth-child(2) { color: var(--list-color); font-weight: 650; }
.chat-list-check { font-size: 20px; color: #b7cbc0; line-height: 1; }
.chat-list-option[aria-pressed="true"] .chat-list-check { color: var(--mint); }
.chat-list-menu-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.chat-list-menu-actions button, .chat-list-manage-row button, #chat-list-create button { padding: 7px 9px; border: 1px solid rgba(182,218,197,.2); border-radius: 8px; background: transparent; color: #dbeee2; font-size: 12px; }
.chat-list-menu-actions button:hover, .chat-list-manage-row button:hover, #chat-list-create button:hover { border-color: var(--mint); color: var(--mint); }
.chat-list-manage-row { display: flex; align-items: center; gap: 7px; padding: 6px 2px; font-size: 12px; }
.chat-list-manage-row > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chat-list-manage-row button { padding: 5px 7px; }
#chat-list-create label { display: block; margin: 7px 0; font-size: 12px; }
#chat-list-name { width: 100%; padding: 9px 10px; border: 1px solid rgba(182,218,197,.25); border-radius: 8px; background: #0b1714; color: #eaf4ef; }
.chat-list-colors { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.chat-list-colors legend { margin-bottom: 7px; color: #cfe3d7; font-size: 12px; font-weight: 600; }
.chat-list-colors > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chat-list-color-option { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 8px; border: 1px solid rgba(182,218,197,.2); border-radius: 8px; color: #dbeee2; font-size: 11px; cursor: pointer; }
.chat-list-color-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chat-list-color-option:has(input:checked) { border-color: var(--list-color); background: color-mix(in srgb, var(--list-color) 12%, #1b2420); }
.chat-list-color-option:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.chat-list-empty { margin: 8px; font-size: 12px; color: #9db2a5; }
.lists-filter-row { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; color: #9db2a5; font-size: 11px; }
.lists-filter-row label { flex: none; }
.lists-filter-row select { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid rgba(182,218,197,.2); border-radius: 8px; background: #102019; color: #eaf4ef; font-size: 12px; }
.chat-list-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.chat-list-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 2px 6px; border: 1px solid var(--list-color); border-radius: 5px; background: color-mix(in srgb, var(--list-color) 12%, transparent); color: var(--list-color); font-size:11px; font-weight: 700; }
.chat-list-badge i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--list-color); }
@media (min-width: 769px) {
  .app-screen .conversation-row { width: calc(100% - 12px); min-height: 73px; margin: 2px 6px; padding: 11px 10px !important; border: 0; border-radius: 10px; }
  .app-screen .conversation-row.selected { background: rgba(255,255,255,.1); }
  .app-screen .conversation-row:hover { background: rgba(255,255,255,.07); }
}
