/* Задачи, отложенные чаты, лента заметок и метки (chattasks.js, docs/stage5/chat_tasks.md). */
.chat-tasks { display: grid; gap: 12px; margin-bottom: 14px; }
.chat-tasks h4 { margin: 0; font-size: 15px; font-weight: 600; }
.ct-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.ct-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.ct-x { border: 0; background: transparent; padding: 0 0 0 2px; font: inherit; line-height: 1; color: inherit; cursor: pointer; }
.ct-pick { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13.5px; }
.tag.ct-snz { background: var(--sticky-soft); color: var(--sticky-ink); border-color: transparent; }
.ct-snooze { display: grid; gap: 6px; }
.ct-snz-line { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.ct-list, .ct-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ct-task-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ct-task-row.late { border-color: transparent; background: var(--red-soft); color: #7c2414; }
.ct-task-row.done { background: var(--paper-2); color: var(--ink-3); }
.ct-task-row.done .ct-text { text-decoration: line-through; }
.ct-main { flex: 1 1 auto; min-width: 0; }
.ct-text { margin: 0; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.ct-meta { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink-3); overflow-wrap: anywhere; }
.ct-task-row.late .ct-meta { color: inherit; }
.ct-task-row > .btn { flex: none; }
.ct-ok { padding: 6px 8px; }
.ct-done summary { cursor: pointer; font-size: 13.5px; color: var(--ink-3); padding: 4px 0; }
.ct-note { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--sticky-soft); color: var(--sticky-ink); }
.ct-note.legacy { background: var(--paper-2); color: var(--ink); }
.ct-note-head { margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); overflow-wrap: anywhere; }
.ct-note-text { margin: 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-composer { display: grid; gap: 8px; }
.ct-composer textarea { min-height: 56px; resize: vertical; }
.ct-mentions { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-mentions:empty { display: none; }
.tag.ct-mention { cursor: pointer; background: transparent; }
.ct-hint { margin: 0; }
.ct-quick { gap: 6px; }
/* фильтры над списком чатов */
.ct-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ct-filter { flex: 1 1 140px; min-width: 0; width: auto; min-height: 32px; padding: 4px 8px; font-size: 13.5px; }
.ct-snz-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* «Мои задачи» на «Главной» */
.ct-home { display: grid; gap: 12px; }
.ct-home h2 { font-size: 20px; }
.ct-all { display: grid; gap: 10px; }
/* справочник меток в настройке */
.ct-catalog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct-cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-cat-row .inp { flex: 1 1 180px; min-width: 0; width: auto; }
/* на телефоне кнопки — под палец */
@media (max-width: 759px) {
  .chat-tasks .btn, .ct-tools .btn, .ct-pick, .ct-filter { min-height: 44px; }
  .ct-x { min-width: 28px; min-height: 28px; }
}
