.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }

.tasks-scroll { overflow-y: auto; flex: 1; padding-right: 4px; border-radius: 6px; min-height: 60px; }
.tasks-scroll.drop-active { background: #eef5fc; outline: 1px dashed var(--accent-border); }

.task {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 7px 8px; margin-bottom: 6px;
  font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); border-left-width: 4px; border-radius: 5px;
  background: var(--surface);
}
.task:hover { background: var(--surface-alt); }
.task .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .grip { margin-top: 2px; }
.task .del { margin-top: 1px; }
.grip { color: var(--text-muted); cursor: grab; font-size: 11px; line-height: 1; flex: 0 0 auto; }
.badge { font-size: 10px; color: var(--text-muted); white-space: nowrap; }
.del {
  visibility: hidden; border: none; background: none; cursor: pointer;
  color: var(--text-muted); font-size: 12px; padding: 0 2px; line-height: 1;
}
.task:hover .del { visibility: visible; }
.del:hover { color: #c0392b; }

.new-task { display: flex; gap: 5px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.new-task input {
  flex: 1; min-width: 0; font: inherit; font-size: 12px;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 5px;
}
#newTaskColor { color: #fff; border-color: rgba(0,0,0,.14); }
#newTaskColor i { font-size: 13px; line-height: 1; }

.tools-row {
  display: none;
  align-items: center; gap: 5px;
  width: 100%;
  padding-top: 9px; margin-bottom: 9px;
  border-top: 1px solid var(--border);
}
.search-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.search-icon { position: absolute; left: 7px; font-size: 12px; color: var(--text-muted); pointer-events: none; }
#searchInput {
  width: 100%; font: inherit; font-size: 12px;
  padding: 5px 22px 5px 24px;
  border: 1px solid var(--border); border-radius: 5px; background: transparent;
}
.search-clear {
  position: absolute; right: 5px; visibility: hidden;
  appearance: none; border: none; background: none; cursor: pointer;
  font-size: 9px; color: var(--text-muted); padding: 2px; line-height: 1;
}
.search-clear:hover { color: var(--text); }

.sub-hit { font-size: 11px; color: var(--text-muted); flex: 0 0 auto; }
.hint-line {
  width: 100%; margin-top: 6px; padding: 5px 4px;
  font: inherit; font-size: 10px; text-align: left; cursor: pointer;
  color: var(--text-muted); background: transparent;
  border: none; border-top: 1px solid var(--border);
}
.hint-line:hover { color: var(--text); }
.hint-line::after { content: " \2192"; }

/* task card with description */
.task-body { flex: 1; min-width: 0; }
.task-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-top .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-note {
  font-size: 10px; color: var(--text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
